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

Always honor ProjectGuid, if provided #615

Merged
merged 5 commits into from
Oct 9, 2024

Conversation

snorrk
Copy link
Contributor

@snorrk snorrk commented Oct 9, 2024

GetProjectGuid will always create a new ProjectGuid for SDK-style projects, regardless of whether the project contains a ProjectGuid property or not.

This causes issues in solutions containing both SDK-style C# projects and C++/CLI projects (which are always legacy style), since the creation of a random new ProjectGuid prevents project dependencies from being correctly formed in the solution.

This PR updates GetProjectGuid to honor ProjectGuid properties defined in SDK-style projects, allowing SDK-style projects to contain manually defined ProjectGuid properties that match the Project attribute in ProjectReferences defined in legacy projects.

@snorrk snorrk force-pushed the user/snbeck/projectguid branch from df37edd to 77236cf Compare October 9, 2024 20:46
@snorrk
Copy link
Contributor Author

snorrk commented Oct 9, 2024

Pending #616

@mruxmohan4 mruxmohan4 merged commit a4a2396 into microsoft:main Oct 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants