Allow overriding RuntimeFrameworkVersion used for deps generation.
This commit is contained in:
parent
cb389fe9b0
commit
cde593c0e0
|
|
@ -14,9 +14,11 @@
|
||||||
|
|
||||||
<Target Name="CollectDeps">
|
<Target Name="CollectDeps">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<DestinationDepsFile>$(DepsOutputPath)\$(HostingStartupPackageName)\shared\Microsoft.NETCore.App\$(RuntimeFrameworkVersion)\$(HostingStartupPackageName).deps.json</DestinationDepsFile>
|
<CurrentRuntimeFrameworkVersion Condition="'$(CurrentRuntimeFrameworkVersion)' == ''">$(RuntimeFrameworkVersion)</CurrentRuntimeFrameworkVersion>
|
||||||
|
<DestinationDepsFile>$(DepsOutputPath)\$(HostingStartupPackageName)\shared\Microsoft.NETCore.App\$(CurrentRuntimeFrameworkVersion)\$(HostingStartupPackageName).deps.json</DestinationDepsFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Copy SourceFiles="$(ProjectDepsFilePath)" DestinationFiles="$(DestinationDepsFile)" />
|
|
||||||
<Exec Command="dotnet run --framework netcoreapp2.0 $([System.IO.Path]::GetFullPath('$(DestinationDepsFile)'))" WorkingDirectory="../TrimDeps/"/>
|
<Copy SourceFiles="$(ProjectDepsFilePath)" DestinationFiles="$(DestinationDepsFile)" />
|
||||||
|
<Exec Command="dotnet run --framework netcoreapp2.0 $([System.IO.Path]::GetFullPath('$(DestinationDepsFile)'))" WorkingDirectory="../TrimDeps/"/>
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue