|
1 | | -set net40_msbuild=\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe |
| 1 | +set net40_msbuild="\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" |
2 | 2 | set nuget_package_manager=..\.nuget\nuget.exe |
3 | | - |
4 | | -set dnx_runtime_dir=%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-final\bin |
5 | | -set dnx_runtime=%dnx_runtime_dir%\dnx.exe |
6 | | -set dnx_package_manager=%dnx_runtime_dir%\lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll |
| 3 | +set dotnet_cli="%ProgramFiles%\dotnet\dotnet.exe" |
7 | 4 |
|
8 | 5 | set project_name=DouglasCrockford.JsMin |
9 | 6 | set project_source_dir=..\src\%project_name% |
10 | | -set project_artifacts_dir=..\artifacts\bin\%project_name% |
| 7 | +set project_bin_dir=%project_source_dir%\bin\Release |
11 | 8 |
|
12 | 9 | rmdir lib /Q/S |
13 | 10 |
|
14 | | -%net40_msbuild% %project_source_dir%\%project_name%.Net40.csproj /p:Configuration=Release |
15 | | -xcopy %project_source_dir%\bin\Release\%project_name%.dll lib\net40-client\ |
| 11 | +%net40_msbuild% "%project_source_dir%\%project_name%.Net40.csproj" /p:Configuration=Release |
| 12 | +xcopy %project_bin_dir%\%project_name%.dll lib\net40-client\ |
16 | 13 |
|
17 | | -%dnx_runtime% --appbase %project_source_dir% %dnx_package_manager% build %project_source_dir% --framework net451 --configuration Release --out %project_artifacts_dir% |
18 | | -xcopy %project_artifacts_dir%\Release\net451\%project_name%.dll lib\net451\ /E |
19 | | -xcopy %project_artifacts_dir%\Release\net451\%project_name%.xml lib\net451\ /E |
| 14 | +%dotnet_cli% build "%project_source_dir%" --framework net451 --configuration Release --no-dependencies --no-incremental |
| 15 | +xcopy "%project_bin_dir%\net451\%project_name%.dll" lib\net451\ /E |
| 16 | +xcopy "%project_bin_dir%\net451\%project_name%.xml" lib\net451\ /E |
20 | 17 |
|
21 | | -%dnx_runtime% --appbase %project_source_dir% %dnx_package_manager% build %project_source_dir% --framework dotnet5.4 --configuration Release --out %project_artifacts_dir% |
22 | | -xcopy %project_artifacts_dir%\Release\dotnet5.4\%project_name%.dll lib\dotnet5.4\ /E |
23 | | -xcopy %project_artifacts_dir%\Release\dotnet5.4\%project_name%.xml lib\dotnet5.4\ /E |
| 18 | +%dotnet_cli% build "%project_source_dir%" --framework netstandard1.1 --configuration Release --no-dependencies --no-incremental |
| 19 | +xcopy "%project_bin_dir%\netstandard1.1\%project_name%.dll" lib\netstandard1.1\ /E |
| 20 | +xcopy "%project_bin_dir%\netstandard1.1\%project_name%.xml" lib\netstandard1.1\ /E |
24 | 21 |
|
25 | 22 | copy ..\LICENSE license.txt /Y |
26 | 23 |
|
|
0 commit comments