diff --git a/src/dotnet/commands/dotnet-new/CSharp_Console/NuGet.Config b/src/dotnet/commands/dotnet-new/CSharp_Console/NuGet.Config
deleted file mode 100644
index e80222c1f..000000000
--- a/src/dotnet/commands/dotnet-new/CSharp_Console/NuGet.Config
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/dotnet/commands/dotnet-new/FSharp_Console/NuGet.Config b/src/dotnet/commands/dotnet-new/FSharp_Console/NuGet.Config
index f1c321599..c9fe7428b 100644
--- a/src/dotnet/commands/dotnet-new/FSharp_Console/NuGet.Config
+++ b/src/dotnet/commands/dotnet-new/FSharp_Console/NuGet.Config
@@ -3,7 +3,6 @@
-
diff --git a/test/EndToEnd/EndToEndTest.cs b/test/EndToEnd/EndToEndTest.cs
index a07507602..97a8fe49e 100644
--- a/test/EndToEnd/EndToEndTest.cs
+++ b/test/EndToEnd/EndToEndTest.cs
@@ -207,6 +207,7 @@ namespace Microsoft.DotNet.Tests.EndToEnd
catch(Exception) {}
Directory.CreateDirectory(RestoredTestProjectDirectory);
+ WriteNuGetConfig(RestoredTestProjectDirectory);
var currentDirectory = Directory.GetCurrentDirectory();
Directory.SetCurrentDirectory(RestoredTestProjectDirectory);
@@ -243,6 +244,24 @@ namespace Microsoft.DotNet.Tests.EndToEnd
return isSupported;
}
+ // Todo: this is a hack until corefx is on nuget.org remove this After RC 2 Release
+ private static void WriteNuGetConfig(string directory)
+ {
+ var contents = @"
+
+
+
+
+
+
+
+";
+
+ var path = Path.Combine(directory, "NuGet.config");
+
+ File.WriteAllText(path, contents);
+ }
+
private static DateTime GetLastWriteTimeUtcOfDirectoryFiles(string outputDirectory)
{
return Directory.EnumerateFiles(outputDirectory).Max(f => File.GetLastWriteTimeUtc(f));