diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets index 3e7346f0abb9..8b42b2d6e847 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.BeforeCommon.targets @@ -6,7 +6,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and created a backup copy. Incorrect changes to this file will make it impossible to load or build your projects from the command-line or the IDE. -Copyright (c) .NET Foundation. All rights reserved. +Copyright (c) .NET Foundation. All rights reserved. *********************************************************************************************** --> @@ -18,11 +18,16 @@ Copyright (c) .NET Foundation. All rights reserved. - + - false + false - + <_IsExecutable Condition="'$(OutputType)' == 'Exe' or '$(OutputType)'=='WinExe'">true @@ -36,14 +41,14 @@ Copyright (c) .NET Foundation. All rights reserved. - + - @@ -60,6 +65,7 @@ Copyright (c) .NET Foundation. All rights reserved. --> + <_IsNETCoreOrNETStandard Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">true <_IsNETCoreOrNETStandard Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">true @@ -90,7 +96,7 @@ Copyright (c) .NET Foundation. All rights reserved. is not needed for NETStandard or NETCore since references come from NuGet packages--> false - + $(PreserveCompilationContext) @@ -112,7 +118,7 @@ Copyright (c) .NET Foundation. All rights reserved. on the TargetFramework. --> - + <_SDKImplicitReference Include="System"/> @@ -122,7 +128,7 @@ Copyright (c) .NET Foundation. All rights reserved. - + <_SDKImplicitReference Include="System.Core" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '3.5' "/> <_SDKImplicitReference Include="System.Runtime.Serialization" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '3.5' "/> @@ -133,7 +139,7 @@ Copyright (c) .NET Foundation. All rights reserved. <_SDKImplicitReference Include="System.IO.Compression.FileSystem" Condition=" '$(_TargetFrameworkVersionWithoutV)' >= '4.5' "/> - + @@ -187,7 +193,7 @@ Copyright (c) .NET Foundation. All rights reserved. <_ImplicitDefineConstant Include="$(_PlatformIdentifierForImplicitDefine)$(_PlatformVersionForImplicitDefine)" /> - +