@@ -29,10 +29,10 @@ of patent rights can be found in the PATENTS file in the same directory.
2929 <PackageAssemblies Include =" Cassette.React" />
3030 <PackageAssemblies Include =" React.MSBuild" />
3131 <PackageAssemblies Include =" React.Owin" />
32- <PackageAssembliesAspNet5 Include =" React.AspNet" />
33- <AspNet5ProjectJson Include =" src/React.AspNet /project.json" />
34- <AspNet5ProjectJson Include =" src/React.Sample.Mvc6 /project.json" />
35- <AspNet5ProjectJson Include =" src/wrap/** /project.json" />
32+ <PackageAssembliesAspNetCore Include =" React.AspNet" />
33+ <AspNetCoreProjectJson Include =" src/wrap/** /project.json" />
34+ <AspNetCoreProjectJson Include =" src/React.AspNet /project.json" />
35+ <AspNetCoreProjectJson Include =" src/React.Sample.Mvc6 /project.json" />
3636 </ItemGroup >
3737
3838 <Import Project =" src/React.tasks.proj" />
@@ -42,10 +42,10 @@ of patent rights can be found in the PATENTS file in the same directory.
4242 WorkingDirectory=" $(MSBuildProjectDirectory)"
4343 Command=" tools\NuGet\nuget.exe restore $(SolutionFile)"
4444 />
45- <!-- NuGet packages for ASP.NET 5 projects -->
45+ <!-- NuGet packages for ASP.NET Core projects -->
4646 <Exec
4747 WorkingDirectory=" $(MSBuildProjectDirectory)"
48- Command=" dnu restore --quiet --parallel src\React.AspNet src\React.Sample.Mvc6"
48+ Command=" dotnet restore --quiet src\React.AspNet src\React.Sample.Mvc6"
4949 />
5050 <!-- npm packages -->
5151 <Exec
@@ -81,7 +81,7 @@ of patent rights can be found in the PATENTS file in the same directory.
8181 AssemblyInformationalVersion=" $(Major).$(Minor).$(FullBuild)"
8282 />
8383 <!--
84- Set version for ASP.NET 5 projects. In theory K_BUILD_VERSION should work but it doesn't seem
84+ Set version for ASP.NET Core projects. In theory K_BUILD_VERSION should work but it doesn't seem
8585 to be functional yet :(. We work around this by physically writing the build number to the
8686 project.json files. For development builds we write the full version number (including
8787 build date) and reset it later so the dev build number isn't commited to the repo.
@@ -91,18 +91,18 @@ of patent rights can be found in the PATENTS file in the same directory.
9191 Value="$(Build)"
9292 /-->
9393 <UpdateAspNetProjectVersion
94- Files=" @(AspNet5ProjectJson )"
94+ Files=" @(AspNetCoreProjectJson )"
9595 Version=" $(Major).$(Minor).$(FullBuild)"
9696 />
9797 </Target >
9898
9999 <Target Name =" Clean" BeforeTargets =" Build" >
100100 <!--
101- ASP.NET 5 projects don't delete generated .nupkg files when cleaned or rebuilt, so we need to
101+ ASP.NET Core projects don't delete generated .nupkg files when cleaned or rebuilt, so we need to
102102 do it here. See https://github.com/aspnet/XRE/issues/1301
103103 -->
104104 <DeleteTree Directories =" src/artifacts" />
105- <DeleteTree Directories =" bin/%(PackageAssembliesAspNet5 .Identity)/Release" />
105+ <DeleteTree Directories =" bin/%(PackageAssembliesAspNetCore .Identity)/Release" />
106106 </Target >
107107
108108 <Target Name =" Build" DependsOnTargets =" RestorePackages;UpdateVersion" >
@@ -111,10 +111,10 @@ of patent rights can be found in the PATENTS file in the same directory.
111111 <Exec WorkingDirectory =" src/React.Sample.Webpack" Command =" node_modules/.bin/webpack" />
112112 </Target >
113113
114- <Target Name =" ResetAspNetVersion" AfterTargets =" Build " >
115- <!-- Resets the version number in ASP.NET project.json files so we don't commit -dev- version numbers -->
114+ <Target Name =" ResetAspNetVersion" AfterTargets =" AspNetPackages " >
115+ <!-- Resets the version number in ASP.NET Core project.json files so we don't commit -dev- version numbers -->
116116 <UpdateAspNetProjectVersion
117- Files=" @(AspNet5ProjectJson )"
117+ Files=" @(AspNetCoreProjectJson )"
118118 Version=" $(Major).$(Minor).$(Build)-*"
119119 />
120120 </Target >
@@ -148,13 +148,12 @@ of patent rights can be found in the PATENTS file in the same directory.
148148 Command=" tools\NuGet\nuget.exe pack src/%(PackageAssemblies.Identity)/%(PackageAssemblies.Identity).csproj -IncludeReferencedProjects -Symbols -Prop Configuration=Release -OutputDirectory output"
149149 />
150150 </Target >
151-
152- <Target Name =" CopyAspNetPackages" AfterTargets =" Package" >
153- <!-- Copy over ASP.NET 5 packages -->
154- <ItemGroup >
155- <AspNet5Packages Include =" bin/%(PackageAssembliesAspNet5.Identity)/Release/*.nupkg" />
156- </ItemGroup >
157- <Copy SourceFiles =" @(AspNet5Packages)" DestinationFolder =" $(PackageOutputDir)" />
151+
152+ <Target Name =" AspNetPackages" AfterTargets =" Package" >
153+ <Exec
154+ WorkingDirectory=" $(MSBuildProjectDirectory)"
155+ Command=" dotnet pack --output $(PackageOutputDir) --build-base-path bin/ --configuration Release --no-build src/%(PackageAssembliesAspNetCore.Identity)/project.json"
156+ />
158157 </Target >
159158
160159 <Target Name =" Push" >
0 commit comments