t Convert Test Assets to Microsoft.NETCore.App

fix dotnet-compile-fsc failures

fix test failures
This commit is contained in:
Bryan Thornbury 2016-04-12 17:29:07 -07:00
parent b682ab1d4f
commit 83d78129db
125 changed files with 483 additions and 492 deletions

View file

@ -1,12 +0,0 @@
using System;
namespace StandaloneApp
{
public static class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}
}

View file

@ -1,35 +0,0 @@
{
"compilationOptions": {
"emitEntryPoint": true
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": {
"Microsoft.NETCore.App": "1.0.0-rc2-*"
}
}
},
"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": {}
},
"runtimeOptions": {
"somethingString": "anything",
"somethingBoolean": true,
"someArray": ["one", "two"],
"someObject": {
"someProperty": "someValue"
}
}
}

View file

@ -7,7 +7,7 @@
"dotnet-desktop-and-portable": "1.0.0-*" "dotnet-desktop-and-portable": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",

View file

@ -1,11 +1,9 @@
{ {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"EmptyLibrary": "1.0.0-*" "EmptyLibrary": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -1,10 +1,9 @@
{ {
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
}, },
"dnx451": {} "dnx451": {}

View file

@ -1,9 +1,9 @@
{ {
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50", "imports": "dnxcore50",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
} }
}, },

View file

@ -1,11 +1,9 @@
{ {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"Microsoft.Web.Administration": "7.0.0" "Microsoft.Web.Administration": "7.0.0"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,9 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"dnxcore50": {} "netcoreapp1.0": {}
} }
} }

View file

@ -6,12 +6,12 @@
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",
"version": "1.0.0-rc2-24008" "version": "1.0.0-rc2-*"
}, },
"Microsoft.Extensions.DependencyModel": "1.0.0-*" "Microsoft.Extensions.DependencyModel": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [ "imports": [
"dnxcore50", "dnxcore50",
"portable-net45+win8" "portable-net45+win8"

View file

@ -18,7 +18,7 @@
"System.CommandLine": "0.1.0-e160323-1" "System.CommandLine": "0.1.0-e160323-1"
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [ "imports": [
"portable-net45+win8", "portable-net45+win8",
"dnxcore50" "dnxcore50"

View file

@ -9,8 +9,8 @@ namespace ConsoleApplication
{ {
#if NET451 #if NET451
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETFramework,Version=v4.5.1"); Console.WriteLine($"Hello {string.Join(" ", args)} From .NETFramework,Version=v4.5.1");
#elif NETSTANDARD1_5 #elif NETCOREAPP1_0
Console.WriteLine($"Hello {string.Join(" ", args)} From .NETStandardApp,Version=v1.5"); Console.WriteLine($"Hello {string.Join(" ", args)} From .NETCoreApp,Version=v1.0");
#endif #endif
var currentAssemblyPath = typeof(ConsoleApplication.Program).GetTypeInfo().Assembly.Location; var currentAssemblyPath = typeof(ConsoleApplication.Program).GetTypeInfo().Assembly.Location;
Console.WriteLine($"Current Assembly Directory - {currentAssemblyPath}"); Console.WriteLine($"Current Assembly Directory - {currentAssemblyPath}");

View file

@ -4,17 +4,13 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",
"version": "1.0.0-rc2-*" "version": "1.0.0-rc2-*"
} }
}, },
"imports": [
"portable-net45+win8",
"dnxcore50"
]
}, },
"net451": {} "net451": {}
} }

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,11 +4,7 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",

View file

@ -4,12 +4,10 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
}, },
"tools": { "tools": {
"dotnet-portable": { "dotnet-portable": {

View file

@ -4,18 +4,16 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"dotnet-hello": { "dotnet-hello": {
"version": "1.0.0", "version": "1.0.0",
"target": "package" "target": "package"
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
}, },
"testRunner": "must-be-specified-to-generate-deps",
"tools": { "tools": {
"dotnet-portable": { "dotnet-portable": {
"version": "1.0.0", "version": "1.0.0",

View file

@ -3,17 +3,15 @@
"compilationOptions": { "compilationOptions": {
"emitEntryPoint": true "emitEntryPoint": true
}, },
"testRunner": "must-be-specified-to-generate-deps",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"dotnet-hello": { "dotnet-hello": {
"version": "1.0.0", "version": "1.0.0",
"target": "package" "target": "package"
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -5,11 +5,9 @@
"preserveCompilationContext": true "preserveCompilationContext": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,12 +4,10 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
}, },
"tools": { "tools": {
"dotnet-portable": { "dotnet-portable": {

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,7 +4,7 @@
}, },
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": [ "imports": [
"dnxcore50", "dnxcore50",
"portable-net45+win8" "portable-net45+win8"
@ -12,7 +12,7 @@
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",
"version": "1.0.0-rc2-24008" "version": "1.0.0-rc2-*"
} }
} }
} }

View file

@ -47,7 +47,7 @@ namespace Microsoft.Extensions.DependencyModel
Console.WriteLine($"Compilation {compilationLibrary.Name}:{Path.GetFileName(resolvedPath)}"); Console.WriteLine($"Compilation {compilationLibrary.Name}:{Path.GetFileName(resolvedPath)}");
if (!File.Exists(resolvedPath)) if (!File.Exists(resolvedPath))
{ {
Error($"Compilataion library resolved to non existent path {resolvedPath}"); Error($"Compilation library resolved to non existent path {resolvedPath}");
} }
} }
} }

View file

@ -10,7 +10,7 @@
"netstandard1.5": { "netstandard1.5": {
"imports": "dnxcore50", "imports": "dnxcore50",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
}, },
"net451": {} "net451": {}

View file

@ -5,12 +5,10 @@
"preserveCompilationContext": true "preserveCompilationContext": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"DependencyContextValidator": "1.0.0-*" "DependencyContextValidator": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"] }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,12 +4,10 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"DependencyContextValidator": "1.0.0-*" "DependencyContextValidator": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"] }
"imports": "dnxcore50"
}
} }
} }

View file

@ -12,8 +12,6 @@
"DependencyContextValidator": "1.0.0-*" "DependencyContextValidator": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"] }
"imports": "dnxcore50"
}
} }
} }

View file

@ -11,8 +11,6 @@
"DependencyContextValidator": "1.0.0-*" "DependencyContextValidator": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"] }
"imports": "dnxcore50"
}
} }
} }

View file

@ -9,7 +9,7 @@
], ],
"dependencies": { "dependencies": {
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221", "Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"tools": { "tools": {
"dotnet-compile-fsc": { "dotnet-compile-fsc": {
@ -22,7 +22,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": [ "imports": [
"dnxcore50", "dnxcore50",
"netstandard1.3" "netstandard1.3"

View file

@ -12,7 +12,7 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"target": "project" "target": "project"
}, },
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221" "Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221"
}, },
"tools": { "tools": {
@ -26,7 +26,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -9,7 +9,7 @@
], ],
"dependencies": { "dependencies": {
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221", "Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"tools": { "tools": {
"dotnet-compile-fsc": { "dotnet-compile-fsc": {
@ -22,7 +22,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -20,7 +20,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -12,11 +12,11 @@
"../src/*.cs" "../src/*.cs"
], ],
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",
"version": "1.0.0-rc2-24008" "version": "1.0.0-rc2-*"
} }
}, },
"imports": [ "imports": [

View file

@ -14,7 +14,7 @@
"frameworks": { "frameworks": {
"netcoreapp1.0": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": "1.0.0-rc2-3002306" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"imports": [ "imports": [
"dnxcore50", "dnxcore50",

View file

@ -6,8 +6,6 @@
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,11 +4,7 @@
}, },
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",

View file

@ -5,11 +5,7 @@
}, },
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",

View file

@ -4,18 +4,15 @@
}, },
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",
"version": "1.0.0-rc2-*" "version": "1.0.0-rc2-*"
}, },
"System.Linq": "4.0.0" "System.Linq": "4.0.0"
} },
"imports": "dnxcore50"
} }
} }
} }

View file

@ -3,18 +3,15 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"type": "platform", "type": "platform",
"version": "1.0.0-rc2-*" "version": "1.0.0-rc2-*"
}, },
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*" "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*"
} },
"imports": "dnxcore50"
} }
} }
} }

View file

@ -3,13 +3,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": [
"dnxcore50",
"portable-net45+win8"
],
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
} }
}, },

View file

@ -5,10 +5,9 @@
}, },
"frameworks": { "frameworks": {
"netcoreapp1.0": { "netcoreapp1.0": {
"imports": "dnxcore50",
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"version": "1.0.0-rc2-24008", "version": "1.0.0-rc2-*",
"type": "platform" "type": "platform"
} }
} }

View file

