-
Notifications
You must be signed in to change notification settings - Fork 389
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
Old project type GUID are used for new projects/solutions #9601
Comments
This is not specific to .NET9. It apparently happens with any SDK-style project. I've been fighting this for years now. The easiest way to fix the issue is to remove the project from the solution and re-add it. When it is added, it gets the correct GUID. I hope the new |
probably it was true for old version of visual studio. With the latest update (17.2.2) also re-adding the project to the sln uses the "bad" GUID... For me the only workaround is to manually edit the .sln file (I've also created a before build target that issue a compilation warning in case my .sln file contains an old GUID...) |
Oh really... I see, they managed to make it worse then 😅 Thanks for clarifying that. |
The back-and-forth between project type GUIDs for SDK-style projects should now be resolved, as part of work for SLNX. See #9509. We now aim to use the same GUID everywhere (the legacy GUID), which should make things simpler to reason about. |
@drewnoakes would you mind sharing a link to where the I'd like to track that if possible. I see this item on the |
I don't know if there's a main issue. The work is being done across several products, from MSBuild to VS to CLI. |
Visual Studio Version
Version 17.12.2
Summary
C# projects targeting .net 9 are added to sln using "old" project type GUIDs
Steps to Reproduce
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = ...
Expected Behavior
the project type GUID is expected to be
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = ...
as documented here https://github.com/dotnet/project-system/blob/32c88de3973358cb38d78f78d7c7d1579fc0b4c6/docs/opening-with-new-project-system.md#project-type-guidsActual Behavior
the project type GUID is
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = ...
User Impact
don't know if it impacts someway.
But in my real case .sln i have hundred of projects with
{9A19103F-16F7-4668-BE54-9A1E7A4F7556}
and now (adding new projects with the just updated visual studio) i get the (bad?){FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
.Does it have any impact? I don't know but just in case i'm manually "adjusting" the .sln file...
The text was updated successfully, but these errors were encountered: