Merge pull request #5799 from dotnet/UpdateSDK
Update NET.Sdk to 1.1.0-alpha-20170217-4
This commit is contained in:
commit
2b556b8954
12 changed files with 6 additions and 20 deletions
|
@ -4,7 +4,7 @@
|
|||
<CLI_SharedFrameworkVersion>2.0.0-beta-001509-00</CLI_SharedFrameworkVersion>
|
||||
<CLI_MSBuild_Version>15.2.0-preview-000002-01</CLI_MSBuild_Version>
|
||||
<CLI_Roslyn_Version>2.0.0-rc4-61325-08</CLI_Roslyn_Version>
|
||||
<CLI_NETSDK_Version>1.1.0-alpha-20170209-1</CLI_NETSDK_Version>
|
||||
<CLI_NETSDK_Version>1.1.0-alpha-20170228-1</CLI_NETSDK_Version>
|
||||
<!-- non-official NuGet build taken from https://github.com/nuget/nuget.client/tree/release-4.1.0-netstandard2.0 to contain "2.0" TFMs -->
|
||||
<CLI_NuGet_Version>4.0.1-beta-2321</CLI_NuGet_Version>
|
||||
<CLI_WEBSDK_Version>1.0.0-alpha-20170130-3-281</CLI_WEBSDK_Version>
|
||||
|
|
|
@ -88,7 +88,6 @@
|
|||
<VersionPrefix>$(CliVersionPrefix)</VersionPrefix>
|
||||
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
|
||||
<Clean>True</Clean>
|
||||
<MsbuildArgs>/p:RuntimeIdentifier=$(CoreCLRRid)</MsbuildArgs>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="TestAssets/TestPackages/dotnet-desktop-binding-redirects"
|
||||
Condition=" '$(IsDesktopAvailable)' == 'True' ">
|
||||
|
@ -100,7 +99,6 @@
|
|||
<VersionPrefix>$(CliVersionPrefix)</VersionPrefix>
|
||||
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
|
||||
<Clean>True</Clean>
|
||||
<MsbuildArgs>/p:RuntimeIdentifier=$(CoreCLRRid)</MsbuildArgs>
|
||||
</BaseTestPackageProject>
|
||||
<BaseTestPackageProject Include="TestAssets/TestPackages/dotnet-hello/v1/dotnet-hello">
|
||||
<Name>dotnet-hello</Name>
|
||||
|
|
|
@ -28,7 +28,6 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
[WindowsOnlyFact]
|
||||
public void It_resolves_desktop_apps_defaulting_to_Debug_Configuration()
|
||||
{
|
||||
var runtime = DotnetLegacyRuntimeIdentifiers.InferLegacyRestoreRuntimeIdentifier();
|
||||
var configuration = "Debug";
|
||||
|
||||
var testInstance = TestAssets.Get(TestAssetKinds.DesktopTestProjects, "AppWithProjTool2Fx")
|
||||
|
@ -38,14 +37,12 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
|
||||
var restoreCommand = new RestoreCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithRuntime(runtime)
|
||||
.ExecuteWithCapturedOutput()
|
||||
.Should().Pass();
|
||||
|
||||
var buildCommand = new BuildCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithConfiguration(configuration)
|
||||
.WithRuntime(runtime)
|
||||
.WithCapturedOutput()
|
||||
.Execute()
|
||||
.Should().Pass();
|
||||
|
@ -67,7 +64,6 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
[WindowsOnlyFact]
|
||||
public void It_resolves_desktop_apps_when_configuration_is_Debug()
|
||||
{
|
||||
var runtime = DotnetLegacyRuntimeIdentifiers.InferLegacyRestoreRuntimeIdentifier();
|
||||
var configuration = "Debug";
|
||||
|
||||
var testInstance = TestAssets.Get(TestAssetKinds.DesktopTestProjects, "AppWithProjTool2Fx")
|
||||
|
@ -77,14 +73,12 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
|
||||
var restoreCommand = new RestoreCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithRuntime(runtime)
|
||||
.ExecuteWithCapturedOutput()
|
||||
.Should().Pass();
|
||||
|
||||
var buildCommand = new BuildCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithConfiguration(configuration)
|
||||
.WithRuntime(runtime)
|
||||
.Execute()
|
||||
.Should().Pass();
|
||||
|
||||
|
@ -104,7 +98,6 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
[WindowsOnlyFact]
|
||||
public void It_resolves_desktop_apps_when_configuration_is_Release()
|
||||
{
|
||||
var runtime = DotnetLegacyRuntimeIdentifiers.InferLegacyRestoreRuntimeIdentifier();
|
||||
var configuration = "Debug";
|
||||
|
||||
var testInstance = TestAssets.Get(TestAssetKinds.DesktopTestProjects, "AppWithProjTool2Fx")
|
||||
|
@ -114,14 +107,12 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
|
||||
var restoreCommand = new RestoreCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithRuntime(runtime)
|
||||
.ExecuteWithCapturedOutput()
|
||||
.Should().Pass();
|
||||
|
||||
var buildCommand = new BuildCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithConfiguration(configuration)
|
||||
.WithRuntime(runtime)
|
||||
.WithCapturedOutput()
|
||||
.Execute()
|
||||
.Should().Pass();
|
||||
|
@ -143,7 +134,6 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
[WindowsOnlyFact]
|
||||
public void It_resolves_desktop_apps_using_configuration_passed_to_create()
|
||||
{
|
||||
var runtime = DotnetLegacyRuntimeIdentifiers.InferLegacyRestoreRuntimeIdentifier();
|
||||
var configuration = "Debug";
|
||||
|
||||
var testInstance = TestAssets.Get(TestAssetKinds.DesktopTestProjects, "AppWithProjTool2Fx")
|
||||
|
@ -153,14 +143,12 @@ namespace Microsoft.DotNet.Cli.Utils.Tests
|
|||
|
||||
var restoreCommand = new RestoreCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithRuntime(runtime)
|
||||
.ExecuteWithCapturedOutput()
|
||||
.Should().Pass();
|
||||
|
||||
var buildCommand = new BuildCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.WithConfiguration(configuration)
|
||||
.WithRuntime(runtime)
|
||||
.WithCapturedOutput()
|
||||
.Execute()
|
||||
.Should().Pass();
|
||||
|
|
|
@ -148,7 +148,7 @@ namespace Microsoft.DotNet.ProjectJsonMigration.Tests
|
|||
{
|
||||
var testDirectory = Temp.CreateDirectory().Path;
|
||||
var testPJ = new ProjectJsonBuilder(TestAssets)
|
||||
.FromTestAssetBase("TestAppWithMultipleFullFrameworksOnly")
|
||||
.FromTestAssetBase("AppWith4netTfm0Rid")
|
||||
.SaveToDisk(testDirectory);
|
||||
|
||||
var projectContexts = ProjectContext.CreateContextForEachFramework(testDirectory);
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<TargetFramework>$(CliTargetFramework)</TargetFramework>
|
||||
<RuntimeFrameworkVersion>$(CLI_SharedFrameworkVersion)</RuntimeFrameworkVersion>
|
||||
<AssemblyName>Msbuild.Tests.Utilities</AssemblyName>
|
||||
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.4;portable-net451+win8</PackageTargetFallback>
|
||||
</PropertyGroup>
|
||||
|
@ -15,7 +16,6 @@
|
|||
<ProjectReference Include="..\..\src\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NETStandard.Library" Version="1.6.0" />
|
||||
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" />
|
||||
<PackageReference Include="FluentAssertions" Version="4.18.0" />
|
||||
<PackageReference Include="xunit" Version="2.2.0-beta4-build3444" />
|
||||
|
|
|
@ -62,8 +62,8 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
}
|
||||
|
||||
[WindowsOnlyTheory]
|
||||
[InlineData("TestAppMultipleFrameworksNoRuntimes", null)]
|
||||
[InlineData("TestAppWithMultipleFullFrameworksOnly", "net461")]
|
||||
[InlineData("AppWith2Tfm0Rid", null)]
|
||||
[InlineData("AppWith4netTfm0Rid", "net461")]
|
||||
public void ItMigratesAppsWithFullFramework(string projectName, string framework)
|
||||
{
|
||||
var projectDirectory = TestAssets
|
||||
|
|
Loading…
Reference in a new issue