Merge branch 'master' into master-UpdateDependencies

This commit is contained in:
Eric Erhardt 2017-04-24 10:19:27 -05:00 committed by GitHub
commit 65662ea385
6 changed files with 15 additions and 22 deletions

View file

@ -1,6 +1,7 @@
<Project ToolsVersion="15.0"> <Project ToolsVersion="15.0">
<ItemGroup> <ItemGroup>
<BundledTemplate Include="Microsoft.DotNet.Common.ItemTemplates" Version="$(TemplateEngineTemplateVersion)" /> <BundledTemplate Include="Microsoft.DotNet.Common.ItemTemplates" Version="$(TemplateEngineTemplateVersion)" />
<BundledTemplate Include="Microsoft.DotNet.Web.ItemTemplates" Version="$(TemplateEngineTemplateVersion)" />
<BundledTemplate Include="Microsoft.DotNet.Common.ProjectTemplates.2.0" Version="$(TemplateEngineTemplate2_0Version)" /> <BundledTemplate Include="Microsoft.DotNet.Common.ProjectTemplates.2.0" Version="$(TemplateEngineTemplate2_0Version)" />
<BundledTemplate Include="Microsoft.DotNet.Test.ProjectTemplates.2.0" Version="$(TemplateEngineTemplateVersion)" /> <BundledTemplate Include="Microsoft.DotNet.Test.ProjectTemplates.2.0" Version="$(TemplateEngineTemplateVersion)" />
<BundledTemplate Include="Microsoft.DotNet.Web.ProjectTemplates.2.0" Version="$(TemplateEngineTemplateVersion)" /> <BundledTemplate Include="Microsoft.DotNet.Web.ProjectTemplates.2.0" Version="$(TemplateEngineTemplateVersion)" />

View file

@ -11,9 +11,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-20170410-189</TemplateEngineVersion> <TemplateEngineVersion>1.0.0-beta2-20170421-198</TemplateEngineVersion>
<TemplateEngineTemplateVersion>1.0.0-beta2-20170410-189</TemplateEngineTemplateVersion> <TemplateEngineTemplateVersion>1.0.0-beta2-20170421-198</TemplateEngineTemplateVersion>
<TemplateEngineTemplate2_0Version>1.0.0-beta2-20170410-189</TemplateEngineTemplate2_0Version> <TemplateEngineTemplate2_0Version>1.0.0-beta2-20170421-198</TemplateEngineTemplate2_0Version>
<PlatformAbstractionsVersion>2.0.0-preview2-002066</PlatformAbstractionsVersion> <PlatformAbstractionsVersion>2.0.0-preview2-002066</PlatformAbstractionsVersion>
<DependencyModelVersion>2.0.0-preview2-002066</DependencyModelVersion> <DependencyModelVersion>2.0.0-preview2-002066</DependencyModelVersion>
<CliCommandLineParserVersion>0.1.0-alpha-142</CliCommandLineParserVersion> <CliCommandLineParserVersion>0.1.0-alpha-142</CliCommandLineParserVersion>

View file

@ -78,7 +78,7 @@
<FilesToClean Include="$(NuGetPackagesArchiveProject)/**/*" /> <FilesToClean Include="$(NuGetPackagesArchiveProject)/**/*" />
<FilesToClean Include="$(NuGetPackagesArchiveFolder)/**/*" /> <FilesToClean Include="$(NuGetPackagesArchiveFolder)/**/*" />
<NuGetPackagesArchiveDirectory Include="$(NuGetPackagesArchiveProject)/Console" /> <NuGetPackagesArchiveDirectory Include="$(NuGetPackagesArchiveProject)/MvcIndividual" />
<NuGetPackagesArchiveDirectory Include="$(NuGetPackagesArchiveFolder)" /> <NuGetPackagesArchiveDirectory Include="$(NuGetPackagesArchiveFolder)" />
</ItemGroup> </ItemGroup>
@ -91,15 +91,16 @@
Lines="$(NuGetConfigContent)" /> Lines="$(NuGetConfigContent)" />
<DotNetNew ToolPath="$(OutputDirectory)" <DotNetNew ToolPath="$(OutputDirectory)"
TemplateType="console" TemplateType="mvc"
TemplateArgs="--debug:ephemeral-hive --no-restore" TemplateArgs="-au Individual --debug:ephemeral-hive --no-restore"
WorkingDirectory="$(NuGetPackagesArchiveProject)/Console" /> WorkingDirectory="$(NuGetPackagesArchiveProject)/MvcIndividual" />
<DotNetRestore ToolPath="$(OutputDirectory)" <DotNetRestore ToolPath="$(OutputDirectory)"
Packages="$(NuGetPackagesArchiveFolder)" Packages="$(NuGetPackagesArchiveFolder)"
ConfigFile="$(LZMANuGetConfigFilePath)" ConfigFile="$(LZMANuGetConfigFilePath)"
SkipInvalidConfigurations="True" SkipInvalidConfigurations="True"
WorkingDirectory="$(NuGetPackagesArchiveProject)/Console" /> WorkingDirectory="$(NuGetPackagesArchiveProject)/MvcIndividual" />
<Delete Files="$(IntermediateArchive);$(IntermediateArchive).zip;$(NuGetPackagesArchiveFolder)/**/*.nupkg" /> <Delete Files="$(IntermediateArchive);$(IntermediateArchive).zip;$(NuGetPackagesArchiveFolder)/**/*.nupkg" />

View file

@ -29,7 +29,7 @@ namespace Microsoft.DotNet.Cli.Build
private static string[][] _templatesAndArgs = new string[][] private static string[][] _templatesAndArgs = new string[][]
{ {
new string[] { "console", "" }, new string[] { "mvc", "-au individual" },
}; };
public override bool Execute() public override bool Execute()

View file

@ -21,9 +21,8 @@ namespace Microsoft.DotNet.New.Tests
[InlineData("C#", "mstest", false)] [InlineData("C#", "mstest", false)]
[InlineData("C#", "xunit", false)] [InlineData("C#", "xunit", false)]
[InlineData("C#", "web", false)] [InlineData("C#", "web", false)]
// Uncomment the tests below in PR#6362 [InlineData("C#", "mvc", false)]
//[InlineData("C#", "mvc", false)] [InlineData("C#", "webapi", false)]
//[InlineData("C#", "webapi", false)]
// Uncomment the test below once https://github.com/dotnet/netcorecli-fsc/issues/92 is fixed. // Uncomment the test below once https://github.com/dotnet/netcorecli-fsc/issues/92 is fixed.
//[InlineData("F#", "console", false)] //[InlineData("F#", "console", false)]
//[InlineData("F#", "classlib", false)] //[InlineData("F#", "classlib", false)]

View file

@ -97,11 +97,6 @@ A command is running to initially populate your local package cache, to improve
"microsoft.netcore.app", "microsoft.netcore.app",
"microsoft.netcore.platforms", "microsoft.netcore.platforms",
"netstandard.library", "netstandard.library",
};
// https://github.com/dotnet/cli/issues/5505 - add the "2.0" asp.net packages into the offline cache
List<string> unexpectedDirectories = new List<string>()
{
"microsoft.aspnetcore.diagnostics", "microsoft.aspnetcore.diagnostics",
"microsoft.aspnetcore.mvc", "microsoft.aspnetcore.mvc",
"microsoft.aspnetcore.routing", "microsoft.aspnetcore.routing",
@ -114,16 +109,13 @@ A command is running to initially populate your local package cache, to improve
"microsoft.extensions.logging.console", "microsoft.extensions.logging.console",
"microsoft.extensions.logging.debug", "microsoft.extensions.logging.debug",
"microsoft.extensions.options.configurationextensions", "microsoft.extensions.options.configurationextensions",
"microsoft.visualstudio.web.browserlink", //BrowserLink has been temporarily disabled until https://github.com/dotnet/templating/issues/644 is resolved
//"microsoft.visualstudio.web.browserlink",
}; };
_nugetFallbackFolder _nugetFallbackFolder
.Should() .Should()
.HaveDirectories(expectedDirectories); .HaveDirectories(expectedDirectories);
_nugetFallbackFolder
.Should()
.NotHaveDirectories(unexpectedDirectories);
} }
private string GetDotnetVersion() private string GetDotnetVersion()