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

feat: Add .slnx solution format metadata generation support #10540

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Feb 14, 2025

This PR add support metadata generation for .slnx solution format.

Note:
It requires Microsoft.Build package version 17.13.9 or later. (Requires .NET 9).
So it works only when running docfx with .NET 9.

Test
It's manually tested by following steps.

  1. Convert samples\seed\dotnet\solution\BuildFromSolution.sln to .slnx format by using Visual Studio.
    2 Running docfx metadata command with generated .slnx solution file.

@yufeih yufeih added the new-feature Makes the pull request to appear in "New Features" section of the next release note label Feb 18, 2025
@yufeih yufeih merged commit bb54fe6 into dotnet:main Feb 18, 2025
10 checks passed
@yufeih
Copy link
Contributor

yufeih commented Feb 18, 2025

Thank you @filzrev

filzrev added a commit to filzrev/docfx that referenced this pull request Feb 18, 2025
…#10540)

* feat: add `.slnx` solution format (Requires .NET 9 or later)

* chore: fix ci error of plantuml test
filzrev added a commit to filzrev/docfx that referenced this pull request Feb 18, 2025
…#10540)

* feat: add `.slnx` solution format (Requires .NET 9 or later)

* chore: fix ci error of plantuml test
@@ -25,6 +25,12 @@
<PackageVersion Include="YamlDotNet" Version="15.3.0" />
</ItemGroup>

<!-- .slnx solution format is supported Microsoft.Build 17.13.9 or later. -->
<ItemGroup>
<PackageVersion Include="Microsoft.Build" Version="[17.11.4]" Condition="'$(TargetFramework)' == 'net8.0'"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to use 17.13.9 for net8.0 so that it can also be supported for net8.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Microsoft.Build 17.13.9 package is published as .NET 9 target.
https://www.nuget.org/packages/Microsoft.Build/17.13.9#supportedframeworks-body-tab

So It's not possible to reference this version from .NET 8 applications.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Makes the pull request to appear in "New Features" section of the next release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants