Update template engine & template versions

This commit is contained in:
Mike Lorbetske 2017-04-05 13:50:12 -07:00
parent 3d4a6ed72a
commit 379dd5c9e0
19 changed files with 26 additions and 26 deletions

View file

@ -11,12 +11,12 @@
<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-20170328-177</TemplateEngineVersion> <TemplateEngineVersion>1.0.0-beta2-20170405-182</TemplateEngineVersion>
<TemplateEngineTemplateVersion>1.0.0-beta2-20170328-177</TemplateEngineTemplateVersion> <TemplateEngineTemplateVersion>1.0.0-beta2-20170405-182</TemplateEngineTemplateVersion>
<TemplateEngineTemplate2_0Version>1.0.0-beta2-20170328-177</TemplateEngineTemplate2_0Version> <TemplateEngineTemplate2_0Version>1.0.0-beta2-20170405-182</TemplateEngineTemplate2_0Version>
<PlatformAbstractionsVersion>1.0.3</PlatformAbstractionsVersion> <PlatformAbstractionsVersion>1.0.3</PlatformAbstractionsVersion>
<DependencyModelVersion>1.0.3</DependencyModelVersion> <DependencyModelVersion>1.0.3</DependencyModelVersion>
<CliCommandLineParserVersion>0.1.0-alpha-88</CliCommandLineParserVersion> <CliCommandLineParserVersion>0.1.0-alpha-138</CliCommandLineParserVersion>
</PropertyGroup> </PropertyGroup>

View file

@ -92,7 +92,7 @@
<DotNetNew ToolPath="$(OutputDirectory)" <DotNetNew ToolPath="$(OutputDirectory)"
TemplateType="console" TemplateType="console"
TemplateArgs="--debug:ephemeral-hive" TemplateArgs="--debug:ephemeral-hive --skip-restore"
WorkingDirectory="$(NuGetPackagesArchiveProject)/Console" /> WorkingDirectory="$(NuGetPackagesArchiveProject)/Console" />
<DotNetRestore ToolPath="$(OutputDirectory)" <DotNetRestore ToolPath="$(OutputDirectory)"

View file

@ -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}\" --skip-restore",
HostObject = HostObject, HostObject = HostObject,
BuildEngine = BuildEngine BuildEngine = BuildEngine
}; };

View file

@ -53,7 +53,7 @@ namespace Microsoft.DotNet.Tools.Migrate
} }
Directory.CreateDirectory(tempDir); Directory.CreateDirectory(tempDir);
RunCommand("new", new string[] { "console", "-o", tempDir, "--debug:ephemeral-hive" }, tempDir); RunCommand("new", new string[] { "console", "-o", tempDir, "--debug:ephemeral-hive", "--skip-restore" }, tempDir);
return tempDir; return tempDir;
} }

View file

@ -24,7 +24,7 @@ namespace Microsoft.DotNet.Tools.New
public static int Run(string[] args) public static int Run(string[] args)
{ {
return New3Command.Run(CommandName, CreateHost(), FirstRun, args); return New3Command.Run(CommandName, CreateHost(), new TelemetryLogger(null), FirstRun, args);
} }
private static ITemplateEngineHost CreateHost() private static ITemplateEngineHost CreateHost()

View file

@ -40,7 +40,7 @@
<PackageReference Include="Microsoft.Win32.Registry" Version="4.3.0" /> <PackageReference Include="Microsoft.Win32.Registry" Version="4.3.0" />
<PackageReference Include="Microsoft.Build" Version="$(CLI_MSBuild_Version)" /> <PackageReference Include="Microsoft.Build" Version="$(CLI_MSBuild_Version)" />
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)" /> <PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)" />
<PackageReference Include="Microsoft.DotNet.Cli.CommandLine" Version="0.1.0-alpha-132" /> <PackageReference Include="Microsoft.DotNet.Cli.CommandLine" Version="$(CliCommandLineParserVersion)" />
<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.Orchestrator.RunnableProjects" Version="$(TemplateEngineVersion)" /> <PackageReference Include="Microsoft.TemplateEngine.Orchestrator.RunnableProjects" Version="$(TemplateEngineVersion)" />

