File tree Expand file tree Collapse file tree 9 files changed +43
-95
lines changed Expand file tree Collapse file tree 9 files changed +43
-95
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets =" CompileProjects" ToolsVersion =" 14.0" >
3
+
4
+ <PropertyGroup >
5
+ <Platform >AnyCPU</Platform >
6
+ <Configuration >Release</Configuration >
7
+ <VisualStudioVersion Condition =" '$(VisualStudioVersion)' == ''" >14.0</VisualStudioVersion >
8
+ <RootPath >$(MSBuildProjectDirectory)\..\</RootPath >
9
+ </PropertyGroup >
10
+
11
+ <Target Name =" CleanAndBuild" DependsOnTargets =" Clean;CompileProjects" />
12
+
13
+ <Target Name =" Clean" >
14
+ <MSBuild Projects =" @(AllProjects)" Targets =" Clean" />
15
+ <RemoveDir Directories =" $(SrcBinPath)" />
16
+ </Target >
17
+
18
+ <Target Name =" CompileProjects" >
19
+ <MSBuild Projects ="
20
+ $(RootPath)\UnitsNet\UnitsNet.Net35.csproj;
21
+ $(RootPath)\UnitsNet\UnitsNet.Portable40.csproj;
22
+ $(RootPath)\UnitsNet\UnitsNet.NetStandard10.csproj;
23
+ $(RootPath)\UnitsNet\UnitsNet.WindowsRuntimeComponent.csproj;
24
+ $(RootPath)\UnitsNet.Serialization.JsonNet\UnitsNet.Serialization.JsonNet.Net35.csproj;
25
+ $(RootPath)\UnitsNet.Tests\UnitsNet.Tests.csproj;
26
+ $(RootPath)\UnitsNet.Tests\UnitsNet.WindowsRuntimeComponent.Tests.csproj;
27
+ $(RootPath)\UnitsNet.Serialization.JsonNet.Tests\UnitsNet.Serialization.JsonNet.Tests.csproj"
28
+
29
+ Properties =" Platform=$(Platform);Configuration=$(Configuration);VisualStudioVersion=$(VisualStudioVersion)"
30
+ Targets =" Build" >
31
+ </MSBuild >
32
+ </Target >
33
+
34
+ </Project >
Original file line number Diff line number Diff line change 1
1
SET ROOT = %~dp0 ..
2
- " C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe" %ROOT% \Build\src .msbuild /verbosity:normal /p:Configuration=Debug /p:Platform=" AnyCPU" /target:CleanAndBuild /p:RestorePackages=false
2
+ " C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe" %ROOT% \Build\all .msbuild /verbosity:normal /p:Configuration=Debug /p:Platform=" AnyCPU" /target:CleanAndBuild /p:RestorePackages=false
3
3
if %errorlevel% neq 0 exit /b %errorlevel%
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
SET ROOT = %~dp0 ..
3
- " C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe" %ROOT% \Build\src .msbuild /verbosity:normal /p:Configuration=Release /p:Platform=" AnyCPU" /target:CleanAndBuild /p:RestorePackages=false
3
+ " C:\Program Files (x86)\MSBuild\14.0\Bin\MsBuild.exe" %ROOT% \Build\all .msbuild /verbosity:normal /p:Configuration=Release /p:Platform=" AnyCPU" /target:CleanAndBuild /p:RestorePackages=false
4
4
if %errorlevel% neq 0 exit /b %errorlevel%
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
SET ROOT = %~dp0 ..
3
+
3
4
if exist %ROOT% \Artifacts rmdir /Q /S %ROOT% \Artifacts
4
5
5
6
call powershell -NoProfile %ROOT% \Build\UpdateAssemblyInfo.ps1
6
7
if %errorlevel% neq 0 exit /b %errorlevel%
7
8
8
- call powershell -ExecutionPolicy Bypass -NoProfile -File %ROOT% \UnitsNet\Scripts\GenerateUnits.ps1
9
- if %errorlevel% neq 0 exit /b %errorlevel%
10
-
11
9
call %ROOT% \Build\nuget-restore.bat
12
10
if %errorlevel% neq 0 exit /b %errorlevel%
13
11
14
- call %ROOT% \Build\build-src-release.bat
15
- if %errorlevel% neq 0 exit /b %errorlevel%
16
-
17
- call %ROOT% \Build\build-tests.bat
12
+ call %ROOT% \Build\build-all-release.bat
18
13
if %errorlevel% neq 0 exit /b %errorlevel%
19
14
20
15
call %ROOT% \Build\run-tests.bat
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
@ echo off
2
- powershell -ExecutionPolicy Bypass -NoProfile -File .\UnitsNet\Scripts\GenerateUnits.ps1
2
+ SET scriptdir = %~dp0
3
+ powershell -ExecutionPolicy Bypass -NoProfile -File %scriptdir% UnitsNet\Scripts\GenerateUnits.ps1
3
4
pause
Original file line number Diff line number Diff line change 48
48
<Service Include =" {508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
49
49
</ItemGroup >
50
50
<Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
51
+ <PropertyGroup >
52
+ <PreBuildEvent >call $(ProjectDir)..\GenerateUnits.bat</PreBuildEvent >
53
+ </PropertyGroup >
51
54
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
52
55
Other similar extension points exist, see Microsoft.Common.targets.
53
56
<Target Name="BeforeBuild">
You can’t perform that action at this time.
0 commit comments