@ -6,11 +6,9 @@
}, },
"dependencies": { "dependencies": {
"TestLibrary": "1.0.0-*", "TestLibrary": "1.0.0-*",
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -13,8 +13,6 @@
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -5,12 +5,10 @@
"outputName": "AppWithContentPackage" "outputName": "AppWithContentPackage"
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018", "Microsoft.NETCore.App": "1.0.0-rc2-*",
"SharedContentA": "1.0.0-*" "SharedContentA": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { "imports": ["netstandardapp1.5", "dnxcore50"] }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,12 +4,10 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"content": "testcontentfile.txt", "content": "testcontentfile.txt",
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -9,11 +9,9 @@
"target": "project", "target": "project",
"version": "1.0.0-*" "version": "1.0.0-*"
}, },
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -13,8 +13,6 @@
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,12 +4,10 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
}, },
"scripts": { "scripts": {
"prepublish": [ "prepublish": [

View file

@ -9,12 +9,10 @@
"target": "project", "target": "project",
"version": "1.0.0-*" "version": "1.0.0-*"
}, },
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
}, },
"scripts": { "scripts": {
"prepublish": [ "prepublish": [

View file

@ -13,8 +13,6 @@
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -11,8 +11,6 @@
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -8,8 +8,6 @@
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -9,11 +9,9 @@
"target": "project", "target": "project",
"version": "1.0.0-*" "version": "1.0.0-*"
}, },
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -1,7 +1,6 @@
{ {
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50",
"bin": { "bin": {
"assembly": "bin.keep\\{configuration}\\dnxcore50\\TestLibrary.dll", "assembly": "bin.keep\\{configuration}\\dnxcore50\\TestLibrary.dll",
"pdb": "bin.keep\\{configuration}\\dnxcore50\\TestLibrary.pdb" "pdb": "bin.keep\\{configuration}\\dnxcore50\\TestLibrary.pdb"

View file

@ -1,19 +1,19 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"testRunner": "xunit", "testRunner": "xunit",
"dependencies": { "dependencies": {
"Newtonsoft.Json": "7.0.1" "Newtonsoft.Json": "7.0.1"
}, },
"frameworks": { "frameworks": {
"net451": {}, "net451": {},
"netstandardapp1.5": { "netstandard1.5": {
"imports": [
"dnxcore50",
"portable-net45+wp80+win8"
],
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
} },
"imports": "portable-net45+win8"
} }
} }
} }

View file

@ -1,22 +1,22 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"testRunner": "xunit", "testRunner": "xunit",
"dependencies": { "dependencies": {
"Newtonsoft.Json": "6.0.0", "Newtonsoft.Json": "6.0.1",
"TestLibraryGreater": { "TestLibraryGreater": {
"target": "project" "target": "project"
} }
}, },
"frameworks": { "frameworks": {
"net451": {}, "net451": {},
"netstandardapp1.5": { "netstandard1.5": {
"imports": [
"dnxcore50",
"portable-net45+wp80+win8"
],
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
} },
"imports": "portable-net45+win8"
} }
} }
} }

View file

@ -11,8 +11,6 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -16,8 +16,6 @@
"Test": {} "Test": {}
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -9,8 +9,7 @@
"net35": {}, "net35": {},
"net40": {}, "net40": {},
"net461": {}, "net461": {},
"netstandardapp1.5": { "netstandard1.5": {
"imports": "dnxcore50",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "NETStandard.Library": "1.5.0-rc2-24018"
} }

View file

@ -2,10 +2,10 @@
"version": "1.0.0", "version": "1.0.0",
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"imports": "dnxcore50", "imports": "dnxcore50",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
}, },
"net451": { "net451": {

View file

@ -2,9 +2,9 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
}, },
"net451": { "net451": {

View file

@ -6,11 +6,9 @@
"dependencies": { "dependencies": {
"L11": "1.0.0-*", "L11": "1.0.0-*",
"L12": "1.0.0-*", "L12": "1.0.0-*",
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -3,10 +3,10 @@
"dependencies": { "dependencies": {
"L12": "1.0.0-*", "L12": "1.0.0-*",
"L21": "1.0.0-*", "L21": "1.0.0-*",
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -2,10 +2,10 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": { "dependencies": {
"L22": "1.0.0-*", "L22": "1.0.0-*",
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -1,10 +1,10 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -1,10 +1,10 @@
{ {
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netstandard1.5": {
"imports": "dnxcore50" "imports": "dnxcore50"
} }
} }

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -4,11 +4,9 @@
"emitEntryPoint": true "emitEntryPoint": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -5,11 +5,9 @@
"xmlDoc": true "xmlDoc": true
}, },
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
}, },
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": { }
"imports": "dnxcore50"
}
} }
} }

View file

