Some dotnet/runtime .sln files are being changed on solution open
See original GitHub issueVisual Studio Version: 16.8.3
Summary:
When opening some .sln files in dotnet/runtime
, which are generated by slngen, some of the files are automatically edited by VS. While some of them don’t exhibit this problem.
Steps to Reproduce:
-
git clone https://github.com/dotnet/runtime.git
-
Open
.\runtime\src\libraries\System.Runtime.Serialization.Formatters\System.Runtime.Serialization.Formatters.sln
-
Look at the
Git Changes
window:
Expected Behavior:
I haven’t made any changes, so the Git Changes
window should not show any changes.
Actual Behavior:
User Impact:
Users have to constantly “fight” with VS and ensure they don’t check these changes in.
Notes:
Solution files that cause the problem under .\runtime\src\libraries\
:
- System.Data.Common
- System.ObjectModel
- System.Runtime.Serialization.Formatters
Solution files that don’t cause the problem:
- System.Console
- System.ObjectModel
- System.Text.RegularExpressions
cc @ViktorHofer
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:29 (29 by maintainers)
Whoops I misunderstood.
Yes it looks like Platform/Configuration is sorted and NestedProjects is in a different location. Go ahead and open an issue.
VS uses the project type GUID to determine which project system will load the project.
As your
ilproj
doesn’t have an actual project system of its own and is piggy-backing off the C# one, I’d keep the old GUID (9A19103F-16F7-4668-BE54-9A1E7A4F7556
) for now.