From e0629ad35168deb0d7117b780384fe4f67b65838 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Fri, 2 Sep 2016 17:59:13 -0700 Subject: [PATCH] Fixing test failure because the web app is using packages in a feed that we did not have. Add that feed through a NuGet.COnfig only for the tests that need it. --- .../GivenThatIWantToMigrateTestApps.cs | 1 + .../dotnet-migrate.Tests/NuGet.tempaspnetpatch.config | 11 +++++++++++ test/dotnet-migrate.Tests/project.json | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/dotnet-migrate.Tests/NuGet.tempaspnetpatch.config diff --git a/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs b/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs index 5398de979..5f3bf2a07 100644 --- a/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs +++ b/test/dotnet-migrate.Tests/GivenThatIWantToMigrateTestApps.cs @@ -121,6 +121,7 @@ namespace Microsoft.DotNet.Migration.Tests private MigratedBuildComparisonData GetDotnetNewComparisonData(string projectDirectory, string dotnetNewType) { DotnetNew(projectDirectory, dotnetNewType); + File.Copy("NuGet.tempaspnetpatch.config", Path.Combine(projectDirectory, "NuGet.Config")); Restore(projectDirectory); var outputComparisonData = BuildProjectJsonMigrateBuildMSBuild(projectDirectory); diff --git a/test/dotnet-migrate.Tests/NuGet.tempaspnetpatch.config b/test/dotnet-migrate.Tests/NuGet.tempaspnetpatch.config new file mode 100644 index 000000000..10db25c30 --- /dev/null +++ b/test/dotnet-migrate.Tests/NuGet.tempaspnetpatch.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/test/dotnet-migrate.Tests/project.json b/test/dotnet-migrate.Tests/project.json index c996cbadf..58b3ac843 100644 --- a/test/dotnet-migrate.Tests/project.json +++ b/test/dotnet-migrate.Tests/project.json @@ -1,7 +1,7 @@ { "version": "1.0.0-*", "buildOptions": { - "copyToOutput": ["MSBuild.exe", "MSBuild.exe.config"] + "copyToOutput": ["MSBuild.exe", "MSBuild.exe.config", "NuGet.tempaspnetpatch.config"] }, "dependencies": { "Microsoft.NETCore.App": {