@ -2,9 +2,9 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
}, },
"net451": { "net451": {

View file

@ -2,9 +2,9 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"netstandardapp1.5": { "netcoreapp1.0": {
"dependencies": { "dependencies": {
"NETStandard.Library": "1.5.0-rc2-24018" "Microsoft.NETCore.App": "1.0.0-rc2-*"
} }
}, },
"net451": { "net451": {

View file

@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Microsoft.DotNet.Cli.Build.Framework; using Microsoft.DotNet.Cli.Build.Framework;
@ -35,6 +36,26 @@ namespace Microsoft.DotNet.Cli.Build
"vbc.exe" "vbc.exe"
}; };
public static readonly string[] HostPackageSupportedRids = new[]
{
"win7-x64",
"win7-x86",
"osx.10.10-x64",
"osx.10.11-x64",
"ubuntu.14.04-x64",
"centos.7-x64",
"rhel.7-x64",
"rhel.7.2-x64",
"debian.8-x64"
};
public static readonly string[] HostPackages = new[]
{
"Microsoft.NETCore.DotNetHost",
"Microsoft.NETCore.DotNetHostPolicy",
"Microsoft.NETCore.DotNetHostResolver"
};
public const string SharedFrameworkName = "Microsoft.NETCore.App"; public const string SharedFrameworkName = "Microsoft.NETCore.App";
public static Crossgen CrossgenUtil = new Crossgen(CoreCLRVersion); public static Crossgen CrossgenUtil = new Crossgen(CoreCLRVersion);
@ -58,6 +79,33 @@ namespace Microsoft.DotNet.Cli.Build
return c.Success(); return c.Success();
} }
// We need to generate stub host packages so we can restore our standalone test assets against the metapackage
// we built earlier in the build
// https://github.com/dotnet/cli/issues/2438
[Target]
public static BuildTargetResult GenerateStubHostPackages(BuildTargetContext c)
{
string currentRid = GetRuntimeId();
var buildVersion = c.BuildContext.Get<BuildVersion>("BuildVersion");
foreach (var hostPackageId in HostPackages)
{
foreach (var rid in HostPackageSupportedRids)
{
if (! rid.Equals(currentRid))
{
CreateDummyRuntimeNuGetPackage(
DotNetCli.Stage0,
hostPackageId,
rid,
buildVersion.HostNuGetPackageVersion,
Dirs.CorehostDummyPackages);
}
}
}
return c.Success();
}
private static string HostVer = "1.0.1"; private static string HostVer = "1.0.1";
private static string HostPolicyVer = "1.0.1"; private static string HostPolicyVer = "1.0.1";
private static string HostFxrVer = "1.0.1"; private static string HostFxrVer = "1.0.1";
@ -146,7 +194,7 @@ namespace Microsoft.DotNet.Cli.Build
return c.Success(); return c.Success();
} }
[Target] [Target(nameof(CompileTargets.GenerateStubHostPackages))]
public static BuildTargetResult PackagePkgProjects(BuildTargetContext c) public static BuildTargetResult PackagePkgProjects(BuildTargetContext c)
{ {
var buildVersion = c.BuildContext.Get<BuildVersion>("BuildVersion"); var buildVersion = c.BuildContext.Get<BuildVersion>("BuildVersion");
@ -158,7 +206,8 @@ namespace Microsoft.DotNet.Cli.Build
var content = $@"{c.BuildContext["CommitHash"]}{Environment.NewLine}{version}{Environment.NewLine}"; var content = $@"{c.BuildContext["CommitHash"]}{Environment.NewLine}{version}{Environment.NewLine}";
var pkgDir = Path.Combine(c.BuildContext.BuildDirectory, "pkg"); var pkgDir = Path.Combine(c.BuildContext.BuildDirectory, "pkg");
File.WriteAllText(Path.Combine(pkgDir, "version.txt"), content); File.WriteAllText(Path.Combine(pkgDir, "version.txt"), content);
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
if (CurrentPlatform.IsWindows)
{ {
Command.Create(Path.Combine(pkgDir, "pack.cmd")) Command.Create(Path.Combine(pkgDir, "pack.cmd"))
// Workaround to arg escaping adding backslashes for arguments to .cmd scripts. // Workaround to arg escaping adding backslashes for arguments to .cmd scripts.
@ -305,6 +354,50 @@ namespace Microsoft.DotNet.Cli.Build
return c.Success(); return c.Success();
} }
private static void CreateDummyRuntimeNuGetPackage(DotNetCli dotnet, string basePackageId, string rid, string version, string outputDir)
{
var packageId = $"runtime.{rid}.{basePackageId}";
var projectJson = new StringBuilder();
projectJson.Append("{");
projectJson.Append($" \"version\": \"{version}\",");
projectJson.Append($" \"name\": \"{packageId}\",");
projectJson.Append(" \"dependencies\": { \"NETStandard.Library\": \"1.5.0-rc2-24008\" },");
projectJson.Append(" \"frameworks\": { \"netcoreapp1.0\": { \"imports\": [\"netstandard1.5\", \"dnxcore50\"] } },");
projectJson.Append($" \"runtimes\": {{ \"{rid}\": {{ }} }},");
projectJson.Append("}");
var programCs = "using System; namespace ConsoleApplication { public class Program { public static void Main(string[] args) { Console.WriteLine(\"Hello World!\"); } } }";
var tempPjDirectory = Path.Combine(Dirs.Intermediate, "dummyNuGetPackageIntermediate");
FS.Rmdir(tempPjDirectory);
Directory.CreateDirectory(tempPjDirectory);
var tempPjFile = Path.Combine(tempPjDirectory, "project.json");
var tempSourceFile = Path.Combine(tempPjDirectory, "Program.cs");
File.WriteAllText(tempPjFile, projectJson.ToString());
File.WriteAllText(tempSourceFile, programCs.ToString());
dotnet.Restore("--verbosity", "verbose", "--disable-parallel")
.WorkingDirectory(tempPjDirectory)
.Execute()
.EnsureSuccessful();
dotnet.Build(tempPjFile, "--runtime", rid)
.WorkingDirectory(tempPjDirectory)
.Execute()
.EnsureSuccessful();
dotnet.Pack(
tempPjFile, "--no-build",
"--output", outputDir)
.WorkingDirectory(tempPjDirectory)
.Execute()
.EnsureSuccessful();
}
private static void CleanOutputDir(string directory) private static void CleanOutputDir(string directory)
{ {
foreach (var file in FilesToClean) foreach (var file in FilesToClean)
@ -346,7 +439,11 @@ namespace Microsoft.DotNet.Cli.Build
string SharedFrameworkSourceRoot = GenerateSharedFrameworkProject(c, SharedFrameworkTemplateSourceRoot, sharedFrameworkRid); string SharedFrameworkSourceRoot = GenerateSharedFrameworkProject(c, SharedFrameworkTemplateSourceRoot, sharedFrameworkRid);
dotnetCli.Restore("--verbosity", "verbose", "--disable-parallel", "--infer-runtimes", "--fallbacksource", Dirs.Corehost) dotnetCli.Restore(
"--verbosity", "verbose",
"--disable-parallel",
"--infer-runtimes",
"--fallbacksource", Dirs.Corehost)
.WorkingDirectory(SharedFrameworkSourceRoot) .WorkingDirectory(SharedFrameworkSourceRoot)
.Execute() .Execute()
.EnsureSuccessful(); .EnsureSuccessful();

View file

@ -58,7 +58,7 @@ namespace Microsoft.DotNet.Cli.Build
[Target(nameof(RestoreTestAssetPackages), nameof(BuildTestAssetPackages))] [Target(nameof(RestoreTestAssetPackages), nameof(BuildTestAssetPackages))]
public static BuildTargetResult SetupTestPackages(BuildTargetContext c) => c.Success(); public static BuildTargetResult SetupTestPackages(BuildTargetContext c) => c.Success();
[Target(nameof(RestoreTestAssetProjects), nameof(RestoreDesktopTestAssetProjects), nameof(RestoreCrossPublishTestAssetProjects), nameof(BuildTestAssetProjects))] [Target(nameof(RestoreTestAssetProjects), nameof(RestoreDesktopTestAssetProjects), nameof(BuildTestAssetProjects))]
public static BuildTargetResult SetupTestProjects(BuildTargetContext c) => c.Success(); public static BuildTargetResult SetupTestProjects(BuildTargetContext c) => c.Success();
[Target] [Target]
@ -70,7 +70,10 @@ namespace Microsoft.DotNet.Cli.Build
CleanNuGetTempCache(); CleanNuGetTempCache();
var dotnet = DotNetCli.Stage2; var dotnet = DotNetCli.Stage2;
dotnet.Restore("--verbosity", "verbose", "--infer-runtimes", "--fallbacksource", Dirs.Corehost) dotnet.Restore("--verbosity", "verbose",
"--infer-runtimes",
"--fallbacksource", Dirs.Corehost,
"--fallbacksource", Dirs.CorehostDummyPackages)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestPackages")) .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestPackages"))
.Execute() .Execute()
.EnsureSuccessful(); .EnsureSuccessful();
@ -91,25 +94,18 @@ namespace Microsoft.DotNet.Cli.Build
"--verbosity", "verbose", "--verbosity", "verbose",
"--infer-runtimes", "--infer-runtimes",
"--fallbacksource", Dirs.TestPackages, "--fallbacksource", Dirs.TestPackages,
"--fallbacksource", Dirs.Corehost) "--fallbacksource", Dirs.Corehost,
"--fallbacksource", Dirs.CorehostDummyPackages)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestProjects")) .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestProjects"))
.Execute() .Execute()
.EnsureSuccessful(); .EnsureSuccessful();
// The 'ProjectWithTests' is a portable test app. Cannot call --infer-runtimes on it, since on win x64 machines,
// the x86 runtime is being inferred, and there are no x86 DotNetHost packages
dotnet.Restore(
"--verbosity", "verbose",
"--fallbacksource", Dirs.Corehost)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectWithTests"))
.Execute()
.EnsureSuccessful();
// The 'ProjectModelServer' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output // The 'ProjectModelServer' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output
dotnet.Restore( dotnet.Restore(
"--verbosity", "verbose", "--verbosity", "verbose",
"--infer-runtimes", "--infer-runtimes",
"--fallbacksource", Dirs.Corehost) "--fallbacksource", Dirs.Corehost,
"--fallbacksource", Dirs.CorehostDummyPackages)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectModelServer", "DthTestProjects")) .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectModelServer", "DthTestProjects"))
.Execute(); .Execute();
@ -131,25 +127,14 @@ namespace Microsoft.DotNet.Cli.Build
dotnet.Restore("--verbosity", "verbose", dotnet.Restore("--verbosity", "verbose",
"--infer-runtimes", "--infer-runtimes",
"--fallbacksource", Dirs.TestPackages, "--fallbacksource", Dirs.TestPackages,
"--fallbacksource", Dirs.Corehost) "--fallbacksource", Dirs.Corehost,
"--fallbacksource", Dirs.CorehostDummyPackages)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "DesktopTestProjects")) .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "DesktopTestProjects"))
.Execute().EnsureSuccessful(); .Execute().EnsureSuccessful();
return c.Success(); return c.Success();
} }
[Target]
public static BuildTargetResult RestoreCrossPublishTestAssetProjects(BuildTargetContext c)
{
var dotnet = DotNetCli.Stage2;
dotnet.Restore("--verbosity", "verbose")
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "CrossPublishTestProjects"))
.Execute().EnsureSuccessful();
return c.Success();
}
[Target(nameof(CleanTestPackages), nameof(CleanProductPackages))] [Target(nameof(CleanTestPackages), nameof(CleanProductPackages))]
public static BuildTargetResult BuildTestAssetPackages(BuildTargetContext c) public static BuildTargetResult BuildTestAssetPackages(BuildTargetContext c)
{ {
@ -178,7 +163,7 @@ namespace Microsoft.DotNet.Cli.Build
{ {
"netstandard1.5", "netstandard1.5",
"netstandard1.3", "netstandard1.3",
"netstandardapp1.5" "netcoreapp1.0"
}; };
if (CurrentPlatform.IsWindows) if (CurrentPlatform.IsWindows)
@ -262,20 +247,12 @@ namespace Microsoft.DotNet.Cli.Build
foreach (var project in projects) foreach (var project in projects)
{ {
c.Info($"Building: {project}"); c.Info($"Building: {project}");
dotnet.Build("--framework", "netstandardapp1.5") dotnet.Build("--framework", "netcoreapp1.0")
.WorkingDirectory(Path.GetDirectoryName(project)) .WorkingDirectory(Path.GetDirectoryName(project))
.Execute() .Execute()
.EnsureSuccessful(); .EnsureSuccessful();
} }
// build ProjectWithTests, which is outside of TestProjects and targets netcoreapp
string projectWithTests = Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "ProjectWithTests");
c.Info($"Building: {projectWithTests}");
dotnet.Build("--framework", "netcoreapp1.0")
.WorkingDirectory(projectWithTests)
.Execute()
.EnsureSuccessful();
return c.Success(); return c.Success();
} }
@ -288,7 +265,8 @@ namespace Microsoft.DotNet.Cli.Build
CleanNuGetTempCache(); CleanNuGetTempCache();
DotNetCli.Stage2.Restore("--verbosity", "verbose", DotNetCli.Stage2.Restore("--verbosity", "verbose",
"--fallbacksource", Dirs.TestPackages, "--fallbacksource", Dirs.TestPackages,
"--fallbacksource", Dirs.Corehost) "--fallbacksource", Dirs.Corehost,
"--fallbacksource", Dirs.CorehostDummyPackages)
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "test")) .WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "test"))
.Execute() .Execute()
.EnsureSuccessful(); .EnsureSuccessful();

