Remove '--infer-runtimes' option for 'dotnet restore' when restoring

TestAssets.
This commit is contained in:
Sridhar Periyasamy 2016-05-17 19:44:18 -07:00 committed by Livar Cunha
parent a2ef88cf86
commit 0c463c281f
58 changed files with 385 additions and 62 deletions

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -9,6 +9,16 @@
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
}, },
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
},
"tools": { "tools": {
"dotnet-portable": { "dotnet-portable": {
"version": "1.0.0", "version": "1.0.0",

View file

@ -13,6 +13,16 @@
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
}, },
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
},
"tools": { "tools": {
"dotnet-portable": { "dotnet-portable": {
"version": "1.0.0", "version": "1.0.0",

View file

@ -12,5 +12,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -14,5 +14,15 @@
"version": "1.0.0", "version": "1.0.0",
"target": "package" "target": "package"
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -7,7 +7,7 @@
"netcoreapp1.0": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"version": "1.0.0-rc2-*" "version": "1.0.0-rc3-*"
} }
} }
} }

View file

@ -6,7 +6,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50", "imports": "dnxcore50",
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": "1.0.0-rc3-*" "Microsoft.NETCore.App": "1.0.0-rc3-*"

View file

@ -9,11 +9,16 @@
"DependencyContextValidator": "1.0.0-*" "DependencyContextValidator": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"] }
"imports": [ },
"dnxcore50", "runtimes": {
"portable-net45+win8" "win7-x64": {},
] "win7-x86": {},
} "osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -8,11 +8,16 @@
"DependencyContextValidator": "1.0.0-*" "DependencyContextValidator": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"] }
"imports": [ },
"dnxcore50", "runtimes": {
"portable-net45+win8" "win7-x64": {},
] "win7-x86": {},
} "osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -27,5 +27,15 @@
"publishOptions": "testpublishfile.txt", "publishOptions": "testpublishfile.txt",
"frameworks": { "frameworks": {
"netcoreapp1.0": { } "netcoreapp1.0": { }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -30,5 +30,15 @@
"netstandard1.3" "netstandard1.3"
] ]
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -31,5 +31,15 @@
"netcoreapp1.0": { "netcoreapp1.0": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -27,5 +27,15 @@
"netcoreapp1.0": { "netcoreapp1.0": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -23,5 +23,15 @@
"portable-net45+win8" "portable-net45+win8"
] ]
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -6,6 +6,6 @@
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -4,7 +4,7 @@
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -10,5 +10,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -13,6 +13,6 @@
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -9,11 +9,16 @@
"SharedContentA": "1.0.0-*" "SharedContentA": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": { "netcoreapp1.0": { "imports": ["netstandardapp1.5", "dnxcore50"] }
"imports": [ },
"netstandardapp1.5", "runtimes": {
"dnxcore50" "win7-x64": {},
] "win7-x86": {},
} "osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -14,5 +14,15 @@
}, },
"publishOptions": { "publishOptions": {
"include": "testcontentfile.txt" "include": "testcontentfile.txt"
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -13,5 +13,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -13,6 +13,6 @@
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -9,6 +9,16 @@
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
}, },
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
},
"scripts": { "scripts": {
"prepublish": [ "prepublish": [
"echoscript prepublish_output ?%publish:ProjectPath%? ?%publish:Configuration%? ?%publish:OutputPath%? ?%publish:TargetFramework%? ?%publish:Runtime%?" "echoscript prepublish_output ?%publish:ProjectPath%? ?%publish:Configuration%? ?%publish:OutputPath%? ?%publish:TargetFramework%? ?%publish:Runtime%?"

View file

@ -14,6 +14,16 @@
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
}, },
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
},
"scripts": { "scripts": {
"prepublish": [ "prepublish": [
"echo prepublish_output ?%publish:ProjectPath%? ?%publish:Configuration%? ?%publish:OutputPath%? ?%publish:Framework%? ?%publish:Runtime%?" "echo prepublish_output ?%publish:ProjectPath%? ?%publish:Configuration%? ?%publish:OutputPath%? ?%publish:Framework%? ?%publish:Runtime%?"

View file

@ -12,5 +12,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -13,5 +13,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -1,12 +1,11 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"testRunner": "xunit",
"dependencies": { "dependencies": {
"Newtonsoft.Json": "7.0.1" "Newtonsoft.Json": "7.0.1"
}, },
"frameworks": { "frameworks": {
"net451": {}, "net451": {},
"netstandard1.6": { "netstandard1.5": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"
}, },

View file

@ -1,6 +1,8 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"testRunner": "xunit", "compilationOptions": {
"emitEntryPoint": true
},
"dependencies": { "dependencies": {
"Newtonsoft.Json": "6.0.1", "Newtonsoft.Json": "6.0.1",
"TestLibraryGreater": { "TestLibraryGreater": {
@ -9,11 +11,15 @@
}, },
"frameworks": { "frameworks": {
"net451": {}, "net451": {},
"netstandard1.6": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc3-24113-00" "Microsoft.NETCore.App": "1.0.0-rc3-*"
}, },
"imports": "portable-net45+win8" "imports": "portable-net45+win8"
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {}
} }
} }

View file

@ -8,6 +8,6 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -16,6 +16,6 @@
"Test": {} "Test": {}
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -25,7 +25,7 @@
"System.Xml": {} "System.Xml": {}
} }
}, },
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50", "imports": "dnxcore50",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"

View file

@ -7,6 +7,6 @@
"NETStandard.Library": "1.5.0-rc3-24113-00" "NETStandard.Library": "1.5.0-rc3-24113-00"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -13,5 +13,15 @@
"Microsoft.CSharp": "4.0.1-rc3-24113-00" "Microsoft.CSharp": "4.0.1-rc3-24113-00"
} }
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -18,5 +18,15 @@
"Microsoft.CSharp": "4.0.1-rc3-24113-00" "Microsoft.CSharp": "4.0.1-rc3-24113-00"
} }
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -12,5 +12,15 @@
"mscorlib": "" "mscorlib": ""
} }
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -10,5 +10,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -6,7 +6,7 @@
"Microsoft.NETCore.App": "1.0.0-rc3-*" "Microsoft.NETCore.App": "1.0.0-rc3-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -5,7 +5,7 @@
"Microsoft.NETCore.App": "1.0.0-rc3-*" "Microsoft.NETCore.App": "1.0.0-rc3-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -4,7 +4,7 @@
"Microsoft.NETCore.App": "1.0.0-rc3-*" "Microsoft.NETCore.App": "1.0.0-rc3-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -4,7 +4,7 @@
"Microsoft.NETCore.App": "1.0.0-rc3-*" "Microsoft.NETCore.App": "1.0.0-rc3-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.6": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -8,5 +8,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -13,6 +13,6 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandard1.6": {} "netstandard1.5": {}
} }
} }

View file

@ -9,5 +9,15 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": {} "netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -12,5 +12,15 @@
"System": "" "System": ""
} }
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -12,5 +12,15 @@
"System.Core": "" "System.Core": ""
} }
} }
},
"runtimes": {
"win7-x64": {},
"win7-x86": {},
"osx.10.10-x64": {},
"osx.10.11-x64": {},
"ubuntu.14.04-x64": {},
"centos.7-x64": {},
"rhel.7.2-x64": {},
"debian.8-x64": {}
} }
} }

View file

@ -82,8 +82,7 @@ namespace Microsoft.DotNet.Cli.Build
CleanNuGetTempCache(); CleanNuGetTempCache();
var dotnet = DotNetCli.Stage2; var dotnet = DotNetCli.Stage2;
dotnet.Restore("--verbosity", "verbose", dotnet.Restore("--verbosity", "verbose",
"--infer-runtimes",
"--fallbacksource", Dirs.CorehostLocalPackages, "--fallbacksource", Dirs.CorehostLocalPackages,
"--fallbacksource", Dirs.CorehostDummyPackages) "--fallbacksource", Dirs.CorehostDummyPackages)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestPackages")) .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestPackages"))
@ -103,8 +102,7 @@ namespace Microsoft.DotNet.Cli.Build
var dotnet = DotNetCli.Stage2; var dotnet = DotNetCli.Stage2;
dotnet.Restore( dotnet.Restore(
"--verbosity", "verbose", "--verbosity", "verbose",
"--infer-runtimes",
"--fallbacksource", Dirs.TestPackages, "--fallbacksource", Dirs.TestPackages,
"--fallbacksource", Dirs.CorehostLocalPackages, "--fallbacksource", Dirs.CorehostLocalPackages,
"--fallbacksource", Dirs.CorehostDummyPackages) "--fallbacksource", Dirs.CorehostDummyPackages)

View file

@ -19,7 +19,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
public abstract class TestBase : IDisposable public abstract class TestBase : IDisposable
{ {
protected const string DefaultFramework = "netcoreapp1.0"; protected const string DefaultFramework = "netcoreapp1.0";
protected const string DefaultLibraryFramework = "netstandard1.6"; protected const string DefaultLibraryFramework = "netstandard1.5";
private TempRoot _temp; private TempRoot _temp;
private static TestAssetsManager s_testsAssetsMgr; private static TestAssetsManager s_testsAssetsMgr;
private static string s_repoRoot; private static string s_repoRoot;

View file

@ -199,7 +199,7 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
// [InlineData("net20", false, true)] // [InlineData("net20", false, true)]
// [InlineData("net40", true, true)] // [InlineData("net40", true, true)]
// [InlineData("net461", true, true)] // [InlineData("net461", true, true)]
[InlineData("netstandard1.6", true, false)] [InlineData("netstandard1.5", true, false)]
public void MultipleFrameworks_ShouldHaveValidTargetFrameworkAttribute(string frameworkName, bool shouldHaveTargetFrameworkAttribute, bool windowsOnly) public void MultipleFrameworks_ShouldHaveValidTargetFrameworkAttribute(string frameworkName, bool shouldHaveTargetFrameworkAttribute, bool windowsOnly)
{ {
var framework = NuGetFramework.Parse(frameworkName); var framework = NuGetFramework.Parse(frameworkName);
@ -347,7 +347,8 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
buildResult.Should().Fail(); buildResult.Should().Fail();
buildResult.StdErr.Should().Contain("Expected coreclr library not found in package graph. Please try running dotnet restore again."); buildResult.StdErr.Should().Contain("Can not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes");
buildResult.StdErr.Should().Contain("The project has not been restored or restore failed - run `dotnet restore`");
} }
private void CopyProjectToTempDir(string projectDir, TempDirectory tempDir) private void CopyProjectToTempDir(string projectDir, TempDirectory tempDir)

View file

@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
{ {
public class IncrementalTestBase : TestBase public class IncrementalTestBase : TestBase
{ {
protected readonly string _libraryFrameworkFullName = ".NETStandard,Version=v1.6"; protected readonly string _libraryFrameworkFullName = ".NETStandard,Version=v1.5";
protected readonly string _appFrameworkFullName = ".NETCoreApp,Version=v1.0"; protected readonly string _appFrameworkFullName = ".NETCoreApp,Version=v1.0";
protected virtual string MainProject protected virtual string MainProject

View file

@ -123,7 +123,7 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
result.Should().Pass(); result.Should().Pass();
foreach (var expectedProject in expectedProjects) foreach (var expectedProject in expectedProjects)
{ {
result.Should().HaveSkippedProjectCompilation(expectedProject, NuGetFramework.Parse("netstandard1.6").DotNetFrameworkName); result.Should().HaveSkippedProjectCompilation(expectedProject, NuGetFramework.Parse("netstandard1.5").DotNetFrameworkName);
} }
} }
else else

View file

@ -92,7 +92,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Tests
File.Exists(outputPackage).Should().BeTrue(outputPackage); File.Exists(outputPackage).Should().BeTrue(outputPackage);
var zip = ZipFile.Open(outputPackage, ZipArchiveMode.Read); var zip = ZipFile.Open(outputPackage, ZipArchiveMode.Read);
zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.6/TestLibraryWithConfiguration.dll"); zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.5/TestLibraryWithConfiguration.dll");
} }
[Fact] [Fact]
@ -127,13 +127,13 @@ namespace Microsoft.DotNet.Tools.Compiler.Tests
var outputPackage = Path.Combine(testInstance.TestRoot, "bin", "Debug", "LibraryWithOutputAssemblyName.1.0.0.nupkg"); var outputPackage = Path.Combine(testInstance.TestRoot, "bin", "Debug", "LibraryWithOutputAssemblyName.1.0.0.nupkg");
File.Exists(outputPackage).Should().BeTrue(outputPackage); File.Exists(outputPackage).Should().BeTrue(outputPackage);
var zip = ZipFile.Open(outputPackage, ZipArchiveMode.Read); var zip = ZipFile.Open(outputPackage, ZipArchiveMode.Read);
zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.6/MyLibrary.dll"); zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.5/MyLibrary.dll");
var symbolsPackage = Path.Combine(testInstance.TestRoot, "bin", "Debug", "LibraryWithOutputAssemblyName.1.0.0.symbols.nupkg"); var symbolsPackage = Path.Combine(testInstance.TestRoot, "bin", "Debug", "LibraryWithOutputAssemblyName.1.0.0.symbols.nupkg");
File.Exists(symbolsPackage).Should().BeTrue(symbolsPackage); File.Exists(symbolsPackage).Should().BeTrue(symbolsPackage);
zip = ZipFile.Open(symbolsPackage, ZipArchiveMode.Read); zip = ZipFile.Open(symbolsPackage, ZipArchiveMode.Read);
zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.6/MyLibrary.dll"); zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.5/MyLibrary.dll");
zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.6/MyLibrary.pdb"); zip.Entries.Should().Contain(e => e.FullName == "lib/netstandard1.5/MyLibrary.pdb");
} }
[Fact] [Fact]

View file

@ -193,20 +193,14 @@ namespace Microsoft.DotNet.Tools.Publish.Tests
} }
[Fact] [Fact]
public void PublishedLibraryShouldOutputDependenciesAndNoHost() public void PublishedLibraryWithoutRIDShouldFail()
{ {
TestInstance instance = TestAssetsManager.CreateTestInstance(Path.Combine("TestAppWithLibrary")) TestInstance instance = TestAssetsManager.CreateTestInstance(Path.Combine("TestAppWithLibrary"))
.WithLockFiles(); .WithLockFiles();
var testProject = _getProjectJson(instance.TestRoot, "TestLibrary"); var testProject = _getProjectJson(instance.TestRoot, "TestLibrary");
var publishCommand = new PublishCommand(testProject); var publishCommand = new PublishCommand(testProject);
publishCommand.Execute().Should().Pass(); publishCommand.Execute().Should().Fail();
publishCommand.GetOutputDirectory().Should().NotHaveFile("TestLibrary.exe");
publishCommand.GetOutputDirectory().Should().HaveFile("TestLibrary.dll");
publishCommand.GetOutputDirectory().Should().HaveFile("TestLibrary.pdb");
// dependencies should also be copied
publishCommand.GetOutputDirectory().Should().HaveFile("System.Runtime.dll");
} }
[WindowsOnlyFact()] [WindowsOnlyFact()]
@ -221,16 +215,16 @@ namespace Microsoft.DotNet.Tools.Publish.Tests
var publishCommand = new PublishCommand(lesserTestProject, "net451"); var publishCommand = new PublishCommand(lesserTestProject, "net451");
publishCommand.Execute().Should().Pass(); publishCommand.Execute().Should().Pass();
publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.dll"); publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.exe");
publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.pdb"); publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.pdb");
publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.dll.config"); publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.exe.config");
publishCommand.GetOutputDirectory().Should().NotHaveFile("TestLibraryLesser.deps.json"); publishCommand.GetOutputDirectory().Should().NotHaveFile("TestLibraryLesser.deps.json");
// dependencies should also be copied // dependencies should also be copied
publishCommand.GetOutputDirectory().Should().HaveFile("Newtonsoft.Json.dll"); publishCommand.GetOutputDirectory().Should().HaveFile("Newtonsoft.Json.dll");
publishCommand.GetOutputDirectory().Delete(true); publishCommand.GetOutputDirectory().Delete(true);
publishCommand = new PublishCommand(lesserTestProject, "netstandard1.6", RuntimeEnvironmentRidExtensions.GetLegacyRestoreRuntimeIdentifier()); publishCommand = new PublishCommand(lesserTestProject, "netcoreapp1.0", RuntimeEnvironmentRidExtensions.GetLegacyRestoreRuntimeIdentifier());
publishCommand.Execute().Should().Pass(); publishCommand.Execute().Should().Pass();
publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.dll"); publishCommand.GetOutputDirectory().Should().HaveFile("TestLibraryLesser.dll");