-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildAndTest.proj
51 lines (41 loc) · 1.47 KB
/
BuildAndTest.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<Project
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
DefaultTargets="BuildAndTest"
ToolsVersion="12.0">
<UsingTask
AssemblyFile="Src\packages\xunit.runners.2.0.0-alpha-build2576\tools\xunit.runner.msbuild.dll"
TaskName="Xunit.Runner.MSBuild.xunit" />
<Target Name="RestorePackages">
<Exec Command="$(MSBuildThisFileDirectory)\Src\.nuget\Nuget.exe restore $(MSBuildThisFileDirectory)\Src\Roslyn.sln" />
</Target>
<Target Name="Build"
DependsOnTargets="RestorePackages">
<MSBuild BuildInParallel="true"
Projects="$(MSBuildThisFileDirectory)\Src\Roslyn.sln"
Properties="RestorePackages=false"
Targets="Build"/>
</Target>
<Target Name="Clean">
<MSBuild BuildInParallel="true"
Projects="$(MSBuildThisFileDirectory)\Src\Roslyn.sln"
Properties="RestorePackages=false"
Targets="Clean"/>
</Target>
<Target Name="Rebuild">
<MSBuild BuildInParallel="true"
Projects="$(MSBuildThisFileDirectory)\Src\Roslyn.sln"
Properties="RestorePackages=false"
Targets="Rebuild"/>
</Target>
<Target Name="Test">
<ItemGroup>
<TestAssemblies Include="Binaries\$(Configuration)\**\*.UnitTests*.dll" />
</ItemGroup>
<xunit
Assemblies="@(TestAssemblies)"
Html="UnitTestResults.html"
ShadowCopy="false" />
</Target>
<Target Name="BuildAndTest"
DependsOnTargets="Build;Test" />
</Project>