Skip to content

Update MicrosoftPrivateIntellisensePackage and XmlDocFileRoot - #38109

Merged
safern merged 3 commits into
dotnet:masterfrom
carlossanlop:intellisense
Jun 19, 2020
Merged

safern merged 3 commits into
dotnet:masterfrom
carlossanlop:intellisense

Conversation

@carlossanlop

Copy link
Copy Markdown
Contributor

XmlDocFileRoot was defined in two places: packaging.props and docs.targets.
Moved it to a higher level to ensure it's only defined once, in Directory.Build.props. Made sure to define it after NuGetPackageRoot is defined.
Also made sure the folder it reads is net instead of netcoreapp, because the Docs build saves the .NET 5.0 intellisense files in the net folder, and the .NET 3.1 intellisense files in the netcoreapp folder.
Updated the nupkg to consume to the latest available version in the feed 20200602.3, which contains the Preview5 APIs.

I will make a similar change in the Preview6 branch today.
Thanks @safern for your help in figuring out what changes needed to be made.

@ghost

ghost commented Jun 18, 2020

Copy link
Copy Markdown

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

Comment thread src/libraries/Directory.Build.props Resolved
Comment thread eng/restore/docs.targets Resolved
Comment thread eng/Versions.props Resolved
@carlossanlop

Copy link
Copy Markdown
Contributor Author

Found a build error locally. Santi and I are investigating.

@safern

safern commented Jun 18, 2020

Copy link
Copy Markdown
Member

It seems like the only shared location were we could define XmlDocFileRoot is in Versions.props -- because this is used in pkgproj and Build.proj restore.

Comment thread eng/Versions.props Resolved
Co-authored-by: Santiago Fernandez Madero <[email protected]>
@carlossanlop
carlossanlop requested a review from safern June 18, 2020 22:51
Comment thread eng/Versions.props Resolved
@ViktorHofer

Copy link
Copy Markdown
Member

For such shared properties we use Configurations.props.

@safern

safern commented Jun 19, 2020 •

Copy link
Copy Markdown
Member

We can’t use Configurations.props. We tried it already.

The reason for that is that when we’re building a pkgproj; arcade is imported after Configurations.props is imported and NugetPackageRoot is not defined at the moment this property is defined.

We disable importing arcade from the root for anything under src/libraries. The only place I could think of was Versions.props where in both code paths (Build.proj restore and pkgproj build) arcade would already had defined NugetPackageRoot

@ViktorHofer

Copy link
Copy Markdown
Member

Makes sense. We should enable the root Arcade import. The reason I had to disable that was because we relied on the old configuration system. I believe there aren't any blockers anymore.

@safern

safern commented Jun 19, 2020

Copy link
Copy Markdown
Member

Cool. Can we do that as part of another change? I believe there was an issue for that, right? I just don’t want to complicate this change.

@ViktorHofer

Copy link
Copy Markdown
Member

Sure

@carlossanlop
carlossanlop deleted the intellisense branch February 7, 2024 06:43
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.

3 participants