View file

@ -13,6 +13,7 @@
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}"; public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}"; public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
public string NetCoreAppVersion => $"{Major}.{Minor}.{Patch}-rc2-3{CommitCountString}"; public string NetCoreAppVersion => $"{Major}.{Minor}.{Patch}-rc2-3{CommitCountString}";
public string HostNuGetPackageVersion => $"{Major}.{Minor}.1-rc2-{CommitCountString}-00";
public string ProductionVersion => $"{Major}.{Minor}.{Patch}"; public string ProductionVersion => $"{Major}.{Minor}.{Patch}";
public string GenerateMsiVersion() public string GenerateMsiVersion()

View file

@ -23,6 +23,7 @@ namespace Microsoft.DotNet.Cli.Build
public static readonly string Stage2Compilation = Path.Combine(Output, "stage2compilation"); public static readonly string Stage2Compilation = Path.Combine(Output, "stage2compilation");
public static readonly string Stage2Symbols = Path.Combine(Output, "stage2symbols"); public static readonly string Stage2Symbols = Path.Combine(Output, "stage2symbols");
public static readonly string Corehost = Path.Combine(Output, "corehost"); public static readonly string Corehost = Path.Combine(Output, "corehost");
public static readonly string CorehostDummyPackages = Path.Combine(Output, "corehostdummypackages");
public static readonly string TestOutput = Path.Combine(Output, "tests"); public static readonly string TestOutput = Path.Combine(Output, "tests");
public static readonly string TestArtifacts = Path.Combine(TestOutput, "artifacts"); public static readonly string TestArtifacts = Path.Combine(TestOutput, "artifacts");
public static readonly string TestPackages = Path.Combine(TestOutput, "packages"); public static readonly string TestPackages = Path.Combine(TestOutput, "packages");

