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
1
vote
1 answer

Moving MVC folders to root causing errors

For version control I have moved all my projects folders from the myproject folder to the root where packages and myproject.sln reside and when I open myproject.sln I get 'One or more projects in the solution were not loaded correctly. Please see…
user616076
  • 3,907
  • 8
  • 38
  • 64
1
vote
1 answer

How to prepare custom project solution to download from server

I want to prepare a general visual studio solution in c# programming language. But any user will download it a custom name. Is this possible. For example, my own project is prepered and filled like this: ECommerceInfrastructure (vs solution) …
barteloma
  • 6,403
  • 14
  • 79
  • 173
1
vote
1 answer

Is there a way to throw a custom compilation error if some MsBuild property is set in any project within a solution file?

Background I have created a Directory.Build.props in my root repo folder with the following contents: 7.3 I need to prevent the usage of C# 8 syntax within our…
taquion
  • 2,667
  • 2
  • 18
  • 29
1
vote
0 answers

compiling c++ projects with sln file in ubuntu

This may be a stupid question, but I've been trying to compile a larger project that was originally associated with visual studio in Ubuntu. I settled on cmake to do this, but it needs a cmakelist file. As I don't want to set this up manually, since…
gnnop
  • 11
  • 2
1
vote
1 answer

Yellow triangle on Service reference in ServiceFabric solution

My SF solution currently has one service, but seems like there is a problem in the reference from the sfproj to the service. I saw the following question and answer and made sure all target framework is matching: Service Fabric Service reference has…
1
vote
2 answers

Is it a bad idea for my solution and project to be stored in separate locations?

Somehow my solution and project differ as to their Path/FullPath. The Path property of my solution ("customerreportingnet") is: C:\Users\cshannon\Documents\Visual Studio 2013\Projects\customerreportingnet\customerreportingnet.sln The only project…
1
vote
0 answers

Using environment variables in .sln (VS2015 solution) files for relative paths

I am trying to create a batch file that loads a VS2015 solution file. We use source control branches, so the paths to the projects that are included in the .sln may vary, depending on the selected branch like…
1
vote
1 answer

Why do source control entries keep getting added back to my .sln file?

I was able to finally get a legacy ASP.NET project to run which I have been tasked to maintain. A question about it and my tentative auto-answer is here. In a nutshell, it seems one of the things I needed to do to get it to run was to clean out the…
1
vote
0 answers

When I reopen the project on Visual Studio, I only found solutions of it in the format .sln, someone could explain to me how fix this?

after creating a web site in visual studio 2015 and adding some items, I save the project and then close visual studio. When I reopen the project on Visual Studio, I only found solutions of it in the format .sln (and not my filee in format .aspx),…
1
vote
1 answer

Create project and its own sln file within multiple project solution

We have a large server-side C# solution at work. It has multiple projects, each with its own sln file on the first layer of the application's directory. It also has a general all.sln which contains all the projects. I have added a new project which…
1
vote
0 answers

How to recover website converted to sln

I work on visual web developer 2010, and by mistake one of the pc's @ school converted my project to sln or something. Now it seems like it cleared my App_Data folder - means my database is gone. Anyone knows how can I fix it? or how can I convert…
0
votes
0 answers

Compile a remotely cpoied project in visual studio

I have got a project code containing the .sln and .vcproj files. The goal is to compile it on my system. For sure when I open .sln file in visual studio, due to the signatures of the path of the original system (where I obtained files) it would not…
0
votes
1 answer

Trying to copy a form I created to a new project so I can reference it from multiple projects. Event 'Click' cannot be found

I previously created a windows form in a vb.net project but now I realized I can use this form in various other projects. Instead of copying the code to every project I want to use it in, I'm trying to create a new project, copy the code to this new…
lmac02
  • 3
  • 3
0
votes
0 answers

Resource File is not created from Visual Studio

I'm currently writing AddOns for ArchiCAD. Since .sln projects work with absolute paths, we wanted to try to have the same folder structure on every PC so we can share our projects with each other. Example: Project for Room Numbering AddOn I created…
Dayiz1
  • 1
0
votes
1 answer

How can I create a VisualStudio2015 solution from a given directory structure?

Suppose I have isolated some header and source files from a huge CMake C++ project. C:\USERS\PC\SOURCE\REPOS\my_app_src ├───apps {a.hh, b.cc, c.hh, d.cc} │ └───biosimulations {main1.hh, main1.cc, x.hh, y.cc} └───core {w.cc, x.hh, y.hh, z.cc} …
user366312
  • 16,949
  • 65
  • 235
  • 452