Questions tagged [sln-file]

sln is a file format in Visual Studio designed to store "solution", a structure for organizing and maintaining project information similar to project workspace (.dsw) files in Visual C++ 6.0.

sln is a file format in Visual Studio designed to store "solution", a structure for organizing and maintaining project information similar to project workspace (.dsw) files in Visual C++ 6.0.

http://msdn.microsoft.com/en-us/library/bb165951%28v=vs.90%29.aspx

90 questions
25
votes
7 answers

nuget restore: Exception has been thrown by the target of an invocation

When I run nuget restore from the command line, I get Error parsing solution file at MyProject.sln: Exception has been thrown by the target of an invocation. but restoring nuget packages from Visual Studio runs without errors. Any workarounds?
sashoalm
  • 75,001
  • 122
  • 434
  • 781
11
votes
1 answer

`dotnet sln add` wrong project type GUID

When I do dotnet sln add {myProject.csproj} for a .NET Core/Standard project, it adds it as project type (I think) {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} instead of .NET Core's {9A19103F-16F7-4668-BE54-9A1E7A4F7556}. Hence, when I open the solution…
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
9
votes
1 answer

Comment lines in .sln file

I'm trying to comment some lines in .sln file temporarly, but I receive error: "The selected file is a solution file, but appears to be corrupted and cannot be opened" According to this blog comments are done by "#", but when I comment out every…
Lucy82
  • 654
  • 2
  • 12
  • 32
9
votes
1 answer

Minimum Visual Studio Version for Visual studio 2015 solution

I have upgraded a project from VS 2013 to VS 2015. Everything works great, I can now open the same Project in both VS 2013 and VS 2015. Now, with this new Roslyn compiler of VS 2015, I assume that when I introduce some new C# 6 features in the…
Pinte Dani
  • 1,989
  • 3
  • 28
  • 35
8
votes
3 answers

How do I add versions to “Visual Studio Version Selector”, my list is empty

I have VS 2008, 2010, and 2012 installed. Initially, VS2013 Team Explorer was installed (Shell only). I uninstalled that. Now, the Visual Studio Version Selector shows an empty list when executing a .sln file. Nothing shows. How can I repopulate…
wow0609
  • 449
  • 4
  • 8
7
votes
2 answers

Is there an easy way to add multiple projects to a solution?

In some solutions I use direct references to internal projects during development and switch to nuget references for release. However, adding 30+ projects to new solutions manually is a tedious task. I was wondering whether there is a quicker way…
t3chb0t
  • 16,340
  • 13
  • 78
  • 118
7
votes
2 answers

Visual Studio adds a number to the project name in solution explorer

I have a solution file with a bunch of projects inside it. One of the projects is a Web Site Project. I was going to upgrade from VS2012 to VS2013, and simply opened the .sln file in VS2013. It does work, but for some reason VS renames the project…
Jim Aho
  • 9,932
  • 15
  • 56
  • 87
6
votes
1 answer

Add a project.json based project to a .sln file without using Visual Studio

We have developers that are using VS Code on Linux, Windows, and Mac. We also have developers that are using full Visual Studio on Windows. A problem arises when the former (including me) do not add their projects to the solution, and the latter…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
6
votes
4 answers

Visual Studio 2015 for Unity3D Error "Incompatible Project"

I had UnityVS 2013 working just fine. I installed VS 2015 and uninstalled VS 2013. I installed the new VS plugin for Unity and generated the project files. I have installed the Unity3D plugin from here: UnityVS Plugin 2015 But now when I try to open…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
5
votes
1 answer

Export Visual Studio project to Qt Project

I would like to export my Visual Studio Project to a Qt project. How to generate a .pro file from a Visual Studio Project? I installed the Qt Add-In but I don't find such option.
X6Entrepreneur
  • 971
  • 2
  • 10
  • 30
5
votes
1 answer

How do I manually add Solution folders to a .sln file?

Say I have a solution that is structured like so: |__TopLevelFolder |___ModuleFolder |____ProjectFile |____TestProjectFile I want to create another "ModuleFolder" under "TopLevel" and add its corresponding project and test…
Andrew
  • 155
  • 1
  • 9
4
votes
2 answers

When do I need to pass MSBuild a solution file?

From the command line, when would I call MSBuild directly on a project, and when would I call MSBuild on the projec's sln file, passing /t:Build /t:ProjectName? Example: I have a simple solution containing several projects (A, B, C, ...).…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
4
votes
1 answer

Is it possible to make elements in a Visual Studio .sln file conditional?

Is it possible to make elements in a Visual Studio .sln file conditional? Although the .sln file is oddly not in MSBuild or even XML format, I would love to use a similar syntax. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloProj", …
goneskiing
  • 1,659
  • 1
  • 13
  • 22
4
votes
3 answers

Is it possible to set the Xamarin Studio StartupItem 'per user' and not in the sln file?

We have a solution file with multiple Apps for multiple platforms. There are 10 projects which may be selected as default startup project while developing a user story. Unfortunately the StartupItem is stored in the sln file and hence causes…
Rodja
  • 7,998
  • 8
  • 48
  • 55
3
votes
1 answer

How to update .sln (solution) file within Visual Studio 2019

I am clean build-ing and rebuild-ing the project I am working with and I keep getting errors that is is unable to find the path/folder/filename because I ended up updating the name within file explorer. I want to open the projectname.sln file and…
Roger Perez
  • 2,807
  • 29
  • 31
1
2 3 4 5 6