Temporarily restoring in-between compilation stages in order to use the current NuGet restore implementation.

This commit is contained in:
Eric Erhardt 2016-07-26 13:51:36 -05:00
parent a48def9ade
commit 74da44a2bf
2 changed files with 13 additions and 0 deletions

View file

@ -91,6 +91,14 @@
<Copy SourceFiles="@(SharedFramework)"
DestinationFiles="@(SharedFramework->'$(StageDirectory)\%(RecursiveDir)%(Filename)%(Extension)')" />
<!-- TEMP HACK: need to restore with the current stage, until we get a Stage0 with the new NuGet build -->
<ItemGroup>
<SrcLockFiles Include="$(SrcDirectory)/**/project.lock.json" />
</ItemGroup>
<Delete Files="@(SrcLockFiles)" />
<DotNetRestore ToolPath="%(Stage.DotnetDir)"
WorkingDirectory="$(SrcDirectory)" />
<!-- Publish DotNet -->
<DotNetPublish ToolPath="%(Stage.DotnetDir)"
NativeSubdirectory="True"

View file

@ -23,6 +23,11 @@
<Message Text="Publishing Archiver" />
<!-- TEMP HACK: need to restore with the current stage, until we get a Stage0 with the new NuGet build -->
<Delete Files="$(RepoRoot)/tools/Archiver/project.lock.json" />
<DotNetRestore ToolPath="$(Stage2Directory)"
WorkingDirectory="$(RepoRoot)/tools/Archiver" />
<DotNetPublish ToolPath="$(Stage2Directory)"
WorkingDirectory="$(RepoRoot)/tools/Archiver"
Output="$(ToolsOutputDirectory)"