Merge branch 'rel/2.0.0' into dev
This commit is contained in:
commit
00d2d6b0f0
|
|
@ -75,7 +75,7 @@
|
||||||
Condition="Exists('$(DependencyBuildDirectory)')" />
|
Condition="Exists('$(DependencyBuildDirectory)')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig;AddDiaSymReaderToPath">
|
<Target Name="BuildPackageCache" DependsOnTargets="UpdateNuGetConfig;AddDiaSymReaderToPath;_ResolveCurrentSharedFrameworkVersion">
|
||||||
<GetOSPlatform>
|
<GetOSPlatform>
|
||||||
<!-- Returns {Linux, macOS, Windows} -->
|
<!-- Returns {Linux, macOS, Windows} -->
|
||||||
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
||||||
|
|
@ -125,7 +125,7 @@
|
||||||
<Exec Command="dotnet restore" WorkingDirectory="$(HostingStartupTemplatePath)" />
|
<Exec Command="dotnet restore" WorkingDirectory="$(HostingStartupTemplatePath)" />
|
||||||
|
|
||||||
<!--- 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);RuntimeFrameworkVersion=$(SharedFrameworkVersion)""/>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageStoreManifestFiles Include="$(RuntimeStoreOutputPath)**\artifact.xml">
|
<PackageStoreManifestFiles Include="$(RuntimeStoreOutputPath)**\artifact.xml">
|
||||||
|
|
@ -205,7 +205,10 @@
|
||||||
|
|
||||||
<Target Name="_ResolveCurrentSharedFrameworkVersion">
|
<Target Name="_ResolveCurrentSharedFrameworkVersion">
|
||||||
<!-- Parse framework version -->
|
<!-- 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" />
|
<Output TaskParameter="ConsoleOutput" PropertyName="SharedFrameworkVersion" />
|
||||||
</Exec>
|
</Exec>
|
||||||
</Target>
|
</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