question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some dotnet/runtime .sln files are being changed on solution open

See original GitHub issue

Visual 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:

  1. git clone https://github.com/dotnet/runtime.git

  2. Open .\runtime\src\libraries\System.Runtime.Serialization.Formatters\System.Runtime.Serialization.Formatters.sln

  3. 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:

image

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:29 (29 by maintainers)

github_iconTop GitHub Comments

2reactions
jeffklcommented, Jan 12, 2021

VS is updating it on load.

Whoops I misunderstood.

Yes it looks like Platform/Configuration is sorted and NestedProjects is in a different location. Go ahead and open an issue.

1reaction
drewnoakescommented, Feb 20, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to force a Solution file (SLN) to be opened in Visual ...
Open solution in VS 2015 · Right-click solution > Add > New Solution Folder (name does not matter) · Save solution · Delete...
Read more >
Rename solution and related projects in a ASP.NET web ...
In Solution Explorer, right-click the project and select Properties. On the Application tab, change the "Assembly name" and "Default namespace".
Read more >
Manage .NET (C#) solutions, projects, and files
Open an existing project or solution · Press Ctrl 0O or select File | Open from the menu. · Select the directory that...
Read more >
vscode-solution-explorer
Extension for Visual Studio Code - Visual Studio .sln file explorer for Visual Studio Code.
Read more >
1. Solutions and Projects - Mastering Visual Studio .NET ...
The simplest is to create a new project—by default, Visual Studio .NET will create a new solution with the same name as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found