diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 826b10649c8714..3900b9babe4229 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -51,75 +51,6 @@ Debug $(BuildTargetFramework)-$(TargetOS)-$(Configuration)-$(TargetArchitecture) - - - - - true - win - - - - - true - unix - - - - - true - true - linux - - - - - true - true - true - android - - - - - true - true - osx - - - - - true - true - ios - - - - - true - true - freebsd - - - - - true - true - netbsd - - - - - true - true - - - - - true - - - @@ -208,13 +139,6 @@ $(RuntimeOS)-$(TargetArchitecture) - - - true - true - true - - true @@ -239,6 +163,7 @@ + @@ -314,9 +239,7 @@ false $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'runtime', '$(BuildSettings)')) - $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'ref')) $([MSBuild]::NormalizeDirectory('$(RefRootPath)', '$(BuildTargetFramework)')) - $([MSBuild]::NormalizeDirectory('$(RefRootPath)', '$(TargetFramework)')) $([MSBuild]::NormalizeDirectory('$(RefRootPath)', 'netstandard2.0')) $([MSBuild]::NormalizeDirectory('$(RefRootPath)', 'netstandard2.1')) $([MSBuild]::NormalizeDirectory('$(RefRootPath)', '$(NetFrameworkCurrent)')) @@ -348,9 +271,6 @@ $(BaseOutputPath)$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)\ $(BaseOutputPath)$(TargetFramework)-$(Configuration)\ - $([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(MSBuildProjectName)')) - $(BaseIntermediateOutputPath)$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)\ - $(BaseIntermediateOutputPath)$(TargetFramework)-$(Configuration)\ $(AdditionalBuildTargetFrameworks);netstandard2.0 diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets index 0da3b501d4e626..98f552d92ae339 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -22,6 +22,7 @@ $(TestStrongNameKeyId) + diff --git a/src/libraries/intellisense.targets b/src/libraries/intellisense.targets new file mode 100644 index 00000000000000..816f787e7541de --- /dev/null +++ b/src/libraries/intellisense.targets @@ -0,0 +1,80 @@ + + + + <_UnsupportedTargetFrameworkError> + + + + + + + + <_OriginalTargetFramework>$(TargetFramework) + $(TargetFramework.SubString($([MSBuild]::Add($(TargetFramework.IndexOf('-')), 1)))) + $(TargetFramework.SubString(0, $(TargetFramework.IndexOf('-')))) + + + + + <_ShortFrameworkIdentifier>$(TargetFramework.TrimEnd('.0123456789')) + <_ShortFrameworkVersion>$(TargetFramework.Substring($(_ShortFrameworkIdentifier.Length))) + + + + + v$(_ShortFrameworkVersion) + + + + + v$(_ShortFrameworkVersion[0]).0 + v$(_ShortFrameworkVersion[0]).$(_ShortFrameworkVersion[1]) + v$(_ShortFrameworkVersion[0]).$(_ShortFrameworkVersion[1]).$(_ShortFrameworkVersion[2]) + + + + + .NETStandard + .NETCoreApp + + + .NETFramework + .NETCoreApp + + + + + <_UnsupportedTargetFrameworkError>true + + + + + + $(IntermediateOutputPath)$(MSBuildProjectName).AssemblyInfo$(DefaultLanguageSourceExtension) + + + + $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion),Profile=$(TargetFrameworkProfile) + $(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion) + + + + + $(IntermediateOutputPath)$(MSBuildProjectName).assets.cache + $([MSBuild]::NormalizePath($(MSBuildProjectDirectory), $(ProjectAssetsCacheFile))) + $(TargetFrameworkMoniker) + + + diff --git a/src/libraries/targetframework.props b/src/libraries/targetframework.props new file mode 100644 index 00000000000000..d0c0182d16c9e9 --- /dev/null +++ b/src/libraries/targetframework.props @@ -0,0 +1,85 @@ + + + + + true + win + + + + + true + unix + + + + + true + true + linux + + + + + true + true + true + android + + + + + true + true + osx + + + + + true + true + ios + + + + + true + true + freebsd + + + + + true + true + netbsd + + + + + true + true + + + + + true + + + + + + true + true + true + + + + $([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'ref')) + $([MSBuild]::NormalizeDirectory('$(RefRootPath)', '$(TargetFramework)')) + $([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(MSBuildProjectName)')) + $(BaseIntermediateOutputPath)$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)\ + $(BaseIntermediateOutputPath)$(TargetFramework)-$(Configuration)\ + + +