I opened up an old VC# project in the Visual Studio 2017 RC, however when I right click on a folder and go to add an item I dont see .cs files and hence can not add .cs files. How do I fix this?
Related
I am using Microsoft Visual Studio Professional 2019 Version 16.11.16.
I am seeing two files with the same name in the same folder. While opening the folder in File Explorer, I can see only one file. While clicking both files it opens the same file. This is happening to only one folder.
Is there any way to make the visual studio show only one file?
When I add new .cs file to my project, file is added to Miscellaneous Files and then I don't get no intellisense and red squiggles.
Problem was with enabled lightweight solution loading, when I disabled it and restarted Visual Studio it all started to work again.
Visual Studio 2015 is backwards compatible with 2013. As a result, it doesn't upgrade solution files that you open with 2015 at all.
Now, I recently installed Visual Studio 2013 and whenever I open a solution (.sln) file, it uses the Visual Studio Version selector to pick Visual Studio 2013 instead of 2015.
How can I configure the Visual Studio Version Selector to use the highest valid version instead of the specific version indicated without necessarily modifying the .sln file (discussed here: How to force a Solution file (SLN) to be opened in Visual Studio 2013?). I want to avoid breaking others who might not be using 2015 yet.
Even if you update .sln file to open with VS2015 by default, it will still work with VS2013. MinimumVisualStudioVersion parameter inside .sln will let users with VS2013 to open solution normally.
I prefer to update .sln files as described here.
Open solution you wish to upgrade in VS2015
Select the solution file in Solution Explorer
Select File / Save MySolution.sln As...
Overwrite the existing solution file.
Find your project(.sln file), right click and select "properties".
Under "General" option, click "Change" button behind "Opens with" item.
Select "VS2015" then click OK. Done~
I noticed that when you open a solution in VS 2013 Express which contains solution folders, they load properly and the solutions builds properly. Unlike the express versions of Visual Studio 2010 which showed error messages when the solution loaded.
Here's a screenshot of the AvalonDock solution which is open in Visual Studio 2013 Express:
Since Visual Studio 2013 Express can clearly use solution folders, my question is: How do you (if you can at all) create one?
Whether it is a straightforward way from inside Visual Studio or a "hacky" way (for example) of manipulating the .sln file.
To create a new solution folder in VS2013 Express...
Open your solution file in a text editor. Add the Project line to the top of the file. If you want to add more than one then you'll have to invent some new GUIDs.
Open in VS2013, you can now rename, drag/drop projects into it etc.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "New Folder", "New Folder", " {765E7B51-3482-4523-AE2F-6299401EDD0B}"
EndProject
.
.
.
Select Solution and press Ctrl+Shift+A. Then create text file. Text file will be placed at new folder "Solution Files",
Then delete text file and rename folder.
=)
Alternatively, the Visual Studio Express 2013 Web fully supports this. If you don't want to mess around with the solution file, you can open the solution using the Web version and add the folder from there.
I don't know why the Web version supports it but not the Desktop
I have develop project in visual studio 2012 , but now im trying to open that project in visual studio 2010?its showing error like cant open the solution
In your .sln file, open with notepad and...
Change the:
Microsoft Visual Studio Solution File, Format Version 12.00
To:
Microsoft Visual Studio Solution File, Format Version 11.00