View file

@ -85,6 +85,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Fsc
bool targetNetCore = bool targetNetCore =
commonOptions.Defines.Contains("DNXCORE50") || commonOptions.Defines.Contains("DNXCORE50") ||
commonOptions.Defines.Where(d => d.StartsWith("NETSTANDARDAPP1_")).Any() || commonOptions.Defines.Where(d => d.StartsWith("NETSTANDARDAPP1_")).Any() ||
commonOptions.Defines.Where(d => d.StartsWith("NETCOREAPP1_")).Any() ||
commonOptions.Defines.Where(d => d.StartsWith("NETSTANDARD1_")).Any(); commonOptions.Defines.Where(d => d.StartsWith("NETSTANDARD1_")).Any();
// Get FSC Path upfront to use it for win32manifest path // Get FSC Path upfront to use it for win32manifest path

View file

@ -15,7 +15,7 @@
} }
}, },
"frameworks": { "frameworks": {
"netstandard1.5": { "netcoreapp1.0": {
"imports": [ "imports": [
"dnxcore50", "dnxcore50",
"portable-net45+win81", "portable-net45+win81",

View file

@ -77,7 +77,7 @@ namespace Microsoft.DotNet.Tools.Publish
} }
/// <summary> /// <summary>
/// Publish the project for given 'framework (ex - netstandardapp1.5)' and 'runtimeID (ex - win7-x64)' /// Publish the project for given 'framework (ex - netcoreapp1.0)' and 'runtimeID (ex - win7-x64)'
/// </summary> /// </summary>
/// <param name="context">project that is to be published</param> /// <param name="context">project that is to be published</param>
/// <param name="baseOutputPath">Location of published files</param> /// <param name="baseOutputPath">Location of published files</param>

View file

@ -31,9 +31,9 @@ namespace Microsoft.DotNet.Kestrel.Tests
var outputBase = new DirectoryInfo(Path.Combine(testRoot, "bin", "Debug")); var outputBase = new DirectoryInfo(Path.Combine(testRoot, "bin", "Debug"));
var netstandardappOutput = outputBase.Sub("netstandard1.5"); var netcoreAppOutput = outputBase.Sub("netcoreapp1.0");
netstandardappOutput.Should() netcoreAppOutput.Should()
.Exist().And .Exist().And
.OnlyHaveFiles(new[] .OnlyHaveFiles(new[]
{ {

View file

@ -36,7 +36,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = new string[] {""}, CommandArguments = new string[] {""},
ProjectDirectory = "/some/directory", ProjectDirectory = "/some/directory",
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -55,7 +55,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = new string[] {""}, CommandArguments = new string[] {""},
ProjectDirectory = null, ProjectDirectory = null,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -93,7 +93,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = new string[] {""}, CommandArguments = new string[] {""},
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = null, Configuration = null,
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -112,7 +112,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = null, CommandArguments = null,
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -131,7 +131,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = null, CommandArguments = null,
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -156,7 +156,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = new [] { "arg with space"}, CommandArguments = new [] { "arg with space"},
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -176,7 +176,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = null, CommandArguments = null,
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);
@ -196,13 +196,13 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = null, CommandArguments = null,
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15, Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10,
OutputPath = AppContext.BaseDirectory OutputPath = AppContext.BaseDirectory
}; };
var projectContext = ProjectContext.Create( var projectContext = ProjectContext.Create(
s_liveProjectDirectory, s_liveProjectDirectory,
FrameworkConstants.CommonFrameworks.NetStandardApp15, FrameworkConstants.CommonFrameworks.NetCoreApp10,
PlatformServices.Default.Runtime.GetAllCandidateRuntimeIdentifiers()); PlatformServices.Default.Runtime.GetAllCandidateRuntimeIdentifiers());
var depsFilePath = var depsFilePath =
@ -225,13 +225,13 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = null, CommandArguments = null,
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15, Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10,
BuildBasePath = AppContext.BaseDirectory BuildBasePath = AppContext.BaseDirectory
}; };
var projectContext = ProjectContext.Create( var projectContext = ProjectContext.Create(
s_liveProjectDirectory, s_liveProjectDirectory,
FrameworkConstants.CommonFrameworks.NetStandardApp15, FrameworkConstants.CommonFrameworks.NetCoreApp10,
PlatformServices.Default.Runtime.GetAllCandidateRuntimeIdentifiers()); PlatformServices.Default.Runtime.GetAllCandidateRuntimeIdentifiers());
var depsFilePath = var depsFilePath =
@ -254,7 +254,7 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
CommandArguments = null, CommandArguments = null,
ProjectDirectory = s_liveProjectDirectory, ProjectDirectory = s_liveProjectDirectory,
Configuration = "Debug", Configuration = "Debug",
Framework = FrameworkConstants.CommonFrameworks.NetStandardApp15 Framework = FrameworkConstants.CommonFrameworks.NetCoreApp10
}; };
var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments); var result = projectDependenciesCommandResolver.Resolve(commandResolverArguments);

