|
12 | 12 |
|
13 | 13 | <PropertyGroup> |
14 | 14 | <NuGetUrl Condition=" '$(NuGetUrl)' == '' ">https://dist.nuget.org/win-x86-commandline/v3.4.4/NuGet.exe</NuGetUrl> |
| 15 | + <RestorePackages>false</RestorePackages> |
15 | 16 | <Out Condition=" '$(Out)' == '' ">$(MSBuildThisFileDirectory)out</Out> |
16 | 17 | <RunCodeAnalysis Condition=" '$(RunCodeAnalysis)' == ''">false</RunCodeAnalysis> |
17 | 18 | <IntermediateOutputPath>.nuget\</IntermediateOutputPath> |
|
67 | 68 | </ItemGroup> |
68 | 69 | <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
69 | 70 |
|
70 | | - <xunit Assemblies="@(TestAssembly)" |
71 | | - Html="$(Out)\test.html" |
72 | | - Xml="$(Out)\test.xml" |
73 | | - Reporter="appveyor" /> |
| 71 | + <PropertyGroup> |
| 72 | + <XunitConsole>"$(PackagesPath)\xunit.runner.console\tools\xunit.console.exe"</XunitConsole> |
| 73 | + <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel all -noshadow</XunitOptions> |
| 74 | + </PropertyGroup> |
| 75 | + |
| 76 | + <Exec Command="$(XunitConsole) @(TestAssembly, ' ') $(XunitOptions)" ConsoleToMSBuild="true" /> |
74 | 77 | </Target> |
75 | 78 |
|
76 | 79 | <Target Name="Restore"> |
77 | | - <Exec Command='"$(NuGet)" Restore "%(Solution.FullPath)" -Verbosity quiet -Config src\NuGet.Config' /> |
78 | | - <Exec Command='"$(NuGet)" Restore "src\VisualStudio\NuGet.Packaging.VisualStudio.sln" -Verbosity quiet -Config src\NuGet.Config' /> |
| 80 | + |
| 81 | + <Exec Command='"$(NuGet)" Restore "external\ApiIntersect\ApiIntersect.sln" -Verbosity quiet' /> |
| 82 | + <Exec Command='"$(NuGet)" Restore "src\Build\NuGet.Build.Packaging.sln" -Verbosity quiet -Config src\NuGet.Config' /> |
| 83 | + <Exec Command='"$(NuGet)" Restore "src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_non_nugetized_reference\b.sln"' /> |
| 84 | + <Exec Command='"$(NuGet)" Restore "src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_multi_platform_solution\forms.sln"' /> |
| 85 | + <Exec Command='"$(NuGet)" Restore "src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_library_with_json_dependencies\project.json"' /> |
| 86 | + |
| 87 | + <!-- Ignore error code here since NuGet will detect an incompatibility between VS2017 ProjectSystem NuGet on MSBuild 15+, and the tasks' MSBuild 14, which is intentional --> |
| 88 | + <Exec Command='"$(NuGet)" Restore "src\VisualStudio\NuGet.Packaging.VisualStudio.sln" -Verbosity quiet -Config src\NuGet.Config' IgnoreExitCode='true' /> |
79 | 89 | </Target> |
80 | 90 |
|
81 | 91 | <Target Name="Coverage" DependsOnTargets="Build"> |
|
89 | 99 | <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
90 | 100 |
|
91 | 101 | <PropertyGroup> |
92 | | - <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel none -noshadow</XunitOptions> |
| 102 | + <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel none -noshadow </XunitOptions> |
93 | 103 |
|
94 | 104 | <CoverageConsole>$(PackagesPath)\OpenCover\tools\OpenCover.Console.exe</CoverageConsole> |
95 | 105 | <CoverageOptions>$(CoverageOptions) -output:$(Out)\coverage.xml -returntargetcode -register:user -filter:"+[NuGet.Build.Packaging*]* -[NuGet.Packaging.Core*]* -[NuGet.Packaging.VisualStudio*]* -[Clide*]* -[xunit*]* -[*Tests]* -[*]*ThisAssembly*" -excludebyattribute:*ExcludeFromCodeCoverage*;*CompilerGenerated* -skipautoprops -showunvisited -mergebyhash</CoverageOptions> |
|
126 | 136 | <PendingRestore Condition=" !Exists('$(GitInfoTargets)') Or !Exists('$(XunitConsole)') Or !Exists('$(XunitProps)') ">true</PendingRestore> |
127 | 137 | </PropertyGroup> |
128 | 138 | <Import Project="$(XunitProps)" Condition="Exists('$(XunitProps)')"/> |
129 | | - <Target Name="GitVersion" /> |
| 139 | + <Target Name="GitVersion"> |
| 140 | + <PropertyGroup> |
| 141 | + <GitSemVerMajor>1</GitSemVerMajor> |
| 142 | + <GitSemVerMinor>0</GitSemVerMinor> |
| 143 | + <GitSemVerPatch>0</GitSemVerPatch> |
| 144 | + </PropertyGroup> |
| 145 | + </Target> |
130 | 146 | <Import Project="$(GitInfoTargets)" Condition="Exists('$(GitInfoTargets)')"/> |
131 | 147 | <Import Project="src\PackageVersion.targets" /> |
132 | 148 |
|
|
0 commit comments