Addressing code review comments.

This commit is contained in:
Livar Cunha 2016-09-27 16:29:56 -07:00
parent c04f7a0cd0
commit 715f1f6a10
5 changed files with 8 additions and 7 deletions

View file

@ -5,7 +5,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp1.0</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
</PropertyGroup>
<ItemGroup>

View file

@ -7,8 +7,8 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="**\*.cs" Exclude="$(GlobalExclude)" />
<EmbeddedResource Include="**\*.resx" Exclude="$(GlobalExclude)" />
<Compile Include="**\*.cs" />
<EmbeddedResource Include="**\*.resx" />
</ItemGroup>
<ItemGroup>

View file

@ -94,12 +94,11 @@ namespace Microsoft.DotNet.Tools.New
private static void ReplaceProjectJsonTemplateValues(string projectDirectory)
{
string projectJsonFile = Path.Combine(projectDirectory, "project.json");
string projectJsonTemplateFile = Path.Combine(projectDirectory, "project.json.template");
if(File.Exists(Path.Combine(projectDirectory, "project.json.template")))
if(File.Exists(projectJsonTemplateFile))
{
File.Move(
Path.Combine(projectDirectory, "project.json.template"),
projectJsonFile);
File.Move(projectJsonTemplateFile, projectJsonFile);
}
}

View file

@ -33,6 +33,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
.Should()
.Pass();
//TODO: https://github.com/dotnet/sdk/issues/187 - remove framework from below.
new Run3Command()
.WithWorkingDirectory(projectDirectory)
.ExecuteWithCapturedOutput("--framework netcoreapp1.0")

View file

@ -29,6 +29,7 @@ namespace Microsoft.DotNet.Cli.Run3.Tests
.Should()
.Pass();
//TODO: https://github.com/dotnet/sdk/issues/187 - remove framework from below.
new Run3Command()
.WithWorkingDirectory(testProjectDirectory)
.ExecuteWithCapturedOutput("--framework netcoreapp1.0")
@ -53,6 +54,7 @@ namespace Microsoft.DotNet.Cli.Run3.Tests
.Should()
.Pass();
//TODO: https://github.com/dotnet/sdk/issues/187 - remove framework from below.
new Run3Command()
.WithWorkingDirectory(testProjectDirectory)
.ExecuteWithCapturedOutput("--framework netcoreapp1.0")