-
Notifications
You must be signed in to change notification settings - Fork 868
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
[Feature Request] Global tool .NET 7 support #8323
Comments
dotnet/sdk#26417 (comment) seems to recommend that .NET tool packages allow major version roll-forward. |
<PropertyGroup>
<RollForward>Major</RollForward>
</PropertyGroup> See dotnet/sdk#3296, https://learn.microsoft.com/dotnet/core/project-sdk/msbuild-props#rollforward. @Apollo3zehn you may be able to override by setting |
Thanks @KalleOlaviNiemitalo! While this in principal works (the build output is generated successfully), it gives me the following warning multiple times: |
Huh so the problem is not only running the DocFX tool within .NET SDK 7, but also running .NET SDK 7 (with MSBuild and NuGet) during |
Why are the NuGet DLLs even included in the DocFX tool package? Searching for "NuGet." in the other DLLs of the tool package does not find any hits, except in Newtonsoft.Json.dll, which contains the text |
Since it happens in a |
DocFX uses MSBuildLocator to find the MSBuild assemblies so that they need not be included in the DocFX package. I hope the NuGet assemblies could be likewise loaded from the Visual Studio or .NET SDK installation rather than shipped with DocFX. |
I found no instance of the |
How about using a Docker? |
I am referencing to the stack trace in my screenshot above. I'll make a minimum sample on Monday to see if the error is related to my project targeting multiple frameworks (including .NET 6). Docker would surely work but I think its a bit overkill and I would first like to understand what's going wrong here. |
@Apollo3zehn DocFX for .NET 6.x is just trying to make way for a first release, so .NET 7.x will only add more work now. Here is a thread on managing multiple .NET Core on Linux, if that will be useful: Many preferred Farvashani's answer, which is detailed here |
@paulushub Thank you, it worked. |
Is your feature request related to a problem? Please describe.
I have only .NET 7 installed on my system (Kubuntu 22.10) by just downloading the SDK. I have also a .NET 6 SDK in a different folder but to make the global tool work I need to do the following:
And then switch back when done.
Describe the solution you'd like
I would be great if the tool is also compiled for .NET 7 so this is not required anymore.
Additional context
https://github.com/dotnet/docfx/releases/tag/v2.60.0-preview.2
The text was updated successfully, but these errors were encountered: