Merge pull request #1902 from Sridhar-MS/corehost-fixes
Make corehost pick pre-release SDK version when no production releases.
This commit is contained in:
commit
52f4ad2b91
3 changed files with 47 additions and 29 deletions
|
@ -52,12 +52,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[Target]
|
||||
public static BuildTargetResult CopyCLISDKLayout(BuildTargetContext c)
|
||||
{
|
||||
// CLI SDK must be layed out in path which has a Nuget version.
|
||||
// But the muxer does not currently support the pre-release CLI SDK without a global.json file.
|
||||
// So we are creating a production version.
|
||||
// var nugetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
|
||||
var nugetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").ProductionVersion;
|
||||
|
||||
var nugetVersion = c.BuildContext.Get<BuildVersion>("BuildVersion").NuGetVersion;
|
||||
var cliSdkRoot = Path.Combine(Dirs.Output, "obj", "clisdk");
|
||||
var cliSdk = Path.Combine(cliSdkRoot, "sdk", nugetVersion);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue