Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 9e5a995

Browse files
author
Livar
authored
Merge branch 'rel/1.1.0' into zhi/updateRel1.1.0NuGetTo4.3.0-preview4-4258
2 parents 207a7e4 + 24c9e56 commit 9e5a995

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

build/Microsoft.DotNet.Cli.Compile.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@
226226
<!-- Executables need x -->
227227
<Mode>u=rwx,g=rx,o=rx</Mode>
228228
</SdkOutputChmodTargets>
229+
<SdkOutputChmodTargets Include="$(SdkOutputDirectory)/Roslyn/RunCsc.sh">
230+
<Mode>755</Mode>
231+
</SdkOutputChmodTargets>
232+
<SdkOutputChmodTargets Include="$(SdkOutputDirectory)/Roslyn/RunVbc.sh">
233+
<Mode>755</Mode>
234+
</SdkOutputChmodTargets>
235+
<SdkOutputChmodTargets Include="$(SdkOutputDirectory)/FSharp/RunFsc.sh">
236+
<Mode>755</Mode>
237+
</SdkOutputChmodTargets>
229238
</ItemGroup>
230239

231240
<Chmod Condition=" '$(OSName)' != 'win' "

build/Microsoft.DotNet.Cli.DependencyVersions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<CLI_MSBuild_Version>15.3.0-preview-000402-01</CLI_MSBuild_Version>
66
<CLI_Roslyn_Version>2.3.0-beta3-61816-04</CLI_Roslyn_Version>
77
<CLI_FSharp_Version>4.2.0-rc-170621-0</CLI_FSharp_Version>
8-
<CLI_NETSDK_Version>1.1.0-alpha-20170615-3</CLI_NETSDK_Version>
8+
<CLI_NETSDK_Version>1.1.0-alpha-20170630-2</CLI_NETSDK_Version>
99
<CLI_NuGet_Version>4.3.0-preview4-4258</CLI_NuGet_Version>
1010
<CLI_WEBSDK_Version>1.0.0-alpha-20170516-2-509</CLI_WEBSDK_Version>
1111
<CLI_TestPlatform_Version>15.0.0</CLI_TestPlatform_Version>
12-
<TemplateEngineVersion>1.0.0-beta1-20170202-111</TemplateEngineVersion>
13-
<TemplateEngineTemplateVersion>1.0.0-beta1-20170427-174</TemplateEngineTemplateVersion>
12+
<TemplateEngineVersion>1.0.0-beta2-20170629-269</TemplateEngineVersion>
13+
<TemplateEngineTemplateVersion>1.0.0-beta2-20170629-269</TemplateEngineTemplateVersion>
1414
<PlatformAbstractionsVersion>1.0.3</PlatformAbstractionsVersion>
1515
<DependencyModelVersion>1.0.3</DependencyModelVersion>
1616
</PropertyGroup>

src/dotnet/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
using Microsoft.DotNet.Tools.Test;
2929
using Microsoft.DotNet.Tools.VSTest;
3030
using NuGet.Frameworks;
31+
using Command = Microsoft.DotNet.Cli.Utils.Command;
3132

