From d4153815d52014a075e207f2cf7c07743fab6059 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Wed, 25 Jan 2017 21:19:44 -0600 Subject: [PATCH] Update the CLI to netcoreapp2.0. --- Microsoft.DotNet.Cli.sln | 1 + build.proj | 11 ++---- build/Microsoft.DotNet.Cli.Compile.targets | 39 +++++++++++++++---- ...rosoft.DotNet.Cli.DependencyVersions.props | 2 + build/Microsoft.DotNet.Cli.Prepare.targets | 8 ++-- build/Microsoft.DotNet.Cli.Test.targets | 2 +- .../Microsoft.DotNet.Cli.LzmaArchive.targets | 4 +- .../Microsoft.DotNet.Cli.Crossgen.targets | 6 +-- dir.props | 2 + ...crosoft.DotNet.ProjectJsonMigration.csproj | 4 +- .../MulticoreJitProfilePathCalculator.cs | 2 +- src/dotnet/dotnet.csproj | 19 ++------- src/redist/redist.csproj | 12 +++--- src/tool_roslyn/tool_roslyn.csproj | 9 ++++- .../ArgumentForwardingTests.csproj | 15 ++----- .../ArgumentsReflector.csproj | 12 +----- test/EndToEnd/EndToEnd.csproj | 21 ++-------- ...osoft.DotNet.Cli.Sln.Internal.Tests.csproj | 8 ++-- .../GivenAProjectToolsCommandResolver.cs | 2 +- .../Microsoft.DotNet.Cli.Utils.Tests.csproj | 24 ++---------- ...crosoft.DotNet.Configurer.UnitTests.csproj | 21 ++-------- ...t.DotNet.ProjectJsonMigration.Tests.csproj | 18 ++------- ...rosoft.DotNet.Tools.Tests.Utilities.csproj | 13 +------ .../Msbuild.Tests.Utilities.csproj | 12 +----- .../binding-redirects.Tests.csproj | 6 +-- test/crossgen.Tests/crossgen.Tests.csproj | 14 ++----- test/dir.props | 7 ++++ .../dotnet-add-package.Tests.csproj | 6 +-- .../dotnet-add-reference.Tests.csproj | 16 ++------ .../dotnet-build.Tests.csproj | 20 ++-------- .../dotnet-help.Tests.csproj | 8 ++-- .../dotnet-list-reference.Tests.csproj | 19 ++------- .../dotnet-migrate.Tests.csproj | 18 ++------- .../dotnet-msbuild.Tests.csproj | 21 ++-------- test/dotnet-new.Tests/dotnet-new.Tests.csproj | 18 ++------- .../dotnet-nuget.UnitTests.csproj | 21 ++-------- .../dotnet-pack.Tests.csproj | 21 ++-------- .../dotnet-publish.Tests.csproj | 21 ++-------- .../dotnet-remove-reference.Tests.csproj | 19 ++------- .../dotnet-restore.Tests.csproj | 18 ++------- test/dotnet-run.Tests/dotnet-run.Tests.csproj | 21 ++-------- .../dotnet-sln-add.Tests.csproj | 8 ++-- .../dotnet-sln-list.Tests.csproj | 8 ++-- .../dotnet-sln-remove.Tests.csproj | 8 ++-- .../dotnet-test.Tests.csproj | 21 ++-------- .../dotnet-vstest.Tests.csproj | 21 ++-------- .../GivenThatIWantToManageMulticoreJIT.cs | 2 +- test/dotnet.Tests/dotnet.Tests.csproj | 21 ++-------- .../msbuild.IntegrationTests.csproj | 18 ++------- tools/Archiver/Archiver.csproj | 10 ++--- .../MigrationDefaultsConstructor.csproj | 11 ++---- 51 files changed, 178 insertions(+), 491 deletions(-) create mode 100644 test/dir.props diff --git a/Microsoft.DotNet.Cli.sln b/Microsoft.DotNet.Cli.sln index 6f974fa00..0ba979afd 100644 --- a/Microsoft.DotNet.Cli.sln +++ b/Microsoft.DotNet.Cli.sln @@ -26,6 +26,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{89905EC4 ProjectSection(SolutionItems) = preProject build\Microsoft.DotNet.Cli.BundledSdks.props = build\Microsoft.DotNet.Cli.BundledSdks.props build\Microsoft.DotNet.Cli.Compile.targets = build\Microsoft.DotNet.Cli.Compile.targets + build\Microsoft.DotNet.Cli.DependencyVersions.props = build\Microsoft.DotNet.Cli.DependencyVersions.props build\Microsoft.DotNet.Cli.Monikers.props = build\Microsoft.DotNet.Cli.Monikers.props build\Microsoft.DotNet.Cli.Package.targets = build\Microsoft.DotNet.Cli.Package.targets build\Microsoft.DotNet.Cli.Prepare.targets = build\Microsoft.DotNet.Cli.Prepare.targets diff --git a/build.proj b/build.proj index 8e9fd472e..d630ae8db 100644 --- a/build.proj +++ b/build.proj @@ -17,14 +17,11 @@ Debug - preview + master Microsoft.NETCore.App - 1.0.3 - 1.0.1 - 1.0.1 - - 1.0.5 - 1.0.5 + $(CLI_SharedFrameworkVersion) + $(CLI_SharedFrameworkVersion) + $(CLI_SharedFrameworkVersion) .exe diff --git a/build/Microsoft.DotNet.Cli.Compile.targets b/build/Microsoft.DotNet.Cli.Compile.targets index 9718ecf7d..b25a054ac 100644 --- a/build/Microsoft.DotNet.Cli.Compile.targets +++ b/build/Microsoft.DotNet.Cli.Compile.targets @@ -81,10 +81,13 @@ - - - - + + + + + + + @@ -98,7 +101,7 @@ - + @@ -146,7 +149,11 @@ + AssetPath="$(BinaryToCorehostifyRelDir)/%(RuntimeTargetsAssetsToRemoveFromDeps.Identity).exe" /> + + @@ -161,6 +168,7 @@ + - + + + + + + + + + + @@ -211,6 +232,10 @@ @(CompileStageSdkDirectories); $(SharedFrameworkNameVersionPath)" /> + + + + 2.0.0-beta-001386-00 + 1.2.0-beta-24904-03 15.1.0-preview-000523-01 2.0.0-rc3-61212-03 1.0.0-alpha-20170117-4 diff --git a/build/Microsoft.DotNet.Cli.Prepare.targets b/build/Microsoft.DotNet.Cli.Prepare.targets index 4c31151c4..aa6f9a4c8 100644 --- a/build/Microsoft.DotNet.Cli.Prepare.targets +++ b/build/Microsoft.DotNet.Cli.Prepare.targets @@ -117,10 +117,10 @@ - release/1.1.0 - 1.1.0 - 1.1.0 - 1.1.0 + preview + 1.0.3 + 1.0.1 + 1.0.1 dotnet-host-$(ProductMonikerRid).$(AdditionalSharedHostVersion)$(InstallerExtension) diff --git a/build/Microsoft.DotNet.Cli.Test.targets b/build/Microsoft.DotNet.Cli.Test.targets index 15744a5c3..b968033cc 100644 --- a/build/Microsoft.DotNet.Cli.Test.targets +++ b/build/Microsoft.DotNet.Cli.Test.targets @@ -38,7 +38,7 @@ EnvironmentVariables=$(RunTestEnvironmentVariables); TestProject=%(TestProjects.Identity); TestResultXmlDir=$(TestResultXmlDir); - ToolPath=$(Stage0Directory); + ToolPath=$(Stage2Directory); WorkingDirectory=$([System.IO.Directory]::GetParent(%(TestProjects.Identity))) diff --git a/build/compile/Microsoft.DotNet.Cli.LzmaArchive.targets b/build/compile/Microsoft.DotNet.Cli.LzmaArchive.targets index 06456c755..06cae3ffc 100644 --- a/build/compile/Microsoft.DotNet.Cli.LzmaArchive.targets +++ b/build/compile/Microsoft.DotNet.Cli.LzmaArchive.targets @@ -93,12 +93,12 @@ - - + runtime.$(CoreCLRRid).microsoft.netcore.jit runtime.$(CoreCLRRid).microsoft.netcore.runtime.coreclr - $(NuGetPackagesDir)/$(CoreCLRPackageName)/$(CoreCLRVersion)/runtimes/$(CoreCLRRid)/lib/netstandard1.0 - $(NuGetPackagesDir)/$(CrossGenPackageName)/$(CoreCLRVersion)/tools/crossgen$(ExeExtension) - $(NuGetPackagesDir)/$(LibCLRJitPackageName)/$(CoreCLRVersion)/runtimes/$(CoreCLRRid)/native/$(DynamicLibPrefix)clrjit$(DynamicLibExtension) + $(NuGetPackagesDir)/$(CoreCLRPackageName)/$(CLI_CoreCLRVersion)/runtimes/$(CoreCLRRid)/lib/netstandard1.0 + $(NuGetPackagesDir)/$(CrossGenPackageName)/$(CLI_CoreCLRVersion)/tools/crossgen$(ExeExtension) + $(NuGetPackagesDir)/$(LibCLRJitPackageName)/$(CLI_CoreCLRVersion)/runtimes/$(CoreCLRRid)/native/$(DynamicLibPrefix)clrjit$(DynamicLibExtension) diff --git a/dir.props b/dir.props index c0392bbda..f0188b3a0 100644 --- a/dir.props +++ b/dir.props @@ -20,5 +20,7 @@ master $(VersionMajor).$(VersionMinor).$(VersionPatch)-$(ReleaseSuffix) + netcoreapp2.0 + diff --git a/src/Microsoft.DotNet.ProjectJsonMigration/Microsoft.DotNet.ProjectJsonMigration.csproj b/src/Microsoft.DotNet.ProjectJsonMigration/Microsoft.DotNet.ProjectJsonMigration.csproj index 06346c987..e9f009b92 100644 --- a/src/Microsoft.DotNet.ProjectJsonMigration/Microsoft.DotNet.ProjectJsonMigration.csproj +++ b/src/Microsoft.DotNet.ProjectJsonMigration/Microsoft.DotNet.ProjectJsonMigration.csproj @@ -3,7 +3,7 @@ $(CliVersionPrefix) - netcoreapp1.0 + netcoreapp2.0 true ../../tools/Key.snk true @@ -21,7 +21,7 @@ - + $(DefineConstants);RELEASE diff --git a/src/dotnet/MulticoreJitProfilePathCalculator.cs b/src/dotnet/MulticoreJitProfilePathCalculator.cs index 3ffcb17af..6faf51625 100644 --- a/src/dotnet/MulticoreJitProfilePathCalculator.cs +++ b/src/dotnet/MulticoreJitProfilePathCalculator.cs @@ -32,7 +32,7 @@ namespace Microsoft.DotNet.Cli var version = Product.Version; - var rid = RuntimeEnvironment.GetRuntimeIdentifier(); + var rid = PlatformAbstractions.RuntimeEnvironment.GetRuntimeIdentifier(); _multicoreJitProfilePath = Path.Combine(profileRoot, "optimizationdata", version, rid); } diff --git a/src/dotnet/dotnet.csproj b/src/dotnet/dotnet.csproj index c2f1a9fad..133e490b4 100755 --- a/src/dotnet/dotnet.csproj +++ b/src/dotnet/dotnet.csproj @@ -3,13 +3,13 @@ $(CliVersionPrefix) - netcoreapp1.0 + netcoreapp2.0 dotnet Exe ../../tools/Key.snk true true - $(PackageTargetFallback);dotnet5.4 + $(PackageTargetFallback);dotnet5.4 @@ -34,14 +34,11 @@ 4.0.1 - - 4.0.0 - 2.0.0 - 1.0.3 + $(CLI_SharedFrameworkVersion) 4.0.0 @@ -49,18 +46,12 @@ 4.0.0 - - 4.0.0 - 4.1.1 4.1.1 - - 4.1.0 - 4.0.0 Analyzers;Build;ContentFiles;Native;Runtime @@ -76,8 +67,4 @@ - - - $(DefineConstants);RELEASE - diff --git a/src/redist/redist.csproj b/src/redist/redist.csproj index 02884fadb..613c107d5 100644 --- a/src/redist/redist.csproj +++ b/src/redist/redist.csproj @@ -3,13 +3,14 @@ $(CliVersionPrefix) - netcoreapp1.0 + netcoreapp2.0 + $(CLI_SharedFrameworkVersion) true - $(PackageTargetFallback);dotnet5.4 + $(PackageTargetFallback);dotnet5.4 - 1.0.3 + $(CLI_SharedFrameworkVersion) $(CLI_MSBuild_Version) @@ -24,7 +25,7 @@ $(CLI_TestPlatform_Version) - + @@ -36,7 +37,4 @@ - - $(DefineConstants);RELEASE - \ No newline at end of file diff --git a/src/tool_roslyn/tool_roslyn.csproj b/src/tool_roslyn/tool_roslyn.csproj index 3f52caad6..3171191fe 100644 --- a/src/tool_roslyn/tool_roslyn.csproj +++ b/src/tool_roslyn/tool_roslyn.csproj @@ -4,11 +4,12 @@ $(CliVersionPrefix) - netcoreapp1.0 + netcoreapp2.0 + $(CLI_SharedFrameworkVersion) true - + @@ -45,6 +46,10 @@ SectionName="runtimeTargets" AssetPath="runtimes/any/native/%(AssetsToRemoveFromDeps.Identity).exe" /> + + - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) ArgumentForwardingTests Exe - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -32,12 +33,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 @@ -46,10 +41,6 @@ - - $(DefineConstants);RELEASE - - diff --git a/test/ArgumentsReflector/ArgumentsReflector.csproj b/test/ArgumentsReflector/ArgumentsReflector.csproj index 18b1c199a..4ad634f31 100644 --- a/test/ArgumentsReflector/ArgumentsReflector.csproj +++ b/test/ArgumentsReflector/ArgumentsReflector.csproj @@ -2,7 +2,8 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) ArgumentsReflector Exe @@ -14,13 +15,4 @@ - - - 1.0.3 - - - - - $(DefineConstants);RELEASE - diff --git a/test/EndToEnd/EndToEnd.csproj b/test/EndToEnd/EndToEnd.csproj index 5949bf3bc..3cb933826 100644 --- a/test/EndToEnd/EndToEnd.csproj +++ b/test/EndToEnd/EndToEnd.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) EndToEnd Exe - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -26,12 +27,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -39,12 +34,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 @@ -55,8 +44,4 @@ 1.0.1-beta-000933 - - - $(DefineConstants);RELEASE - diff --git a/test/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.csproj b/test/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.csproj index 6b5dc5ebd..ae2dace02 100644 --- a/test/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.csproj +++ b/test/Microsoft.DotNet.Cli.Sln.Internal.Tests/Microsoft.DotNet.Cli.Sln.Internal.Tests.csproj @@ -2,13 +2,14 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true Microsoft.DotNet.Cli.Sln.Internal.Tests ../../tools/test_key.snk true true - $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 @@ -20,9 +21,6 @@ - - 1.0.3 - $(CLI_TestPlatform_Version) diff --git a/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectToolsCommandResolver.cs b/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectToolsCommandResolver.cs index 26640ab59..ab22d015c 100644 --- a/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectToolsCommandResolver.cs +++ b/test/Microsoft.DotNet.Cli.Utils.Tests/GivenAProjectToolsCommandResolver.cs @@ -282,7 +282,7 @@ namespace Microsoft.DotNet.Tests result.Should().NotBeNull(); - result.Args.Should().Contain("--fx-version 1.0.3"); + result.Args.Should().Contain("--fx-version 2.0.0"); } [Fact] diff --git a/test/Microsoft.DotNet.Cli.Utils.Tests/Microsoft.DotNet.Cli.Utils.Tests.csproj b/test/Microsoft.DotNet.Cli.Utils.Tests/Microsoft.DotNet.Cli.Utils.Tests.csproj index 479ce5be6..79d12a9d0 100644 --- a/test/Microsoft.DotNet.Cli.Utils.Tests/Microsoft.DotNet.Cli.Utils.Tests.csproj +++ b/test/Microsoft.DotNet.Cli.Utils.Tests/Microsoft.DotNet.Cli.Utils.Tests.csproj @@ -2,13 +2,14 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) Microsoft.DotNet.Cli.Utils.Tests Exe ../../tools/Key.snk true true - $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 @@ -34,12 +35,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -47,15 +42,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.0.0 - - - 4.1.1 - $(CLI_NuGet_Version) @@ -81,8 +67,4 @@ $(CLI_MSBuild_Version) - - - $(DefineConstants);RELEASE - diff --git a/test/Microsoft.DotNet.Configurer.UnitTests/Microsoft.DotNet.Configurer.UnitTests.csproj b/test/Microsoft.DotNet.Configurer.UnitTests/Microsoft.DotNet.Configurer.UnitTests.csproj index f4d56da4e..d5dc9f695 100644 --- a/test/Microsoft.DotNet.Configurer.UnitTests/Microsoft.DotNet.Configurer.UnitTests.csproj +++ b/test/Microsoft.DotNet.Configurer.UnitTests/Microsoft.DotNet.Configurer.UnitTests.csproj @@ -2,13 +2,14 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true Microsoft.DotNet.Configurer.UnitTests ../../tools/Key.snk true true - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -26,12 +27,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -39,12 +34,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.0.0 - 4.0.0 @@ -55,8 +44,4 @@ 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/Microsoft.DotNet.ProjectJsonMigration.Tests/Microsoft.DotNet.ProjectJsonMigration.Tests.csproj b/test/Microsoft.DotNet.ProjectJsonMigration.Tests/Microsoft.DotNet.ProjectJsonMigration.Tests.csproj index 9732db55b..8ee2cad1a 100644 --- a/test/Microsoft.DotNet.ProjectJsonMigration.Tests/Microsoft.DotNet.ProjectJsonMigration.Tests.csproj +++ b/test/Microsoft.DotNet.ProjectJsonMigration.Tests/Microsoft.DotNet.ProjectJsonMigration.Tests.csproj @@ -2,13 +2,14 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true Microsoft.DotNet.ProjectJsonMigration.Tests ../../tools/test_key.snk true true - $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 @@ -30,12 +31,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -43,9 +38,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 2.2.0-beta4-build3444 @@ -56,8 +48,4 @@ 4.4.0-beta8 - - - $(DefineConstants);RELEASE - diff --git a/test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj b/test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj index 32a322248..cea1f845f 100644 --- a/test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj +++ b/test/Microsoft.DotNet.Tools.Tests.Utilities/Microsoft.DotNet.Tools.Tests.Utilities.csproj @@ -3,13 +3,12 @@ Microsoft.DotNet.Tools.Tests.Utilities Class Library - netcoreapp1.0 - true + netstandard1.5 Microsoft.DotNet.Tools.Tests.Utilities ../../tools/Key.snk true true - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -30,12 +29,4 @@ 1.0.1-beta-000933 - - - - - - - $(DefineConstants);RELEASE - \ No newline at end of file diff --git a/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj b/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj index 9982648ea..352408c0a 100644 --- a/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj +++ b/test/Msbuild.Tests.Utilities/Msbuild.Tests.Utilities.csproj @@ -2,10 +2,10 @@ - netcoreapp1.0 + netcoreapp2.0 true Msbuild.Tests.Utilities - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -21,11 +21,6 @@ true - - - true - - 1.6.0 @@ -43,7 +38,4 @@ $(CLI_MSBuild_Version) - - $(DefineConstants);RELEASE - diff --git a/test/binding-redirects.Tests/binding-redirects.Tests.csproj b/test/binding-redirects.Tests/binding-redirects.Tests.csproj index 9b619c83f..d955f5fa0 100644 --- a/test/binding-redirects.Tests/binding-redirects.Tests.csproj +++ b/test/binding-redirects.Tests/binding-redirects.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true binding-redirects.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -13,7 +14,6 @@ - diff --git a/test/crossgen.Tests/crossgen.Tests.csproj b/test/crossgen.Tests/crossgen.Tests.csproj index 657fc9dbc..70b278143 100644 --- a/test/crossgen.Tests/crossgen.Tests.csproj +++ b/test/crossgen.Tests/crossgen.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true crossgen.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -19,12 +20,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -32,9 +27,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 2.2.0-beta4-build3444 diff --git a/test/dir.props b/test/dir.props new file mode 100644 index 000000000..8d5c8cc42 --- /dev/null +++ b/test/dir.props @@ -0,0 +1,7 @@ + + + + + false + + diff --git a/test/dotnet-add-package.Tests/dotnet-add-package.Tests.csproj b/test/dotnet-add-package.Tests/dotnet-add-package.Tests.csproj index 6a052db05..a8fd8d373 100644 --- a/test/dotnet-add-package.Tests/dotnet-add-package.Tests.csproj +++ b/test/dotnet-add-package.Tests/dotnet-add-package.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-add-package.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -17,7 +18,6 @@ - diff --git a/test/dotnet-add-reference.Tests/dotnet-add-reference.Tests.csproj b/test/dotnet-add-reference.Tests/dotnet-add-reference.Tests.csproj index 09141e8e2..36771d873 100644 --- a/test/dotnet-add-reference.Tests/dotnet-add-reference.Tests.csproj +++ b/test/dotnet-add-reference.Tests/dotnet-add-reference.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-add-reference.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -23,11 +24,6 @@ - - - true - - 15.0.0-preview-20161024-02 @@ -35,9 +31,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 4.1.1 @@ -48,7 +41,4 @@ $(CLI_MSBuild_Version) - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-build.Tests/dotnet-build.Tests.csproj b/test/dotnet-build.Tests/dotnet-build.Tests.csproj index 3efad2804..45bd5be54 100644 --- a/test/dotnet-build.Tests/dotnet-build.Tests.csproj +++ b/test/dotnet-build.Tests/dotnet-build.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-build.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -21,12 +22,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -34,18 +29,9 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-help.Tests/dotnet-help.Tests.csproj b/test/dotnet-help.Tests/dotnet-help.Tests.csproj index a9b94fe86..76086fab0 100644 --- a/test/dotnet-help.Tests/dotnet-help.Tests.csproj +++ b/test/dotnet-help.Tests/dotnet-help.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-help.Tests - $(PackageTargetFallback);dnxcore50;portable-net45+win8 + $(PackageTargetFallback);dnxcore50;portable-net45+win8 @@ -39,9 +40,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - $(CLI_MSBuild_Version) diff --git a/test/dotnet-list-reference.Tests/dotnet-list-reference.Tests.csproj b/test/dotnet-list-reference.Tests/dotnet-list-reference.Tests.csproj index e3c8454f4..eeb875aca 100644 --- a/test/dotnet-list-reference.Tests/dotnet-list-reference.Tests.csproj +++ b/test/dotnet-list-reference.Tests/dotnet-list-reference.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-list-reference.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -23,11 +24,6 @@ - - - true - - 15.0.0-preview-20161024-02 @@ -35,12 +31,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 @@ -48,7 +38,4 @@ 4.0.0 - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-migrate.Tests/dotnet-migrate.Tests.csproj b/test/dotnet-migrate.Tests/dotnet-migrate.Tests.csproj index 3dc1cb000..c90eddde5 100644 --- a/test/dotnet-migrate.Tests/dotnet-migrate.Tests.csproj +++ b/test/dotnet-migrate.Tests/dotnet-migrate.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-migrate.Tests - $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 @@ -34,12 +35,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -47,9 +42,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 2.2.0-beta4-build3444 @@ -60,8 +52,4 @@ 4.4.0-beta8 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj b/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj index 7907fe5be..49b1c6d6e 100644 --- a/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj +++ b/test/dotnet-msbuild.Tests/dotnet-msbuild.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-msbuild.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -32,12 +33,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -45,18 +40,8 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-new.Tests/dotnet-new.Tests.csproj b/test/dotnet-new.Tests/dotnet-new.Tests.csproj index 30e772e67..f48b81ded 100644 --- a/test/dotnet-new.Tests/dotnet-new.Tests.csproj +++ b/test/dotnet-new.Tests/dotnet-new.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-new.Tests - $(PackageTargetFallback);dnxcore50;portable-net45+win8 + $(PackageTargetFallback);dnxcore50;portable-net45+win8 @@ -32,12 +33,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -45,9 +40,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - $(CLI_MSBuild_Version) @@ -55,8 +47,4 @@ 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-nuget.UnitTests/dotnet-nuget.UnitTests.csproj b/test/dotnet-nuget.UnitTests/dotnet-nuget.UnitTests.csproj index 70805d0f3..906e8fde9 100644 --- a/test/dotnet-nuget.UnitTests/dotnet-nuget.UnitTests.csproj +++ b/test/dotnet-nuget.UnitTests/dotnet-nuget.UnitTests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-nuget.UnitTests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -32,12 +33,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -45,12 +40,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 @@ -58,8 +47,4 @@ 4.4.0-beta8 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-pack.Tests/dotnet-pack.Tests.csproj b/test/dotnet-pack.Tests/dotnet-pack.Tests.csproj index e0b97e719..053e79fc6 100644 --- a/test/dotnet-pack.Tests/dotnet-pack.Tests.csproj +++ b/test/dotnet-pack.Tests/dotnet-pack.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-pack.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -26,12 +27,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -39,12 +34,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 4.0.1 @@ -52,8 +41,4 @@ 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-publish.Tests/dotnet-publish.Tests.csproj b/test/dotnet-publish.Tests/dotnet-publish.Tests.csproj index fc1d3fad8..86829a28d 100644 --- a/test/dotnet-publish.Tests/dotnet-publish.Tests.csproj +++ b/test/dotnet-publish.Tests/dotnet-publish.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-publish.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -28,12 +29,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -41,18 +36,8 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-remove-reference.Tests/dotnet-remove-reference.Tests.csproj b/test/dotnet-remove-reference.Tests/dotnet-remove-reference.Tests.csproj index c03c7c6ae..ecace2003 100644 --- a/test/dotnet-remove-reference.Tests/dotnet-remove-reference.Tests.csproj +++ b/test/dotnet-remove-reference.Tests/dotnet-remove-reference.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-remove-reference.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -23,11 +24,6 @@ - - - true - - 15.0.0-preview-20161024-02 @@ -35,12 +31,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 @@ -51,7 +41,4 @@ 4.0.0 - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-restore.Tests/dotnet-restore.Tests.csproj b/test/dotnet-restore.Tests/dotnet-restore.Tests.csproj index 0adf2a9de..5df9c44a1 100644 --- a/test/dotnet-restore.Tests/dotnet-restore.Tests.csproj +++ b/test/dotnet-restore.Tests/dotnet-restore.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-restore.Tests - $(PackageTargetFallback);dnxcore50;portable-net45+win8 + $(PackageTargetFallback);dnxcore50;portable-net45+win8 @@ -32,12 +33,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -45,9 +40,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - $(CLI_MSBuild_Version) @@ -61,8 +53,4 @@ 4.0.0 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-run.Tests/dotnet-run.Tests.csproj b/test/dotnet-run.Tests/dotnet-run.Tests.csproj index 6fa3f48be..4121c3076 100644 --- a/test/dotnet-run.Tests/dotnet-run.Tests.csproj +++ b/test/dotnet-run.Tests/dotnet-run.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-run.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -21,12 +22,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -34,18 +29,8 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-sln-add.Tests/dotnet-sln-add.Tests.csproj b/test/dotnet-sln-add.Tests/dotnet-sln-add.Tests.csproj index 08a73c20e..4bd7c986a 100644 --- a/test/dotnet-sln-add.Tests/dotnet-sln-add.Tests.csproj +++ b/test/dotnet-sln-add.Tests/dotnet-sln-add.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-sln-add.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -23,9 +24,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 2.2.0-beta4-build3444 diff --git a/test/dotnet-sln-list.Tests/dotnet-sln-list.Tests.csproj b/test/dotnet-sln-list.Tests/dotnet-sln-list.Tests.csproj index 9c5727e68..eef3a4b75 100644 --- a/test/dotnet-sln-list.Tests/dotnet-sln-list.Tests.csproj +++ b/test/dotnet-sln-list.Tests/dotnet-sln-list.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-sln-list.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -23,9 +24,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 2.2.0-beta4-build3444 diff --git a/test/dotnet-sln-remove.Tests/dotnet-sln-remove.Tests.csproj b/test/dotnet-sln-remove.Tests/dotnet-sln-remove.Tests.csproj index 50a6d2592..b0584c0e6 100644 --- a/test/dotnet-sln-remove.Tests/dotnet-sln-remove.Tests.csproj +++ b/test/dotnet-sln-remove.Tests/dotnet-sln-remove.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-sln-remove.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -23,9 +24,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - 2.2.0-beta4-build3444 diff --git a/test/dotnet-test.Tests/dotnet-test.Tests.csproj b/test/dotnet-test.Tests/dotnet-test.Tests.csproj index 443a67a9d..53457c8f9 100644 --- a/test/dotnet-test.Tests/dotnet-test.Tests.csproj +++ b/test/dotnet-test.Tests/dotnet-test.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-test.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -21,12 +22,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -34,18 +29,8 @@ 2.2.0-beta4-build1194 - - 1.0.0 - - - 4.1.1 - 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet-vstest.Tests/dotnet-vstest.Tests.csproj b/test/dotnet-vstest.Tests/dotnet-vstest.Tests.csproj index c0ce2eef3..8be6bfa89 100644 --- a/test/dotnet-vstest.Tests/dotnet-vstest.Tests.csproj +++ b/test/dotnet-vstest.Tests/dotnet-vstest.Tests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet-vstest.Tests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -21,12 +22,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -34,18 +29,8 @@ 2.2.0-beta4-build1194 - - 1.0.0 - - - 4.1.1 - 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/test/dotnet.Tests/GivenThatIWantToManageMulticoreJIT.cs b/test/dotnet.Tests/GivenThatIWantToManageMulticoreJIT.cs index 5d4f88493..64e7507be 100644 --- a/test/dotnet.Tests/GivenThatIWantToManageMulticoreJIT.cs +++ b/test/dotnet.Tests/GivenThatIWantToManageMulticoreJIT.cs @@ -104,7 +104,7 @@ namespace Microsoft.DotNet.Tests private static string GetOptimizationRootPath(string version) { - var rid = RuntimeEnvironment.GetRuntimeIdentifier(); + var rid = PlatformAbstractions.RuntimeEnvironment.GetRuntimeIdentifier(); return RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? $@"Microsoft\dotnet\optimizationdata\{version}\{rid}" diff --git a/test/dotnet.Tests/dotnet.Tests.csproj b/test/dotnet.Tests/dotnet.Tests.csproj index c0861efb2..7a6844cf4 100644 --- a/test/dotnet.Tests/dotnet.Tests.csproj +++ b/test/dotnet.Tests/dotnet.Tests.csproj @@ -2,13 +2,14 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true dotnet.Tests ../../tools/Key.snk true true - $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);netstandardapp1.5;dotnet5.4;portable-net451+win8 @@ -46,12 +47,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -59,12 +54,6 @@ 2.2.0-beta4-build1194 - - 1.0.3 - - - 4.1.1 - 2.2.0-beta4-build3444 @@ -75,8 +64,4 @@ 1.0.1-beta-000933 - - - $(DefineConstants);RELEASE - diff --git a/test/msbuild.IntegrationTests/msbuild.IntegrationTests.csproj b/test/msbuild.IntegrationTests/msbuild.IntegrationTests.csproj index 30faccc85..1e7441484 100644 --- a/test/msbuild.IntegrationTests/msbuild.IntegrationTests.csproj +++ b/test/msbuild.IntegrationTests/msbuild.IntegrationTests.csproj @@ -2,10 +2,11 @@ - netcoreapp1.0 + $(CliTargetFramework) + $(CLI_SharedFrameworkVersion) true msbuild.IntegrationTests - $(PackageTargetFallback);dotnet5.4;portable-net451+win8 + $(PackageTargetFallback);dotnet5.4;portable-net451+win8 @@ -21,12 +22,6 @@ - - - true - - - 15.0.0-preview-20161024-02 @@ -34,15 +29,8 @@ 2.2.0-beta4-build1194 - - 1.0.0 - 2.2.0-beta4-build3444 - - - $(DefineConstants);RELEASE - diff --git a/tools/Archiver/Archiver.csproj b/tools/Archiver/Archiver.csproj index 3d673f7ac..a7b11575b 100644 --- a/tools/Archiver/Archiver.csproj +++ b/tools/Archiver/Archiver.csproj @@ -2,7 +2,7 @@ - netcoreapp1.0 + netcoreapp2.0 Exe win7-x64;win7-x86;osx.10.11-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64;debian.8-x64;fedora.23-x64;opensuse.13.2-x64;osx.10.10-x64;rhel.7-x64 @@ -14,11 +14,7 @@ - - 1.0.3 - + + - - $(DefineConstants);RELEASE - \ No newline at end of file diff --git a/tools/MigrationDefaultsConstructor/MigrationDefaultsConstructor.csproj b/tools/MigrationDefaultsConstructor/MigrationDefaultsConstructor.csproj index c801a1d11..f34318cb4 100644 --- a/tools/MigrationDefaultsConstructor/MigrationDefaultsConstructor.csproj +++ b/tools/MigrationDefaultsConstructor/MigrationDefaultsConstructor.csproj @@ -2,24 +2,21 @@ - netcoreapp1.0 + netcoreapp2.0 portable Exe - $(PackageTargetFallback);dnxcore50;portable-net45+win8 + $(PackageTargetFallback);dnxcore50;portable-net45+win8 - + - 1.0.3 + $(CLI_SharedFrameworkVersion) $(CLI_MSBuild_Version) - - $(DefineConstants);RELEASE - \ No newline at end of file