Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoslund committed Jun 17, 2020
1 parent 9dc0f6b commit 3822afc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ Copyright (c) .NET Foundation. All rights reserved.

<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0))">
<_EnableDefaultWindowsPlatform Condition="'$(_EnableDefaultWindowsPlatform)' == ''" >false</_EnableDefaultWindowsPlatform>
<UseOSWinMdReferences>false</UseOSWinMdReferences>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard' And '$(NETStandardMaximumVersion)' == ''">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public void It_implicitly_defines_compilation_constants_for_the_target_framework
definedConstants.Should().BeEquivalentTo(new[] { "DEBUG", "TRACE" }.Concat(expectedDefines).ToArray());
}

[RequiresMSBuildVersionTheory("16.7.1")]
[RequiresMSBuildVersionTheory("16.7")]
[InlineData("net5.0", new[] { "NETCOREAPP3_1", "NET5_0" })]
[InlineData("net6.0", new[] { "NETCOREAPP3_1", "NET5_0", "NET6_0" })]
public void It_implicitly_defines_compilation_constants_for_the_target_framework_with_backwards_compatibility(string targetFramework, string[] expectedDefines)
Expand Down Expand Up @@ -502,7 +502,7 @@ public void It_fails_gracefully_if_targetframework_should_be_targetframeworks(bo
$"The TargetFramework value '{targetFramework}' is not valid. To multi-target, use the 'TargetFrameworks' property instead");
}

[RequiresMSBuildVersionTheory("16.7.1")]
[RequiresMSBuildVersionTheory("16.7")]
[InlineData("net5.0", false)]
[InlineData("netcoreapp3.1", true)]
public void It_defines_target_platform_defaults_correctly(string targetFramework, bool defaultsDefined)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void It_implicitly_defines_compilation_constants_for_the_configuration(st
definedConstants.Should().BeEquivalentTo(expectedDefines.Concat(new[] { "PLATFORM=\"AnyCPU\"", "NETSTANDARD=-1", "NETSTANDARD1_5=-1" }));
}

[RequiresMSBuildVersionTheory("16.7.1")]
[RequiresMSBuildVersionTheory("16.7")]
[InlineData(".NETStandard,Version=v1.0", new[] { "NETSTANDARD=-1", "NETSTANDARD1_0=-1", "_MyType=\"Empty\"" }, false)]
[InlineData("netstandard1.3", new[] { "NETSTANDARD=-1", "NETSTANDARD1_3=-1", "_MyType=\"Empty\"" }, false)]
[InlineData("netstandard1.6", new[] { "NETSTANDARD=-1", "NETSTANDARD1_6=-1", "_MyType=\"Empty\"" }, false)]
Expand Down

0 comments on commit 3822afc

Please sign in to comment.