test fixes

This commit is contained in:
jonsequitur 2017-01-24 14:10:45 -08:00
parent 3cba07288d
commit 573c4efea5
3 changed files with 6 additions and 4 deletions

View file

@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp1.0</TargetFramework> <TargetFramework>netcoreapp1.1</TargetFramework>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NETCore.App"> <PackageReference Include="Microsoft.NETCore.App">
<Version>1.0.3</Version> <Version>1.1.0</Version>
</PackageReference> </PackageReference>
<PackageReference Include="dotnet-hello"> <PackageReference Include="dotnet-hello">
<Version>1.0.0</Version> <Version>1.0.0</Version>

View file

@ -41,7 +41,8 @@ namespace Microsoft.DotNet.New.Tests
if (useNuGetConfigForAspNet) if (useNuGetConfigForAspNet)
{ {
File.Copy("NuGet.tempaspnetpatch.config", Path.Combine(rootPath, "NuGet.Config")); var configFile = new FileInfo(Path.Combine(rootPath,"..","..","..","..","NuGet.tempaspnetpatch.config"));
File.Copy(configFile.FullName, Path.Combine(rootPath, "NuGet.Config"));
} }
new TestCommand("dotnet") new TestCommand("dotnet")

View file

@ -38,7 +38,8 @@ namespace Microsoft.DotNet.New3.Tests
if (useNuGetConfigForAspNet) if (useNuGetConfigForAspNet)
{ {
File.Copy("NuGet.tempaspnetpatch.config", Path.Combine(rootPath, "NuGet.Config")); var configFile = new FileInfo(Path.Combine(rootPath,"..","..","..","..","NuGet.tempaspnetpatch.config"));
File.Copy(configFile.FullName, Path.Combine(rootPath, "NuGet.Config"));
} }
string globalJsonPath = Path.Combine(rootPath, "global.json"); string globalJsonPath = Path.Combine(rootPath, "global.json");