Minimal restore when building deps files
This commit is contained in:
parent
b3b986bfa9
commit
ddd96887da
|
|
@ -37,7 +37,7 @@
|
||||||
Condition="Exists('$(DependencyBuildDirectory)')" />
|
Condition="Exists('$(DependencyBuildDirectory)')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig;Restore">
|
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig">
|
||||||
<GetOSPlatform>
|
<GetOSPlatform>
|
||||||
<!-- Returns {Linux, macOS, Windows} -->
|
<!-- Returns {Linux, macOS, Windows} -->
|
||||||
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
<RemoveDir Directories="$(WorkingDirectory)" />
|
<RemoveDir Directories="$(WorkingDirectory)" />
|
||||||
<Exec Command="dotnet store --manifest $(MetaPackageFile) --configuration Release --framework netcoreapp2.0 --runtime $(RID) --output $(PackageCacheOutputPath) --framework-version 2.0.0-* --working-dir $(WorkingDirectory)" />
|
<Exec Command="dotnet store --manifest $(MetaPackageFile) --configuration Release --framework netcoreapp2.0 --runtime $(RID) --output $(PackageCacheOutputPath) --framework-version 2.0.0-* --working-dir $(WorkingDirectory)" />
|
||||||
|
|
||||||
|
<Exec Command="dotnet restore" WorkingDirectory="$(RepositoryRoot)tools\TrimDeps" />
|
||||||
<!--- MSBuild caches things if you run inproc so have to use Exec -->
|
<!--- MSBuild caches things if you run inproc so have to use Exec -->
|
||||||
<Exec Command="dotnet msbuild /t:Restore;Rebuild;CollectDeps $(HostingStartupTemplateFile) /p:DepsOutputPath=$(DepsOutputPath);HostingStartupPackageName=%(HostingStartupPackageReference.Identity);HostingStartupPackageVersion=%(Version)"/>
|
<Exec Command="dotnet msbuild /t:Restore;Rebuild;CollectDeps $(HostingStartupTemplateFile) /p:DepsOutputPath=$(DepsOutputPath);HostingStartupPackageName=%(HostingStartupPackageReference.Identity);HostingStartupPackageVersion=%(Version)"/>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue