Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing intellisense in vscode for src and ref projects #34025

Merged
merged 11 commits into from
Mar 31, 2020
Merged

Fixing intellisense in vscode for src and ref projects #34025

merged 11 commits into from
Mar 31, 2020

Conversation

Anipik
Copy link
Contributor

@Anipik Anipik commented Mar 24, 2020

Related to #33427

The intellisense in vscode was broken in vscode. This change fixes it for src and ref project.
The tests project require some more work to get it fixed.

eng/intellisense.targets Outdated Show resolved Hide resolved
eng/intellisense.targets Outdated Show resolved Hide resolved
@Anipik Anipik closed this Mar 27, 2020
@Anipik Anipik reopened this Mar 27, 2020
Comment on lines 59 to 64
<PropertyGroup>
<RefPath>$([MSBuild]::NormalizeDirectory('$(RefRootPath)', '$(TargetFramework)'))</RefPath>
<BaseIntermediateOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(MSBuildProjectName)'))</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath Condition="'$(TargetFrameworkSuffix)' == ''">$(BaseIntermediateOutputPath)$(TargetFramework)-$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are also duplicated with Directory.Build.props, why didn't you move to shared props file?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BaseIntermediateOutputPath doesn't seem to need redefining.

Just a thought here: what if we chose a convention for IntermediateOutputPath such that it evaluated to the same thing regardless of if the TFM stripping happened or not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently tfm in runtime repo refers to just tfm without the rid. we can expose a property which tfm-rid if rid is present and tfm otherwise.

@Anipik
Copy link
Contributor Author

Anipik commented Mar 31, 2020

@ericstj @safern @ViktorHofer can you take a look here ? this one is ready for review

src/libraries/Directory.Build.props Show resolved Hide resolved
@@ -348,9 +271,6 @@
<!-- setting the output paths -->
<OutputPath>$(BaseOutputPath)$(TargetFramework)-$(TargetFrameworkSuffix)-$(Configuration)\</OutputPath>
<OutputPath Condition="'$(TargetFrameworkSuffix)' == ''">$(BaseOutputPath)$(TargetFramework)-$(Configuration)\</OutputPath>
<BaseIntermediateOutputPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsObjDir)', '$(MSBuildProjectName)'))</BaseIntermediateOutputPath>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should remain I think since it doesn’t need TargetFramework.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for move is same as #34025 (comment)

It will be nice to keep all IntermediateOutput path properties together.

src/libraries/intellisense.targets Show resolved Hide resolved
@Anipik Anipik merged commit 9a14b86 into dotnet:master Mar 31, 2020
@Anipik Anipik deleted the intell2 branch May 8, 2020 19:49
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants