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.
This commit is contained in:
parent
33d930cced
commit
e0629ad351
3 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
|
|
11
test/dotnet-migrate.Tests/NuGet.tempaspnetpatch.config
Normal file
11
test/dotnet-migrate.Tests/NuGet.tempaspnetpatch.config
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
|
||||
<clear />
|
||||
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
|
||||
<add key="cli-deps" value="https://dotnet.myget.org/F/cli-deps/api/v3/index.json" />
|
||||
<add key="aspnet101" value="https://www.myget.org/F/aspnet101/api/v3/index.json" />
|
||||
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
||||
</packageSources>
|
||||
</configuration>
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue