@@ -16,6 +16,7 @@ of patent rights can be found in the PATENTS file in the same directory.
16
16
<DevNuGetServer >http://reactjs.net/packages/</DevNuGetServer >
17
17
<MSBuildCommunityTasksPath >$(MSBuildProjectDirectory)\tools\MSBuildTasks</MSBuildCommunityTasksPath >
18
18
<PackageOutputDir >output</PackageOutputDir >
19
+ <BuildType Condition =" '$(BuildType)' == ''" >Dev</BuildType >
19
20
20
21
<!-- Only build ASP.NET 5 projects if on MSBuild 14+ (VS2015+) -->
21
22
<BuildAspNet5 >false</BuildAspNet5 >
@@ -39,11 +40,16 @@ of patent rights can be found in the PATENTS file in the same directory.
39
40
40
41
<Import Project =" src/React.tasks.proj" />
41
42
42
- <Target Name =" RestorePackages" >
43
+ <Target Name =" RestorePackages" DependsOnTargets = " Clean " >
43
44
<Exec
44
45
WorkingDirectory=" $(MSBuildProjectDirectory)"
45
46
Command=" tools\NuGet\nuget.exe restore $(SolutionFile)"
46
47
/>
48
+ <!-- NuGet packages for ASP.NET 5 projects -->
49
+ <Exec
50
+ WorkingDirectory=" $(MSBuildProjectDirectory)"
51
+ Command=" dnu restore --quiet --parallel"
52
+ />
47
53
</Target >
48
54
49
55
<Target Name =" UpdateVersion" >
@@ -90,14 +96,11 @@ of patent rights can be found in the PATENTS file in the same directory.
90
96
ASP.NET 5 projects don't delete generated .nupkg files when cleaned or rebuilt, so we need to
91
97
do it here. See https://github.com/aspnet/XRE/issues/1301
92
98
-->
93
- <ItemGroup >
94
- <OldAspNet5Packages Include =" bin/%(PackageAssembliesAspNet5.Identity)/**/*.nupkg" />
95
- </ItemGroup >
96
- <Delete Files =" @(OldAspNet5Packages)" />
99
+ <DeleteTree Directories =" src/artifacts" />
97
100
</Target >
98
101
99
102
<Target Name =" Build" DependsOnTargets =" RestorePackages;UpdateVersion" >
100
- <MSBuild Projects =" $(SolutionFile)" Targets =" Rebuild" Properties =" Configuration=Release;Platform=Any CPU;NoWarn=1607" />
103
+ <MSBuild Projects =" $(SolutionFile)" Targets =" Rebuild" Properties =" Configuration=Release;Platform=Any CPU;NoWarn=1607,7035 " />
101
104
</Target >
102
105
103
106
<Target Name =" ResetAspNetVersion" AfterTargets =" Build" >
@@ -143,7 +146,7 @@ of patent rights can be found in the PATENTS file in the same directory.
143
146
<ItemGroup >
144
147
<AspNet5Packages Include =" bin/%(PackageAssembliesAspNet5.Identity)/Release/*.nupkg" />
145
148
</ItemGroup >
146
- <Copy SourceFiles =" @(AspNet5Packages)" DestinationFolder =" output " />
149
+ <Copy SourceFiles =" @(AspNet5Packages)" DestinationFolder =" $(PackageOutputDir) " />
147
150
</Target >
148
151
149
152
<Target Name =" Push" >
0 commit comments