|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="14.0" DefaultTargets="All" InitialTargets="Configure" TreatAsLocalProperty="RootSuffix" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | | - <Import Project="build.props" /> |
4 | | - |
5 | | - <PropertyGroup Condition="'$(IsCIBuild)' != 'true'"> |
6 | | - <!-- Local build defaults --> |
7 | | - <Configuration Condition=" '$(Configuration)' == ''">Debug</Configuration> |
8 | | - </PropertyGroup> |
9 | | - <PropertyGroup Condition="'$(IsCIBuild)' == 'true'"> |
10 | | - <Configuration Condition=" '$(Configuration)' == ''">Release</Configuration> |
11 | | - </PropertyGroup> |
12 | | - |
13 | | - <PropertyGroup> |
14 | | - <NuGetUrl Condition=" '$(NuGetUrl)' == '' ">https://dist.nuget.org/win-x86-commandline/v3.4.4/NuGet.exe</NuGetUrl> |
15 | | - <RestorePackages>false</RestorePackages> |
16 | | - <RunCodeAnalysis Condition=" '$(RunCodeAnalysis)' == ''">false</RunCodeAnalysis> |
17 | | - <IntermediateOutputPath>.nuget\</IntermediateOutputPath> |
18 | | - <PackagesPath>$(IntermediateOutputPath)packages</PackagesPath> |
19 | | - <CommonBuildProperties>WarningLevel=0;NoWarn=1591;Out=$(Out);Configuration=$(Configuration);RunCodeAnalysis=$(RunCodeAnalysis);PackOnBuild=true;;PackageOutputPath=$(Out)</CommonBuildProperties> |
20 | | - <DefaultImportance Condition=" '$(DefaultImportance)' == '' ">high</DefaultImportance> |
21 | | - <PS>%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe</PS> |
22 | | - </PropertyGroup> |
23 | | - |
24 | | - <ItemGroup> |
25 | | - <Solution Include="src\Build\NuGet.Build.Packaging.sln" /> |
26 | | - <Solution Include="src\VisualStudio\NuGet.Packaging.VisualStudio.15\NuGet.Packaging.VisualStudio.15.csproj" /> |
27 | | - <TestProject Include="src\Build\**\*Tests.csproj" /> |
| 3 | + <Import Project="build.props" /> |
| 4 | + |
| 5 | + <PropertyGroup Condition="'$(IsCIBuild)' != 'true'"> |
| 6 | + <!-- Local build defaults --> |
| 7 | + <Configuration Condition=" '$(Configuration)' == ''">Debug</Configuration> |
| 8 | + </PropertyGroup> |
| 9 | + <PropertyGroup Condition="'$(IsCIBuild)' == 'true'"> |
| 10 | + <Configuration Condition=" '$(Configuration)' == ''">Release</Configuration> |
| 11 | + </PropertyGroup> |
| 12 | + |
| 13 | + <PropertyGroup> |
| 14 | + <NuGetUrl Condition=" '$(NuGetUrl)' == '' ">https://dist.nuget.org/win-x86-commandline/v3.4.4/NuGet.exe</NuGetUrl> |
| 15 | + <RestorePackages>false</RestorePackages> |
| 16 | + <RunCodeAnalysis Condition=" '$(RunCodeAnalysis)' == ''">false</RunCodeAnalysis> |
| 17 | + <IntermediateOutputPath>.nuget\</IntermediateOutputPath> |
| 18 | + <PackagesPath>$(IntermediateOutputPath)packages</PackagesPath> |
| 19 | + <CommonBuildProperties>WarningLevel=0;NoWarn=1591;Out=$(Out);Configuration=$(Configuration);RunCodeAnalysis=$(RunCodeAnalysis);PackOnBuild=true;;PackageOutputPath=$(Out)</CommonBuildProperties> |
| 20 | + <DefaultImportance Condition=" '$(DefaultImportance)' == '' ">high</DefaultImportance> |
| 21 | + <PS>%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe</PS> |
| 22 | + </PropertyGroup> |
| 23 | + |
| 24 | + <ItemGroup> |
| 25 | + <Solution Include="src\Build\NuGet.Build.Packaging.sln" /> |
| 26 | + <Solution Include="src\VisualStudio\NuGet.Packaging.VisualStudio.15\NuGet.Packaging.VisualStudio.15.csproj" /> |
| 27 | + <TestProject Include="src\Build\**\*Tests.csproj" /> |
28 | 28 | <PackProject Include="src\VisualStudio\NuGet.Packaging.VisualStudio.15\NuGet.Packaging.VisualStudio.15.csproj" /> |
29 | | - </ItemGroup> |
30 | | - |
31 | | - <Target Name="All" DependsOnTargets="Build;Test;Package" /> |
32 | | - |
33 | | - <Target Name="Clean"> |
34 | | - <MSBuild Projects="@(Solution)" BuildInParallel="true" Properties="$(CommonBuildProperties)" Targets="Clean" /> |
35 | | - <Exec Command="rmdir .vs /S /Q" ContinueOnError="true" /> |
36 | | - <Exec Command="rmdir $(Out) /S /Q" Condition=" Exists('$(Out)') " ContinueOnError="true" /> |
37 | | - <Exec Command="rmdir $(PackagesPath) /S /Q" Condition=" Exists('$(PackagesPath)') " ContinueOnError="true" /> |
38 | | - </Target> |
39 | | - |
40 | | - <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
41 | | - |
42 | | - <Target Name="Build"> |
43 | | - <Exec Command="rmdir $(Out) /S /Q" Condition=" Exists('$(Out)') " ContinueOnError="true" StandardOutputImportance="low" /> |
44 | | - <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
45 | | - <Message Text="Build properties: $(CommonBuildProperties)." Importance="high" /> |
46 | | - <MSBuild Projects="@(Solution)" BuildInParallel="false" Properties="$(CommonBuildProperties);CreateVsixContainer=false;DeployExtension=false" /> |
47 | | - </Target> |
48 | | - |
49 | | - <Target Name="Package" DependsOnTargets="Build"> |
50 | | - <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
51 | | - <MSBuild Projects="@(PackProject)" Properties="$(CommonBuildProperties)" /> |
52 | | - <ItemGroup> |
53 | | - <OutputFile Include="$(Out)\*.nupkg" /> |
54 | | - <OutputFile Include="$(Out)\*.vsix" /> |
55 | | - </ItemGroup> |
56 | | - <Copy SourceFiles="@(OutputFile)" DestinationFolder="$(MSBuildThisFileDirectory)" Condition="'$(APPVEYOR)' == 'true'"/> |
57 | | - </Target> |
58 | | - |
59 | | - <Target Name="Test" DependsOnTargets="Build"> |
60 | | - <MSBuild Projects="@(TestProject)" BuildInParallel="true" Targets="GetTargetPath" Properties="$(CommonBuildProperties)"> |
61 | | - <Output TaskParameter="TargetOutputs" ItemName="_TestAssembly" /> |
62 | | - </MSBuild> |
63 | | - <ItemGroup> |
64 | | - <TestAssembly Include="@(_TestAssembly)" Condition="Exists('%(FullPath)')" /> |
65 | | - </ItemGroup> |
66 | | - <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
67 | | - |
68 | | - <PropertyGroup> |
69 | | - <XunitConsole>"$(PackagesPath)\xunit.runner.console\tools\xunit.console.exe"</XunitConsole> |
70 | | - <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel all -noshadow</XunitOptions> |
71 | | - </PropertyGroup> |
72 | | - |
73 | | - <Exec Command="$(XunitConsole) @(TestAssembly, ' ') $(XunitOptions)" ConsoleToMSBuild="true" /> |
74 | | - </Target> |
75 | | - |
76 | | - <Target Name="Restore"> |
| 29 | + </ItemGroup> |
| 30 | + |
| 31 | + <Target Name="All" DependsOnTargets="Build;Test;Package" /> |
| 32 | + |
| 33 | + <Target Name="Clean"> |
| 34 | + <MSBuild Projects="@(Solution)" BuildInParallel="true" Properties="$(CommonBuildProperties)" Targets="Clean" /> |
| 35 | + <Exec Command="rmdir .vs /S /Q" ContinueOnError="true" /> |
| 36 | + <Exec Command="rmdir $(Out) /S /Q" Condition=" Exists('$(Out)') " ContinueOnError="true" /> |
| 37 | + <Exec Command="rmdir $(PackagesPath) /S /Q" Condition=" Exists('$(PackagesPath)') " ContinueOnError="true" /> |
| 38 | + </Target> |
| 39 | + |
| 40 | + <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
| 41 | + |
| 42 | + <Target Name="Build"> |
| 43 | + <Exec Command="rmdir $(Out) /S /Q" Condition=" Exists('$(Out)') " ContinueOnError="true" StandardOutputImportance="low" /> |
| 44 | + <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
| 45 | + <Message Text="Build properties: $(CommonBuildProperties)." Importance="high" /> |
| 46 | + <MSBuild Projects="@(Solution)" BuildInParallel="false" Properties="$(CommonBuildProperties);CreateVsixContainer=false;DeployExtension=false" /> |
| 47 | + </Target> |
| 48 | + |
| 49 | + <Target Name="Package" DependsOnTargets="Build"> |
| 50 | + <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
| 51 | + <MSBuild Projects="@(PackProject)" Properties="$(CommonBuildProperties)" /> |
| 52 | + <ItemGroup> |
| 53 | + <OutputFile Include="$(Out)\*.nupkg" /> |
| 54 | + <OutputFile Include="$(Out)\*.vsix" /> |
| 55 | + </ItemGroup> |
| 56 | + <Copy SourceFiles="@(OutputFile)" DestinationFolder="$(MSBuildThisFileDirectory)" Condition="'$(APPVEYOR)' == 'true'"/> |
| 57 | + </Target> |
| 58 | + |
| 59 | + <Target Name="Test" DependsOnTargets="Build"> |
| 60 | + <MSBuild Projects="@(TestProject)" BuildInParallel="true" Targets="GetTargetPath" Properties="$(CommonBuildProperties)"> |
| 61 | + <Output TaskParameter="TargetOutputs" ItemName="_TestAssembly" /> |
| 62 | + </MSBuild> |
| 63 | + <ItemGroup> |
| 64 | + <TestAssembly Include="@(_TestAssembly)" Condition="Exists('%(FullPath)')" /> |
| 65 | + </ItemGroup> |
| 66 | + <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
| 67 | + |
| 68 | + <PropertyGroup> |
| 69 | + <XunitConsole>"$(PackagesPath)\xunit.runner.console\tools\xunit.console.exe"</XunitConsole> |
| 70 | + <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel all -noshadow</XunitOptions> |
| 71 | + </PropertyGroup> |
| 72 | + |
| 73 | + <Exec Command="$(XunitConsole) @(TestAssembly, ' ') $(XunitOptions)" ConsoleToMSBuild="true" /> |
| 74 | + </Target> |
| 75 | + |
| 76 | + <Target Name="Restore"> |
77 | 77 | <ItemGroup> |
78 | | - <RestoreSolution Include="external\ApiIntersect\ApiIntersect.sln" /> |
79 | | - <RestoreSolution Include="src\Build\NuGet.Build.Packaging.sln" /> |
80 | | - <RestoreSolution Include="src\VisualStudio\NuGet.Packaging.VisualStudio.sln" /> |
| 78 | + <NuGetRestore Include="external\ApiIntersect\ApiIntersect.sln" /> |
| 79 | + <NuGetRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_non_nugetized_reference\b.sln" /> |
| 80 | + <NuGetRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_multi_platform_solution\forms.sln" /> |
| 81 | + <NuGetRestore Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_library_with_json_dependencies\project.json" /> |
| 82 | + |
| 83 | + <MSBuildRestore Include="src\Build\NuGet.Build.Packaging.sln" /> |
| 84 | + <MSBuildRestore Include="src\VisualStudio\NuGet.Packaging.VisualStudio.sln" /> |
| 85 | + </ItemGroup> |
81 | 86 |
|
82 | | - <RestoreSolution Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_library_with_non_nugetized_reference\b.sln" /> |
83 | | - <RestoreSolution Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_a_multi_platform_solution\forms.sln" /> |
84 | | - <RestoreSolution Include="src\Build\NuGet.Build.Packaging.Tests\Scenarios\given_library_with_json_dependencies\a.csproj" /> |
| 87 | + <Exec Command='"$(NuGet)" Restore "%(NuGetRestore.Identity)" -Verbosity quiet' |
| 88 | + WorkingDirectory='%(RestoreSolution.RootDir)%(RestoreSolution.Directory)'/> |
| 89 | + |
| 90 | + <Exec Command='"$(MSBuildBinPath)\MSBuild.exe" /t:Restore "%(MSBuildRestore.Identity)" /v:Minimal' |
| 91 | + WorkingDirectory='%(RestoreSolution.RootDir)%(RestoreSolution.Directory)'/> |
| 92 | + </Target> |
| 93 | + |
| 94 | + <Target Name="Coverage" DependsOnTargets="Build"> |
| 95 | + <!-- Run tests but using code coverage --> |
| 96 | + <MSBuild Projects="@(TestProject)" BuildInParallel="true" Targets="GetTargetPath" Properties="$(CommonBuildProperties)"> |
| 97 | + <Output TaskParameter="TargetOutputs" ItemName="_TestAssembly" /> |
| 98 | + </MSBuild> |
| 99 | + <ItemGroup> |
| 100 | + <TestAssembly Include="@(_TestAssembly)" Condition="Exists('%(FullPath)')" /> |
85 | 101 | </ItemGroup> |
86 | | - |
87 | | - <Exec Command='"$(MSBuildBinPath)\MSBuild.exe" /t:Restore "%(RestoreSolution.Identity)" /v:Minimal' /> |
88 | | - </Target> |
89 | | - |
90 | | - <Target Name="Coverage" DependsOnTargets="Build"> |
91 | | - <!-- Run tests but using code coverage --> |
92 | | - <MSBuild Projects="@(TestProject)" BuildInParallel="true" Targets="GetTargetPath" Properties="$(CommonBuildProperties)"> |
93 | | - <Output TaskParameter="TargetOutputs" ItemName="_TestAssembly" /> |
94 | | - </MSBuild> |
95 | | - <ItemGroup> |
96 | | - <TestAssembly Include="@(_TestAssembly)" Condition="Exists('%(FullPath)')" /> |
97 | | - </ItemGroup> |
98 | | - <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
99 | | - |
100 | | - <PropertyGroup> |
101 | | - <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel none -noshadow </XunitOptions> |
102 | | - |
103 | | - <CoverageConsole>$(PackagesPath)\OpenCover\tools\OpenCover.Console.exe</CoverageConsole> |
104 | | - <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> |
105 | | - <CoverageCommand>$(CoverageConsole) $(CoverageOptions) -target:$(XunitConsole) -targetargs:"@(TestAssembly, ' ') $(XunitOptions)"</CoverageCommand> |
106 | | - |
107 | | - <ReportConsole>$(PackagesPath)\ReportGenerator\tools\ReportGenerator.exe</ReportConsole> |
108 | | - <ReportOptions>-reports:$(Out)\coverage.xml -targetdir:$(Out)\coverage -reporttypes:Html;Xml;Badges</ReportOptions> |
109 | | - </PropertyGroup> |
110 | | - |
111 | | - <Message Importance="high" Text="Executing: $(CoverageCommand)" /> |
112 | | - <Exec Command="$(CoverageCommand)" |
| 102 | + <MakeDir Directories="$(Out)" Condition="!Exists('$(Out)')" /> |
| 103 | + |
| 104 | + <PropertyGroup> |
| 105 | + <XunitOptions>$(XunitOptions) -html $(Out)\test.html -xml $(Out)\test.xml -parallel none -noshadow </XunitOptions> |
| 106 | + |
| 107 | + <CoverageConsole>$(PackagesPath)\OpenCover\tools\OpenCover.Console.exe</CoverageConsole> |
| 108 | + <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> |
| 109 | + <CoverageCommand>$(CoverageConsole) $(CoverageOptions) -target:$(XunitConsole) -targetargs:"@(TestAssembly, ' ') $(XunitOptions)"</CoverageCommand> |
| 110 | + |
| 111 | + <ReportConsole>$(PackagesPath)\ReportGenerator\tools\ReportGenerator.exe</ReportConsole> |
| 112 | + <ReportOptions>-reports:$(Out)\coverage.xml -targetdir:$(Out)\coverage -reporttypes:Html;Xml;Badges</ReportOptions> |
| 113 | + </PropertyGroup> |
| 114 | + |
| 115 | + <Message Importance="high" Text="Executing: $(CoverageCommand)" /> |
| 116 | + <Exec Command="$(CoverageCommand)" |
113 | 117 | ConsoleToMSBuild="true" |
114 | 118 | StandardErrorImportance="high" |
115 | 119 | StandardOutputImportance="normal" /> |
116 | 120 |
|
117 | | - <MakeDir Directories="$(Out)\coverage" Condition="!Exists('$(Out)\coverage')" /> |
118 | | - <Exec Command="$(ReportConsole) $(ReportOptions)" |
| 121 | + <MakeDir Directories="$(Out)\coverage" Condition="!Exists('$(Out)\coverage')" /> |
| 122 | + <Exec Command="$(ReportConsole) $(ReportOptions)" |
119 | 123 | ConsoleToMSBuild="true" |
120 | 124 | StandardErrorImportance="high" |
121 | 125 | StandardOutputImportance="normal" /> |
122 | 126 |
|
123 | | - <Exec Command="start $(Out)\coverage\index.htm" /> |
124 | | - </Target> |
125 | | - |
126 | | - <!-- Configure and restore initial targets and packages --> |
127 | | - <Import Project="src\NuGet.Restore.targets" /> |
128 | | - <PropertyGroup> |
129 | | - <GitInfoTargets>$(PackagesPath)\GitInfo\build\GitInfo.targets</GitInfoTargets> |
130 | | - <XunitConsole>$(PackagesPath)\xunit.runner.console\tools\xunit.console.x86.exe</XunitConsole> |
131 | | - <XunitBuildDir>$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', '.nuget', 'packages', 'xunit.runner.msbuild', 'build'))</XunitBuildDir> |
132 | | - <XunitPlatformDir Condition=" Exists('$(XunitBuildDir)') ">$([System.IO.Directory]::GetDirectories($(XunitBuildDir))[0])</XunitPlatformDir> |
133 | | - <!-- This file is used to detect whether the restore has been performed or not --> |
134 | | - <XunitProps>$([System.IO.Path]::Combine($(XunitPlatformDir), 'xunit.runner.msbuild.props'))</XunitProps> |
135 | | - <PendingRestore Condition=" !Exists('$(GitInfoTargets)') Or !Exists('$(XunitConsole)') Or !Exists('$(XunitProps)') ">true</PendingRestore> |
136 | | - </PropertyGroup> |
137 | | - <Import Project="$(XunitProps)" Condition="Exists('$(XunitProps)')"/> |
138 | | - <Target Name="GitVersion"> |
139 | | - <PropertyGroup> |
140 | | - <GitSemVerMajor>1</GitSemVerMajor> |
141 | | - <GitSemVerMinor>0</GitSemVerMinor> |
142 | | - <GitSemVerPatch>0</GitSemVerPatch> |
143 | | - </PropertyGroup> |
144 | | - </Target> |
145 | | - <Import Project="$(GitInfoTargets)" Condition="Exists('$(GitInfoTargets)')"/> |
146 | | - <Import Project="src\PackageVersion.targets" /> |
147 | | - |
148 | | - <Target Name="Configure" DependsOnTargets="DownloadNuGet;GetPackageVersion"> |
149 | | - <Message Importance="high" Text="*********************************************************************************************************************" /> |
150 | | - <Message Importance="high" Text="$([System.Environment]::CommandLine)" /> |
151 | | - <Message Importance="high" Text="*********************************************************************************************************************" /> |
152 | | - |
153 | | - <Exec Command='"$(NuGet)" Install "$(MSBuildThisFileDirectory)packages.config" -OutputDirectory "$(PackagesPath)" -ExcludeVersion -Verbosity quiet' |
| 127 | + <Exec Command="start $(Out)\coverage\index.htm" /> |
| 128 | + </Target> |
| 129 | + |
| 130 | + <!-- Configure and restore initial targets and packages --> |
| 131 | + <Import Project="src\NuGet.Restore.targets" /> |
| 132 | + <PropertyGroup> |
| 133 | + <GitInfoTargets>$(PackagesPath)\GitInfo\build\GitInfo.targets</GitInfoTargets> |
| 134 | + <XunitConsole>$(PackagesPath)\xunit.runner.console\tools\xunit.console.x86.exe</XunitConsole> |
| 135 | + <XunitBuildDir>$([System.IO.Path]::Combine('$(MSBuildThisFileDirectory)', '.nuget', 'packages', 'xunit.runner.msbuild', 'build'))</XunitBuildDir> |
| 136 | + <XunitPlatformDir Condition=" Exists('$(XunitBuildDir)') ">$([System.IO.Directory]::GetDirectories($(XunitBuildDir))[0])</XunitPlatformDir> |
| 137 | + <!-- This file is used to detect whether the restore has been performed or not --> |
| 138 | + <XunitProps>$([System.IO.Path]::Combine($(XunitPlatformDir), 'xunit.runner.msbuild.props'))</XunitProps> |
| 139 | + <PendingRestore Condition=" !Exists('$(GitInfoTargets)') Or !Exists('$(XunitConsole)') Or !Exists('$(XunitProps)') ">true</PendingRestore> |
| 140 | + </PropertyGroup> |
| 141 | + <Import Project="$(XunitProps)" Condition="Exists('$(XunitProps)')"/> |
| 142 | + <Target Name="GitVersion"> |
| 143 | + <PropertyGroup> |
| 144 | + <GitSemVerMajor>1</GitSemVerMajor> |
| 145 | + <GitSemVerMinor>0</GitSemVerMinor> |
| 146 | + <GitSemVerPatch>0</GitSemVerPatch> |
| 147 | + </PropertyGroup> |
| 148 | + </Target> |
| 149 | + <Import Project="$(GitInfoTargets)" Condition="Exists('$(GitInfoTargets)')"/> |
| 150 | + <Import Project="src\PackageVersion.targets" /> |
| 151 | + |
| 152 | + <Target Name="Configure" DependsOnTargets="DownloadNuGet;GetPackageVersion"> |
| 153 | + <Message Importance="high" Text="*********************************************************************************************************************" /> |
| 154 | + <Message Importance="high" Text="$([System.Environment]::CommandLine)" /> |
| 155 | + <Message Importance="high" Text="*********************************************************************************************************************" /> |
| 156 | + |
| 157 | + <Exec Command='"$(NuGet)" Install "$(MSBuildThisFileDirectory)packages.config" -OutputDirectory "$(PackagesPath)" -ExcludeVersion -Verbosity quiet' |
154 | 158 | StandardOutputImportance="low" |
155 | 159 | Condition=" '$(PendingRestore)' == 'true' " /> |
156 | 160 |
|
157 | | - <!-- Invoke GitVersion just like the project-level targets do --> |
158 | | - <MSBuild Projects="$(GitInfoTargets)" Targets="GitVersion;GitInfoReport" Properties="GitInfoReportImportance=high"> |
159 | | - <Output TaskParameter="TargetOutputs" ItemName="GitInfo" /> |
160 | | - </MSBuild> |
| 161 | + <!-- Invoke GitVersion just like the project-level targets do --> |
| 162 | + <MSBuild Projects="$(GitInfoTargets)" Targets="GitVersion;GitInfoReport" Properties="GitInfoReportImportance=high"> |
| 163 | + <Output TaskParameter="TargetOutputs" ItemName="GitInfo" /> |
| 164 | + </MSBuild> |
161 | 165 |
|
162 | | - <!-- For now this is an informative version #, used to update CI --> |
163 | | - <Message Text="Building version $(PackageVersion)" Importance="high" /> |
| 166 | + <!-- For now this is an informative version #, used to update CI --> |
| 167 | + <Message Text="Building version $(PackageVersion)" Importance="high" /> |
164 | 168 |
|
165 | | - <!-- Update AppVeyor build # to match the actual one being used --> |
166 | | - <Exec Command="appveyor UpdateBuild -Version $(PackageVersion)" Condition=" '$(APPVEYOR)' == 'true' " |
| 169 | + <!-- Update AppVeyor build # to match the actual one being used --> |
| 170 | + <Exec Command="appveyor UpdateBuild -Version $(PackageVersion)" Condition=" '$(APPVEYOR)' == 'true' " |
167 | 171 | ConsoleToMSBuild="true" |
168 | 172 | ContinueOnError="WarnAndContinue" /> |
169 | | - </Target> |
| 173 | + </Target> |
170 | 174 | </Project> |
0 commit comments