Updating tests to reflect msbuild projects running without project.json.
This commit is contained in:
parent
2bbef9328b
commit
c41b35f06f
5 changed files with 12 additions and 9 deletions
|
@ -5,7 +5,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFrameworks>netcoreapp1.0</TargetFrameworks>
|
<TargetFrameworks>netcoreapp1.0</TargetFrameworks>
|
||||||
<OutputPath>bin\$(Configuration)\netcoreapp1.0</OutputPath>
|
<OutputPath>bin\$(Configuration)</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -95,9 +95,12 @@ namespace Microsoft.DotNet.Tools.New
|
||||||
{
|
{
|
||||||
string projectJsonFile = Path.Combine(projectDirectory, "project.json");
|
string projectJsonFile = Path.Combine(projectDirectory, "project.json");
|
||||||
|
|
||||||
File.Move(
|
if(File.Exists(Path.Combine(projectDirectory, "project.json.template")))
|
||||||
Path.Combine(projectDirectory, "project.json.template"),
|
{
|
||||||
projectJsonFile);
|
File.Move(
|
||||||
|
Path.Combine(projectDirectory, "project.json.template"),
|
||||||
|
projectJsonFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void ReplaceFileTemplateNames(string projectDirectory)
|
private static void ReplaceFileTemplateNames(string projectDirectory)
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
||||||
.Should()
|
.Should()
|
||||||
.Pass();
|
.Pass();
|
||||||
|
|
||||||
new RestoreCommand()
|
new Restore3Command()
|
||||||
.WithWorkingDirectory(projectDirectory)
|
.WithWorkingDirectory(projectDirectory)
|
||||||
.Execute()
|
.Execute()
|
||||||
.Should()
|
.Should()
|
||||||
|
@ -35,7 +35,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
|
||||||
|
|
||||||
new Run3Command()
|
new Run3Command()
|
||||||
.WithWorkingDirectory(projectDirectory)
|
.WithWorkingDirectory(projectDirectory)
|
||||||
.ExecuteWithCapturedOutput()
|
.ExecuteWithCapturedOutput("--framework netcoreapp1.0")
|
||||||
.Should()
|
.Should()
|
||||||
.Pass()
|
.Pass()
|
||||||
.And
|
.And
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace Microsoft.DotNet.Cli.Publish3.Tests
|
||||||
|
|
||||||
new Publish3Command()
|
new Publish3Command()
|
||||||
.WithWorkingDirectory(testProjectDirectory)
|
.WithWorkingDirectory(testProjectDirectory)
|
||||||
.Execute()
|
.Execute("--framework netcoreapp1.0")
|
||||||
.Should()
|
.Should()
|
||||||
.Pass();
|
.Pass();
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace Microsoft.DotNet.Cli.Run3.Tests
|
||||||
|
|
||||||
new Run3Command()
|
new Run3Command()
|
||||||
.WithWorkingDirectory(testProjectDirectory)
|
.WithWorkingDirectory(testProjectDirectory)
|
||||||
.ExecuteWithCapturedOutput()
|
.ExecuteWithCapturedOutput("--framework netcoreapp1.0")
|
||||||
.Should()
|
.Should()
|
||||||
.Pass()
|
.Pass()
|
||||||
.And
|
.And
|
||||||
|
@ -55,7 +55,7 @@ namespace Microsoft.DotNet.Cli.Run3.Tests
|
||||||
|
|
||||||
new Run3Command()
|
new Run3Command()
|
||||||
.WithWorkingDirectory(testProjectDirectory)
|
.WithWorkingDirectory(testProjectDirectory)
|
||||||
.ExecuteWithCapturedOutput()
|
.ExecuteWithCapturedOutput("--framework netcoreapp1.0")
|
||||||
.Should()
|
.Should()
|
||||||
.Pass()
|
.Pass()
|
||||||
.And
|
.And
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue