Merge pull request #3107 from dotnet/eerhardt/FixBuildAgain
Fix stub package generation to just depend on System.Console.
This commit is contained in:
commit
dfafcd96cf
2 changed files with 5 additions and 6 deletions
|
@ -98,7 +98,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
var tempPjFile = Path.Combine(tempPjDirectory, "project.json");
|
||||
File.WriteAllText(tempPjFile, projectJson);
|
||||
|
||||
DotNetCli.Stage0.Restore("--verbosity", "verbose", "--infer-runtimes",
|
||||
DotNetCli.Stage0.Restore("--verbosity", "verbose",
|
||||
"--fallbacksource", Dirs.CorehostLocalPackages,
|
||||
"--fallbacksource", Dirs.CorehostDummyPackages)
|
||||
.WorkingDirectory(tempPjDirectory)
|
||||
|
|
|
@ -42,9 +42,8 @@ namespace Microsoft.DotNet.Host.Build
|
|||
{
|
||||
var projectJson = new StringBuilder();
|
||||
projectJson.Append("{");
|
||||
projectJson.Append(" \"dependencies\": { \"NETStandard.Library\": \"1.5.0-rc2-24027\" },");
|
||||
projectJson.Append(" \"frameworks\": { \"netcoreapp1.0\": { \"imports\": [\"netstandard1.5\", \"dnxcore50\"] } },");
|
||||
projectJson.Append(" \"runtimes\": { \"win7-x64\": { } },");
|
||||
projectJson.Append(" \"dependencies\": { \"System.Console\": \"4.0.0-*\" },");
|
||||
projectJson.Append(" \"frameworks\": { \"netcoreapp1.0\": { } },");
|
||||
projectJson.Append("}");
|
||||
|
||||
var programCs = "using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { Console.WriteLine(\"Hello World!\"); } } }";
|
||||
|
@ -82,8 +81,8 @@ namespace Microsoft.DotNet.Host.Build
|
|||
projectJson.Append("{");
|
||||
projectJson.Append($" \"version\": \"{version}\",");
|
||||
projectJson.Append($" \"name\": \"{packageId}\",");
|
||||
projectJson.Append(" \"dependencies\": { \"NETStandard.Library\": \"1.5.0-rc2-24027\" },");
|
||||
projectJson.Append(" \"frameworks\": { \"netcoreapp1.0\": { \"imports\": [\"netstandard1.5\", \"dnxcore50\"] } },");
|
||||
projectJson.Append(" \"dependencies\": { \"System.Console\": \"4.0.0-*\" },");
|
||||
projectJson.Append(" \"frameworks\": { \"netcoreapp1.0\": { } },");
|
||||
projectJson.Append("}");
|
||||
|
||||
var tempPjDirectory = Path.Combine(intermediateDirectory, "dummyNuGetPackageIntermediate");
|
||||
|
|
Loading…
Reference in a new issue