From: Anirudh Agnihotry Date: Tue, 31 Mar 2020 22:30:00 +0000 (-0700) Subject: Fixing intellisense in vscode for src and ref projects (#34025) X-Git-Tag: submit/tizen/20210909.063632~8827 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a14b86ae54ef726819a7be34dac114583d83189;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fixing intellisense in vscode for src and ref projects (#34025) * fixing intel for ref and src * fixing ref and src intell * renaming props file * remove extra property * fixing the intellisense in tests * add extra line * addressing feedback * revert shim path * fix allconfig restore * adding comment --- diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props index 1a86cc8dee6..167f5100e3a 100644 --- a/src/libraries/Directory.Build.props +++ b/src/libraries/Directory.Build.props @@ -50,75 +50,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 - - - @@ -207,13 +138,6 @@ $(RuntimeOS)-$(TargetArchitecture) - - - true - true - true - - true @@ -238,6 +162,7 @@ + @@ -316,9 +241,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)')) @@ -350,9 +273,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 13419c86da4..02fd8c7f1d2 100644 --- a/src/libraries/Directory.Build.targets +++ b/src/libraries/Directory.Build.targets @@ -23,6 +23,7 @@ $(TestStrongNameKeyId) + diff --git a/src/libraries/intellisense.targets b/src/libraries/intellisense.targets new file mode 100644 index 00000000000..816f787e754 --- /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 00000000000..d0c0182d16c --- /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)\ + + +