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

Handling of Duplicate References in Solution Files #47860

Open
v-wuzhai opened this issue Mar 25, 2025 · 1 comment
Open

Handling of Duplicate References in Solution Files #47860

v-wuzhai opened this issue Mar 25, 2025 · 1 comment

Comments

@v-wuzhai
Copy link
Member

Describe the bug

The current behavior is that when duplicate references are present in solution files, vs-solutionpersistence removes all these duplicate references. This behavior can lead to unexpected results and management confusion.

Current Behavior:When duplicate project references are present in solution files, all duplicate references are automatically removed. This causes the test WhenDuplicateReferencesArePresentItRemovesThemAll to fail.

Expected Behavior

Should be able to recognize and handle duplicate references, or provide a clear error message indicating the presence of duplicate references, rather than simply removing them.

@edvilme
Copy link
Member

edvilme commented Mar 25, 2025

I can look into this, but I think this is more of a vs-solutionpersistence issue, we could maybe give a warning?

@nagilson nagilson added Test Debt and removed untriaged Request triage from a team member Area-NetSDK labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants