Merge pull request #7121 from mlorbetske/dev/mlorbe/UpdateToSetupCrossgen277Coherence26182
Update to SetupCrossgen 277 - Coherence 26182
This commit is contained in:
commit
da3ff8fb7c
15 changed files with 26 additions and 23 deletions
|
@ -22,9 +22,9 @@
|
||||||
<SharedFrameworkVersion>$(CLI_SharedFrameworkVersion)</SharedFrameworkVersion>
|
<SharedFrameworkVersion>$(CLI_SharedFrameworkVersion)</SharedFrameworkVersion>
|
||||||
<SharedHostVersion>$(CLI_SharedFrameworkVersion)</SharedHostVersion>
|
<SharedHostVersion>$(CLI_SharedFrameworkVersion)</SharedHostVersion>
|
||||||
<HostFxrVersion>$(CLI_SharedFrameworkVersion)</HostFxrVersion>
|
<HostFxrVersion>$(CLI_SharedFrameworkVersion)</HostFxrVersion>
|
||||||
<TemplateEngineVersion>1.0.0-beta2-20170707-280</TemplateEngineVersion>
|
<TemplateEngineVersion>1.0.0-beta2-20170710-283</TemplateEngineVersion>
|
||||||
<TemplateEngineTemplateVersion>1.0.0-beta2-20170707-280</TemplateEngineTemplateVersion>
|
<TemplateEngineTemplateVersion>1.0.0-beta2-20170710-283</TemplateEngineTemplateVersion>
|
||||||
<TemplateEngineTemplate2_0Version>1.0.0-beta2-20170707-280</TemplateEngineTemplate2_0Version>
|
<TemplateEngineTemplate2_0Version>1.0.0-beta2-20170710-283</TemplateEngineTemplate2_0Version>
|
||||||
<PlatformAbstractionsVersion>2.0.0-preview3-25510-01</PlatformAbstractionsVersion>
|
<PlatformAbstractionsVersion>2.0.0-preview3-25510-01</PlatformAbstractionsVersion>
|
||||||
<DependencyModelVersion>2.0.0-preview3-25510-01</DependencyModelVersion>
|
<DependencyModelVersion>2.0.0-preview3-25510-01</DependencyModelVersion>
|
||||||
<CliCommandLineParserVersion>0.1.1-alpha-167</CliCommandLineParserVersion>
|
<CliCommandLineParserVersion>0.1.1-alpha-167</CliCommandLineParserVersion>
|
||||||
|
@ -35,9 +35,9 @@
|
||||||
|
|
||||||
<!-- This should either be timestamped or notimestamp as appropriate -->
|
<!-- This should either be timestamped or notimestamp as appropriate -->
|
||||||
<AspNetCoreRuntimePackageFlavor>timestamped</AspNetCoreRuntimePackageFlavor>
|
<AspNetCoreRuntimePackageFlavor>timestamped</AspNetCoreRuntimePackageFlavor>
|
||||||
<AspNetCoreRuntimeVersion>dev-270</AspNetCoreRuntimeVersion>
|
<AspNetCoreRuntimeVersion>dev-277</AspNetCoreRuntimeVersion>
|
||||||
<AspNetCoherenceLabel>rtm</AspNetCoherenceLabel>
|
<AspNetCoherenceLabel>rtm</AspNetCoherenceLabel>
|
||||||
<AspNetCoreCoherenceTimestamp>26151</AspNetCoreCoherenceTimestamp>
|
<AspNetCoreCoherenceTimestamp>26182</AspNetCoreCoherenceTimestamp>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
ToolPath = ToolPath,
|
ToolPath = ToolPath,
|
||||||
TemplateType = newArgs[0],
|
TemplateType = newArgs[0],
|
||||||
TemplateArgs = newArgs[1] + $" --debug:ephemeral-hive -n TempProject -o \"{outputDir}\"",
|
TemplateArgs = newArgs[1] + $" --debug:ephemeral-hive -n TempProject -o \"{outputDir}\" --no-restore",
|
||||||
HostObject = HostObject,
|
HostObject = HostObject,
|
||||||
BuildEngine = BuildEngine
|
BuildEngine = BuildEngine
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Microsoft.DotNet.Tools.Migrate
|
||||||
string outputDirectory,
|
string outputDirectory,
|
||||||
string workingDirectory)
|
string workingDirectory)
|
||||||
{
|
{
|
||||||
RunCommand("new", new string[] { "console", "-o", workingDirectory, "--debug:ephemeral-hive" }, workingDirectory);
|
RunCommand("new", new string[] { "console", "-o", workingDirectory, "--debug:ephemeral-hive", "--no-restore" }, workingDirectory);
|
||||||
}
|
}
|
||||||
private void RunCommand(string commandToExecute, IEnumerable<string> args, string workingDirectory)
|
private void RunCommand(string commandToExecute, IEnumerable<string> args, string workingDirectory)
|
||||||
{
|
{
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
<PackageReference Include="Microsoft.DotNet.ProjectJsonMigration" Version="$(CliMigrateVersion)" />
|
<PackageReference Include="Microsoft.DotNet.ProjectJsonMigration" Version="$(CliMigrateVersion)" />
|
||||||
<PackageReference Include="Microsoft.TemplateEngine.Abstractions" Version="$(TemplateEngineVersion)" />
|
<PackageReference Include="Microsoft.TemplateEngine.Abstractions" Version="$(TemplateEngineVersion)" />
|
||||||
<PackageReference Include="Microsoft.TemplateEngine.Cli" Version="$(TemplateEngineVersion)" />
|
<PackageReference Include="Microsoft.TemplateEngine.Cli" Version="$(TemplateEngineVersion)" />
|
||||||
|
<PackageReference Include="Microsoft.TemplateEngine.Cli.Localization" Version="$(TemplateEngineVersion)" />
|
||||||
<PackageReference Include="Microsoft.TemplateEngine.Orchestrator.RunnableProjects" Version="$(TemplateEngineVersion)" />
|
<PackageReference Include="Microsoft.TemplateEngine.Orchestrator.RunnableProjects" Version="$(TemplateEngineVersion)" />
|
||||||
<PackageReference Include="Microsoft.TemplateEngine.Utils" Version="$(TemplateEngineVersion)" />
|
<PackageReference Include="Microsoft.TemplateEngine.Utils" Version="$(TemplateEngineVersion)" />
|
||||||
<PackageReference Include="XliffTasks" Version="$(XliffTasksVersion)" PrivateAssets="All" />
|
<PackageReference Include="XliffTasks" Version="$(XliffTasksVersion)" PrivateAssets="All" />
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
||||||
{
|
{
|
||||||
string projectDirectory = directory.Path;
|
string projectDirectory = directory.Path;
|
||||||
|
|
||||||
string newArgs = "console -f netcoreapp2.0 --debug:ephemeral-hive";
|
string newArgs = "console -f netcoreapp2.0 --debug:ephemeral-hive --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(projectDirectory)
|
.WithWorkingDirectory(projectDirectory)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
|
|
@ -68,7 +68,7 @@ Commands:
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string args = $"classlib -o \"{projDir.Path}\" --debug:ephemeral-hive";
|
string args = $"classlib -o \"{projDir.Path}\" --debug:ephemeral-hive --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(projDir.Path)
|
.WithWorkingDirectory(projDir.Path)
|
||||||
.ExecuteWithCapturedOutput(args)
|
.ExecuteWithCapturedOutput(args)
|
||||||
|
|
|
@ -93,7 +93,7 @@ namespace Microsoft.DotNet.Cli.Build.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string args = $"--packages {dir}";
|
string args = $"--packages {dir}";
|
||||||
|
|
||||||
string newArgs = $"console -f netcoreapp2.0 -o \"{rootPath}\" --debug:ephemeral-hive";
|
string newArgs = $"console -f netcoreapp2.0 -o \"{rootPath}\" --debug:ephemeral-hive --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
|
|
@ -209,7 +209,7 @@ Commands:
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string newArgs = $"classlib -o \"{dir.Path}\" --debug:ephemeral-hive";
|
string newArgs = $"classlib -o \"{dir.Path}\" --debug:ephemeral-hive --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(dir.Path)
|
.WithWorkingDirectory(dir.Path)
|
||||||
.ExecuteWithCapturedOutput(newArgs)
|
.ExecuteWithCapturedOutput(newArgs)
|
||||||
|
|
|
@ -21,13 +21,13 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
|
|
||||||
new NewCommand()
|
new NewCommand()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute($"console --debug:ephemeral-hive");
|
.Execute($"console --debug:ephemeral-hive --no-restore");
|
||||||
|
|
||||||
DateTime expectedState = Directory.GetLastWriteTime(rootPath);
|
DateTime expectedState = Directory.GetLastWriteTime(rootPath);
|
||||||
|
|
||||||
var result = new NewCommand()
|
var result = new NewCommand()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.ExecuteWithCapturedOutput($"console --debug:ephemeral-hive");
|
.ExecuteWithCapturedOutput($"console --debug:ephemeral-hive --no-restore");
|
||||||
|
|
||||||
DateTime actualState = Directory.GetLastWriteTime(rootPath);
|
DateTime actualState = Directory.GetLastWriteTime(rootPath);
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
|
|
||||||
new NewCommand()
|
new NewCommand()
|
||||||
.WithWorkingDirectory(projectFolder)
|
.WithWorkingDirectory(projectFolder)
|
||||||
.Execute($"{projectType} --debug:ephemeral-hive")
|
.Execute($"{projectType} --debug:ephemeral-hive --no-restore")
|
||||||
.Should().Pass();
|
.Should().Pass();
|
||||||
|
|
||||||
// https://github.com/dotnet/templating/issues/946 - remove DisableImplicitAssetTargetFallback once this is fixed.
|
// https://github.com/dotnet/templating/issues/946 - remove DisableImplicitAssetTargetFallback once this is fixed.
|
||||||
|
@ -87,7 +87,7 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
|
|
||||||
new NewCommand()
|
new NewCommand()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute($"{type} --name {projectName} -o . --debug:ephemeral-hive")
|
.Execute($"{type} --name {projectName} -o . --debug:ephemeral-hive --no-restore")
|
||||||
.Should().Pass();
|
.Should().Pass();
|
||||||
|
|
||||||
new RestoreCommand()
|
new RestoreCommand()
|
||||||
|
|
|
@ -42,9 +42,11 @@ namespace Microsoft.DotNet.New.Tests
|
||||||
bool skipSpaWebpackSteps)
|
bool skipSpaWebpackSteps)
|
||||||
{
|
{
|
||||||
string rootPath = TestAssets.CreateTestDirectory(identifier: $"{language}_{projectType}").FullName;
|
string rootPath = TestAssets.CreateTestDirectory(identifier: $"{language}_{projectType}").FullName;
|
||||||
|
//This works around the SPA templates not currently supporting the "--no-restore" switch
|
||||||
|
string noRestoreDirective = skipSpaWebpackSteps ? "" : "--no-restore";
|
||||||
|
|
||||||
new TestCommand("dotnet") { WorkingDirectory = rootPath }
|
new TestCommand("dotnet") { WorkingDirectory = rootPath }
|
||||||
.Execute($"new {projectType} -lang {language} -o {rootPath} --debug:ephemeral-hive")
|
.Execute($"new {projectType} -lang {language} -o {rootPath} --debug:ephemeral-hive {noRestoreDirective}")
|
||||||
.Should().Pass();
|
.Should().Pass();
|
||||||
|
|
||||||
if (useNuGetConfigForAspNet)
|
if (useNuGetConfigForAspNet)
|
||||||
|
|
|
@ -245,7 +245,7 @@ namespace Microsoft.DotNet.Tools.Pack.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string args = $"--packages {dir}";
|
string args = $"--packages {dir}";
|
||||||
|
|
||||||
string newArgs = $"console -o \"{rootPath}\"";
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
|
|
@ -206,7 +206,7 @@ namespace Microsoft.DotNet.Cli.Publish.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string args = $"--packages {dir}";
|
string args = $"--packages {dir}";
|
||||||
|
|
||||||
string newArgs = $"console -o \"{rootPath}\"";
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
|
|
@ -65,7 +65,7 @@ Commands:
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string newArgs = $"classlib -o \"{projDir.Path}\"";
|
string newArgs = $"classlib -o \"{projDir.Path}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(projDir.Path)
|
.WithWorkingDirectory(projDir.Path)
|
||||||
.ExecuteWithCapturedOutput(newArgs)
|
.ExecuteWithCapturedOutput(newArgs)
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace Microsoft.DotNet.Restore.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string fullPath = Path.GetFullPath(Path.Combine(rootPath, dir));
|
string fullPath = Path.GetFullPath(Path.Combine(rootPath, dir));
|
||||||
|
|
||||||
string newArgs = $"console -o \"{rootPath}\"";
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
@ -51,7 +51,7 @@ namespace Microsoft.DotNet.Restore.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string fullPath = Path.GetFullPath(Path.Combine(rootPath, dir));
|
string fullPath = Path.GetFullPath(Path.Combine(rootPath, dir));
|
||||||
|
|
||||||
string newArgs = $"classlib -o \"{rootPath}\"";
|
string newArgs = $"classlib -o \"{rootPath}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
@ -98,7 +98,7 @@ namespace Microsoft.DotNet.Restore.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string fullPath = Path.GetFullPath(Path.Combine(rootPath, dir));
|
string fullPath = Path.GetFullPath(Path.Combine(rootPath, dir));
|
||||||
|
|
||||||
string newArgs = $"console -o \"{rootPath}\"";
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
|
|
@ -198,7 +198,7 @@ namespace Microsoft.DotNet.Cli.Run.Tests
|
||||||
string dir = "pkgs";
|
string dir = "pkgs";
|
||||||
string args = $"--packages {dir}";
|
string args = $"--packages {dir}";
|
||||||
|
|
||||||
string newArgs = $"console -o \"{rootPath}\"";
|
string newArgs = $"console -o \"{rootPath}\" --no-restore";
|
||||||
new NewCommandShim()
|
new NewCommandShim()
|
||||||
.WithWorkingDirectory(rootPath)
|
.WithWorkingDirectory(rootPath)
|
||||||
.Execute(newArgs)
|
.Execute(newArgs)
|
||||||
|
|
Loading…
Reference in a new issue