I create ASP.NET Core 1.1 by Visual Studio 2019 Community. I exclude directory wwwroot,
then I don't know how to undo this action.
I try like this https://stackoverflow.com/a/1352560/3728901 but context menu like this didn't exist.
How to undo "Exclude folder" in Visual Studio 2019?
do like this in Visual studio 2019
In solution explorer click on the Project node and select show all files then right click wwwroot and select include
Related
I was using .NET Core API project with 2.2 Framework in VS 2017. Now we have migrated all the .NET Core API Projects to 3.0 Framework.I have both VS 2017 and 2019 installed in my machine. When we click on ".sln" file it gets openend in VS 2017. But i want the .sln file to be openend in VS 2019.
Please let me know the changes required to achieve this.
Thanks
For one, you can delete the solution file and create a new one dotnet new sln.
Assuming you have .NET Core 3.0 sdk installed and active (in case of globa.json being present), it should create you an *.sln file for VS 2019.
Alternatively edit your sln and change the first few lines to
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29512.175
MinimumVisualStudioVersion = 10.0.40219.1
thats the sln header VS 2019.4 (16.4) creates on new solutions
Right-click on the .sln file
From the popup menu click on "Open with" and in the submenu click on "Choose another app"
In the splash window select "Microsoft Visual Studio Version Selector", don't forget to tick the "Always use this app to open .sln files" checkbox, and click "OK".
If prompted to save changes to the "devenv.sln" file, save changes.
In this way, a double click on a .sln should open it with the version of Visual Studio that was used to create it.
Open Visual Studio 2019 and select File-->Open than browse to the solution file that should be ported to VS2019 to open it.
After the solution file was successfully opened in VS2019, chose to Save All.
From now on, your solution file will be opened with VS2019 once you doubleclick solution file in file explorer.
P.S.
Editing solution file manually to update VS version is not recommended because it does not respect possible structural changes of the solution file that may appear between VS versions.
Or,
create a shortcut to the .sln file
right-click the shortcut, choose Properties, General
Opens with, click Change and select Visual Studio 2019
(note - this only changes the shortcut, not the .sln itself, but it's a quick safe fix)
I do have a TFS Project (TFS 2013) and I would like to set up my Visual Studio 2015 to work at that project. I have Visual Studio 2017 and Visual Studio 2015 installed. Now whenever I go to the main page of my Project and click "Open in Visual Studio" (like described here), Visual Studio 2017 opens. I would like to have it open in VSTO 2015. How can I select which version of Visual Studio should open?
The solution file should contain a UTF-8 signature that describes in which version the solution is to be opened. This is what's used for example to show different icons for solution files targeting different Visual Studio versions.
This signature info is also used by the Visual Studio Version Selector when opening a solution. An easy way to fix this is make sure that have the solution local on your dev machine and then right click -> open with and choose the Visual Studio Version Selector. Then pick the correct version of Visual Studio that you want to use.
This will then be honored by your browser when opening a solution since this also uses the Visual Studio Version Selector.
I tried to open a DBML file recently, and when it didn't open correctly, I found out that I had to install the LINQ to SQL option for VS2017 Community. I used the Visual Studio Installer to add the LINQ to SQL option. When I reopened VS 2017 Community, DBML files opened correctly, but I still could not find the template for new DBML files (LING to SQL files).
How can I enable that template?
Here's what helped me:
Quit Visual Studio 2017
Launch the Visual Studio Installer
Choose to modify the Visual Studio Installation
Visual Studio Installer
Click on "Individual Components", scroll down and click the checkbox next to "LINQ to SQL tools"
Individual Tools
Click "Modify" and then restart Visual Studio 2017
You may need to update your version of Visual Studio before the modify option displays.
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