From bccff16c183821fde3a75aa7fa51cdb82fe41654 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Wed, 20 Jul 2016 13:53:57 -0500 Subject: [PATCH] Round 2: rename the SDK NuGet package and add ImportBeforeAfter files to load them. --- Microsoft.DotNet.Cli.sln | 2 +- ....xproj => Microsoft.DotNet.Core.Sdk.xproj} | 0 ....props => Microsoft.DotNet.Core.Sdk.props} | 38 +++++-------------- ...gets => Microsoft.DotNet.Core.Sdk.targets} | 34 ++++++++--------- .../Microsoft.NETCore.ImportBefore.props | 17 +++++++++ .../Microsoft.NETCore.ImportAfter.targets | 17 +++++++++ src/dotnet/project.json | 7 +++- 7 files changed, 66 insertions(+), 49 deletions(-) rename src/Microsoft.DotNet.Core.MSBuild/{Microsoft.DotNet.Core.MSBuild.xproj => Microsoft.DotNet.Core.Sdk.xproj} (100%) rename src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/{Microsoft.DotNet.Core.MSBuild.props => Microsoft.DotNet.Core.Sdk.props} (64%) rename src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/{Microsoft.DotNet.Core.MSBuild.targets => Microsoft.DotNet.Core.Sdk.targets} (79%) create mode 100644 src/dotnet/14.1/Imports/Microsoft.Common.props/ImportBefore/Microsoft.NETCore.ImportBefore.props create mode 100644 src/dotnet/14.1/Microsoft.Common.Targets/ImportAfter/Microsoft.NETCore.ImportAfter.targets diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln index 51b4b1340..bab871a95 100644 --- a/Microsoft.DotNet.Cli.sln +++ b/Microsoft.DotNet.Cli.sln @@ -147,7 +147,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{FF498306-2 build\test\TestPackageProjects.props = build\test\TestPackageProjects.props EndProjectSection EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Core.MSBuild", "src\Microsoft.DotNet.Core.MSBuild\Microsoft.DotNet.Core.MSBuild.xproj", "{556554CA-6EC9-4007-A2C3-AB03DCF8F741}" +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Core.Sdk", "src\Microsoft.DotNet.Core.MSBuild\Microsoft.DotNet.Core.Sdk.xproj", "{556554CA-6EC9-4007-A2C3-AB03DCF8F741}" EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.DotNet.Core.Build.Tasks", "src\Microsoft.DotNet.Core.Build.Tasks\Microsoft.DotNet.Core.Build.Tasks.xproj", "{E8E7D24B-4830-4662-80A8-255D6FE3B0BE}" EndProject diff --git a/src/Microsoft.DotNet.Core.MSBuild/Microsoft.DotNet.Core.MSBuild.xproj b/src/Microsoft.DotNet.Core.MSBuild/Microsoft.DotNet.Core.Sdk.xproj similarity index 100% rename from src/Microsoft.DotNet.Core.MSBuild/Microsoft.DotNet.Core.MSBuild.xproj rename to src/Microsoft.DotNet.Core.MSBuild/Microsoft.DotNet.Core.Sdk.xproj diff --git a/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.MSBuild.props b/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.Sdk.props similarity index 64% rename from src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.MSBuild.props rename to src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.Sdk.props index 4edfef47f..03ea8f6f0 100644 --- a/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.MSBuild.props +++ b/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.Sdk.props @@ -1,32 +1,3 @@ - - - - - - @@ -64,6 +35,15 @@ TRACE + + + true + true + + + + + true diff --git a/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.MSBuild.targets b/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.Sdk.targets similarity index 79% rename from src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.MSBuild.targets rename to src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.Sdk.targets index 50df9b056..41ef7ce7a 100644 --- a/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.MSBuild.targets +++ b/src/Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/Microsoft.DotNet.Core.Sdk.targets @@ -19,15 +19,15 @@ - - NetCorePreCoreBuild; $(CoreBuildDependsOn); - NetCorePostCoreBuild + GenerateDependencyFile; + GenerateRuntimeConfigurationFiles - + @@ -42,10 +42,12 @@ OutputType="$(OutputType)" /> - + - + + + diff --git a/src/dotnet/14.1/Imports/Microsoft.Common.props/ImportBefore/Microsoft.NETCore.ImportBefore.props b/src/dotnet/14.1/Imports/Microsoft.Common.props/ImportBefore/Microsoft.NETCore.ImportBefore.props new file mode 100644 index 000000000..77f2e496a --- /dev/null +++ b/src/dotnet/14.1/Imports/Microsoft.Common.props/ImportBefore/Microsoft.NETCore.ImportBefore.props @@ -0,0 +1,17 @@ + + + + $(MSBuildExtensionsPath)\NETCore\Microsoft.DotNet.Core.Sdk.props + + + diff --git a/src/dotnet/14.1/Microsoft.Common.Targets/ImportAfter/Microsoft.NETCore.ImportAfter.targets b/src/dotnet/14.1/Microsoft.Common.Targets/ImportAfter/Microsoft.NETCore.ImportAfter.targets new file mode 100644 index 000000000..10dd74d67 --- /dev/null +++ b/src/dotnet/14.1/Microsoft.Common.Targets/ImportAfter/Microsoft.NETCore.ImportAfter.targets @@ -0,0 +1,17 @@ + + + + $(MSBuildExtensionsPath)\NETCore\Microsoft.DotNet.Core.Sdk.targets + + + diff --git a/src/dotnet/project.json b/src/dotnet/project.json index 54a202a67..347ea9532 100644 --- a/src/dotnet/project.json +++ b/src/dotnet/project.json @@ -24,7 +24,12 @@ } }, "publishOptions": { - "include": "14.1/**" + "include": [ + "14.1/**" + ], + "mappings": { + "NETCore/": "../Microsoft.DotNet.Core.MSBuild/build/netstandard1.0/*" + } }, "dependencies": { "NuGet.Commands": {