Merge branch 'rel/2.0.0' into dev
This commit is contained in:
commit
00d2d6b0f0
|
|
@ -75,7 +75,7 @@
|
|||
Condition="Exists('$(DependencyBuildDirectory)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig;AddDiaSymReaderToPath">
|
||||
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig;AddDiaSymReaderToPath;_ResolveCurrentSharedFrameworkVersion">
|
||||
<GetOSPlatform>
|
||||
<!-- Returns {Linux, macOS, Windows} -->
|
||||
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
||||
|
|
@ -125,7 +125,7 @@
|
|||
<Exec Command="dotnet restore" WorkingDirectory="$(HostingStartupTemplatePath)" />
|
||||
|
||||
<!--- 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);RuntimeFrameworkVersion=$(SharedFrameworkVersion)""/>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageStoreManifestFiles Include="$(RuntimeStoreOutputPath)**\artifact.xml">
|
||||
|
|
@ -205,7 +205,10 @@
|
|||
|
||||
<Target Name="_ResolveCurrentSharedFrameworkVersion">
|
||||
<!-- Parse framework version -->
|
||||
<Exec Command="powershell.exe $(ToolsDir)GetSharedFrameworkVersion.ps1" ConsoleToMSBuild="true">
|
||||
<Exec Command="powershell.exe $(ToolsDir)GetSharedFrameworkVersion.ps1" ConsoleToMSBuild="true" Condition="'$(OS)' == 'Windows_NT'">
|
||||
<Output TaskParameter="ConsoleOutput" PropertyName="SharedFrameworkVersion" />
|
||||
</Exec>
|
||||
<Exec Command="bash $(ToolsDir)GetSharedFrameworkVersion.sh" ConsoleToMSBuild="true" Condition="'$(OS)' != 'Windows_NT'">
|
||||
<Output TaskParameter="ConsoleOutput" PropertyName="SharedFrameworkVersion" />
|
||||
</Exec>
|
||||
</Target>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
dotnet --info | grep -i version | tail -1 | cut -f 2 -d ":" | tr -d ' '
|
||||
Loading…
Reference in New Issue