View file

@ -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 --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(projectDirectory) .WithWorkingDirectory(projectDirectory)
.Execute(newArgs) .Execute(newArgs)

View file

@ -56,7 +56,7 @@ Options:
try try
{ {
string args = $"classlib -o \"{projDir.Path}\" --debug:ephemeral-hive"; string args = $"classlib -o \"{projDir.Path}\" --debug:ephemeral-hive --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(projDir.Path) .WithWorkingDirectory(projDir.Path)
.ExecuteWithCapturedOutput(args) .ExecuteWithCapturedOutput(args)

View file

@ -46,7 +46,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 --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(rootPath) .WithWorkingDirectory(rootPath)
.Execute(newArgs) .Execute(newArgs)

View file

@ -195,7 +195,7 @@ Options:
try try
{ {
string newArgs = $"classlib -o \"{dir.Path}\" --debug:ephemeral-hive"; string newArgs = $"classlib -o \"{dir.Path}\" --debug:ephemeral-hive --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(dir.Path) .WithWorkingDirectory(dir.Path)
.ExecuteWithCapturedOutput(newArgs) .ExecuteWithCapturedOutput(newArgs)

View file

@ -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 --skip-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 --skip-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 --skip-restore")
.Should().Pass(); .Should().Pass();
new RestoreCommand() new RestoreCommand()
@ -86,7 +86,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 --skip-restore")
.Should().Pass(); .Should().Pass();
new RestoreCommand() new RestoreCommand()

View file

@ -44,7 +44,7 @@ namespace Microsoft.DotNet.New.Tests
string rootPath = TestAssets.CreateTestDirectory(identifier: $"{language}_{projectType}").FullName; string rootPath = TestAssets.CreateTestDirectory(identifier: $"{language}_{projectType}").FullName;
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 --skip-restore")
.Should().Pass(); .Should().Pass();
if (useNuGetConfigForAspNet) if (useNuGetConfigForAspNet)

View file

@ -216,7 +216,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}\" --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(rootPath) .WithWorkingDirectory(rootPath)
.Execute(newArgs) .Execute(newArgs)

View file

@ -155,7 +155,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}\" --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(rootPath) .WithWorkingDirectory(rootPath)
.Execute(newArgs) .Execute(newArgs)

View file

@ -53,7 +53,7 @@ Options:
try try
{ {
string newArgs = $"classlib -o \"{projDir.Path}\""; string newArgs = $"classlib -o \"{projDir.Path}\" --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(projDir.Path) .WithWorkingDirectory(projDir.Path)
.ExecuteWithCapturedOutput(newArgs) .ExecuteWithCapturedOutput(newArgs)

View file

@ -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}\" --skip-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}\" --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(rootPath) .WithWorkingDirectory(rootPath)
.Execute(newArgs) .Execute(newArgs)

View file

@ -144,7 +144,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}\" --skip-restore";
new NewCommandShim() new NewCommandShim()
.WithWorkingDirectory(rootPath) .WithWorkingDirectory(rootPath)
.Execute(newArgs) .Execute(newArgs)

View file

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.  // Copyright (c) .NET Foundation and contributors. All rights reserved. 
// Licensed under the MIT license. See LICENSE file in the project root for full license information.  // Licensed under the MIT license. See LICENSE file in the project root for full license information. 
using System; using System;

View file

@ -42,6 +42,6 @@
<PackageReference Include="xunit" Version="2.2.0-beta4-build3444" /> <PackageReference Include="xunit" Version="2.2.0-beta4-build3444" />
<PackageReference Include="xunit.netcore.extensions" Version="1.0.0-prerelease-00206" /> <PackageReference Include="xunit.netcore.extensions" Version="1.0.0-prerelease-00206" />
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)" /> <PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="$(PlatformAbstractionsVersion)" />
<PackageReference Include="Microsoft.DotNet.Cli.CommandLine" Version="0.1.0-alpha-132" /> <PackageReference Include="Microsoft.DotNet.Cli.CommandLine" Version="$(CliCommandLineParserVersion)" />
</ItemGroup> </ItemGroup>
</Project> </Project>