View file

@ -139,7 +139,7 @@ namespace StreamForwarderTests
buildCommand.Execute(); buildCommand.Execute();
var buildOutputExe = "OutputStandardOutputAndError" + Constants.ExeSuffix; var buildOutputExe = "OutputStandardOutputAndError" + Constants.ExeSuffix;
var buildOutputPath = Path.Combine(binTestProjectPath, "bin/Debug/netstandardapp1.5", buildOutputExe); var buildOutputPath = Path.Combine(binTestProjectPath, "bin/Debug/netcoreapp1.0", buildOutputExe);
return buildOutputPath; return buildOutputPath;
} }

View file

@ -29,8 +29,8 @@ namespace Microsoft.DotNet.ProjectModel.Tests
target.CompileTimeAssemblies.Add("lib/dotnet/_._"); target.CompileTimeAssemblies.Add("lib/dotnet/_._");
target.NativeLibraries.Add("runtimes/any/native/Microsoft.CSharp.CurrentVersion.targets"); target.NativeLibraries.Add("runtimes/any/native/Microsoft.CSharp.CurrentVersion.targets");
var p1 = provider.GetDescription(NuGetFramework.Parse("netstandardapp1.5"), package, target); var p1 = provider.GetDescription(NuGetFramework.Parse("netcoreapp1.0"), package, target);
var p2 = provider.GetDescription(NuGetFramework.Parse("netstandardapp1.5"), package, target); var p2 = provider.GetDescription(NuGetFramework.Parse("netcoreapp1.0"), package, target);
Assert.True(p1.Compatible); Assert.True(p1.Compatible);
Assert.True(p2.Compatible); Assert.True(p2.Compatible);