3233
namespace Microsoft.DotNet.Cli
3334
{

src/dotnet/commands/dotnet-new/NewCommandShim.cs

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
using System.Globalization;
77
using System.IO;
88
using System.Linq;
9-
using System.Runtime.CompilerServices;
9+
using System.Reflection;
10+
using Microsoft.DotNet.Cli;
1011
using Microsoft.DotNet.Cli.Utils;
12+
using Microsoft.DotNet.Configurer;
13+
using Microsoft.DotNet.Tools.MSBuild;
1114
using Microsoft.TemplateEngine.Abstractions;
1215
using Microsoft.TemplateEngine.Cli;
1316
using Microsoft.TemplateEngine.Edge;
@@ -25,29 +28,17 @@ internal class NewCommandShim
2528

2629
public static int Run(string[] args)
2730
{
28-
return New3Command.Run(CommandName, CreateHost(), FirstRun, args);
31+
var logger = new TelemetryLogger(null);
32+
return New3Command.Run(CommandName, CreateHost(), logger, FirstRun, args);
2933
}
3034

3135
private static ITemplateEngineHost CreateHost()
3236
{
33-
var builtIns = new Dictionary<Guid, Func<Type>>
37+
var builtIns = new AssemblyComponentCatalog(new[]
3438
{
35-
{ new Guid("0C434DF7-E2CB-4DEE-B216-D7C58C8EB4B3"), () => typeof(RunnableProjectGenerator) },
36-
{ new Guid("3147965A-08E5-4523-B869-02C8E9A8AAA1"), () => typeof(BalancedNestingConfig) },
37-
{ new Guid("3E8BCBF0-D631-45BA-A12D-FBF1DE03AA38"), () => typeof(ConditionalConfig) },
38-
{ new Guid("A1E27A4B-9608-47F1-B3B8-F70DF62DC521"), () => typeof(FlagsConfig) },
39-
{ new Guid("3FAE1942-7257-4247-B44D-2DDE07CB4A4A"), () => typeof(IncludeConfig) },
40-
{ new Guid("3D33B3BF-F40E-43EB-A14D-F40516F880CD"), () => typeof(RegionConfig) },
41-
{ new Guid("62DB7F1F-A10E-46F0-953F-A28A03A81CD1"), () => typeof(ReplacementConfig) },
42-
{ new Guid("370996FE-2943-4AED-B2F6-EC03F0B75B4A"), () => typeof(ConstantMacro) },
43-
{ new Guid("BB625F71-6404-4550-98AF-B2E546F46C5F"), () => typeof(EvaluateMacro) },
44-
{ new Guid("10919008-4E13-4FA8-825C-3B4DA855578E"), () => typeof(GuidMacro) },
45-
{ new Guid("F2B423D7-3C23-4489-816A-41D8D2A98596"), () => typeof(NowMacro) },
46-
{ new Guid("011E8DC1-8544-4360-9B40-65FD916049B7"), () => typeof(RandomMacro) },
47-
{ new Guid("8A4D4937-E23F-426D-8398-3BDBD1873ADB"), () => typeof(RegexMacro) },
48-
{ new Guid("B57D64E0-9B4F-4ABE-9366-711170FD5294"), () => typeof(SwitchMacro) },
49-
{ new Guid("10919118-4E13-4FA9-825C-3B4DA855578E"), () => typeof(CaseChangeMacro) }
50-
}.ToList();
39+
typeof(RunnableProjectGenerator).GetTypeInfo().Assembly,
40+
typeof(ConditionalConfig).GetTypeInfo().Assembly,
41+
});
5142

5243
var preferences = new Dictionary<string, string>
5344
{

test/dotnet-new.Tests/NewCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void WhenSwitchIsSkippedThenItPrintsError()
1616

1717
cmd.ExitCode.Should().NotBe(0);
1818

19-
cmd.StdErr.Should().StartWith("No templates matched the input template name: [Web1.1]");
19+
cmd.StdErr.Should().StartWith("No templates matched the input template name: Web1.1.");
2020
}
2121

2222
[Fact]
@@ -26,7 +26,7 @@ public void WhenTemplateNameIsNotUniquelyMatchedThenItIndicatesProblemToUser()
2626

2727
cmd.ExitCode.Should().NotBe(0);
2828

29-
cmd.StdErr.Should().StartWith("Unable to determine the desired template from the input template name: [c]");
29+
cmd.StdErr.Should().StartWith("Unable to determine the desired template from the input template name: c.");
3030
}
3131
}
3232
}

test/dotnet.Tests/GivenThatTheUserIsRunningDotNetForTheFirstTime.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public void ItRestoresTheNuGetPackagesToTheNuGetCacheFolder()
105105
"microsoft.extensions.logging.console",
106106
"microsoft.extensions.logging.debug",
107107
"microsoft.extensions.options.configurationextensions",
108-
"microsoft.visualstudio.web.browserlink",
109108
};
110109

111110
_nugetCacheFolder

0 commit comments

Comments
 (0)