View file

@ -112,16 +112,16 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
$"StdErr:{Environment.NewLine}{_commandResult.StdErr}{Environment.NewLine}"; ; $"StdErr:{Environment.NewLine}{_commandResult.StdErr}{Environment.NewLine}"; ;
} }
public AndConstraint<CommandResultAssertions> HaveSkippedProjectCompilation(string skippedProject) public AndConstraint<CommandResultAssertions> HaveSkippedProjectCompilation(string skippedProject, string frameworkFullName)
{ {
_commandResult.StdOut.Should().Contain($"Project {skippedProject} (.NETStandardApp,Version=v1.5) was previously compiled. Skipping compilation."); _commandResult.StdOut.Should().Contain($"Project {skippedProject} ({frameworkFullName}) was previously compiled. Skipping compilation.");
return new AndConstraint<CommandResultAssertions>(this); return new AndConstraint<CommandResultAssertions>(this);
} }
public AndConstraint<CommandResultAssertions> HaveCompiledProject(string compiledProject) public AndConstraint<CommandResultAssertions> HaveCompiledProject(string compiledProject, string frameworkFullName)
{ {
_commandResult.StdOut.Should().Contain($"Project {compiledProject} (.NETStandardApp,Version=v1.5) will be compiled"); _commandResult.StdOut.Should().Contain($"Project {compiledProject} ({frameworkFullName}) will be compiled");
return new AndConstraint<CommandResultAssertions>(this); return new AndConstraint<CommandResultAssertions>(this);
} }

View file

@ -69,6 +69,7 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
string config = string.IsNullOrEmpty(_config) ? "Debug" : _config; string config = string.IsNullOrEmpty(_config) ? "Debug" : _config;
string framework = string.IsNullOrEmpty(_framework) ? string framework = string.IsNullOrEmpty(_framework) ?
_project.GetTargetFrameworks().First().FrameworkName.GetShortFolderName() : _framework; _project.GetTargetFrameworks().First().FrameworkName.GetShortFolderName() : _framework;
if (!portable) if (!portable)
{ {
var runtime = string.IsNullOrEmpty(_runtime) ? PlatformServices.Default.Runtime.GetLegacyRestoreRuntimeIdentifier() : _runtime; var runtime = string.IsNullOrEmpty(_runtime) ? PlatformServices.Default.Runtime.GetLegacyRestoreRuntimeIdentifier() : _runtime;

Some files were not shown because too many files have changed in this diff Show more