Can't create folder inside Shared project in Visual Studio 2017. On place context menu I see only "New Filter"
Is it in general possible - create folder in this type project ?
Update 1: - I mean create folder not in Folder view...
Maybe you just need to enable Show all files item in Solution Explorer toolbar?
Filters are logical groupings of files, that aren't reflected in the filesystem. Creating filters is the only option available when looking at the solution view. If you want to add a filesystem folder instead you have to toggle between solution and folder view of the Solution Explorer:
Once in folder view, you can create a filesystem folder:
In general "enable Show all files item in Solution Explorer toolbar" is good desigion, but if you reopen vs2017 you need everytime enable it. So best desigion - change your settings in Tools- Options.. - VC++ Project Settings - Solution Explorer Mode - to the Show all files
Related
I'm looking for a way to have my folder structure to be the same as the one in my solution.
Something similar to what I'm looking for can be seen here: https://github.com/jasontaylordev/CleanArchitecture
The question is how can I achieve the src/tests folders separation in both Solution and Windows Explorer without using any predefined template?
Try to:
create src and test folders in the main folder where your solution is stored
open your solution with visual studio
right-click on solution -> add -> new solution folder
rename in src
rename in test
right-click on folder -> add -> existing project (or new project if it doesn't exist)
and that's all.
In this way, you will be able to see src and test folders separated in both solution and explorer.
I converted my MVC solution to layered architecture .
For this I added folders in my solution in Solution Explorer. Everything is working good, my colleagues are able to take the latest of solution and the folders are appearing in solution explorer.
The issue is I am not able to see the folder structure in TFS(in
Source Control Explorer.)
Probably I should have create the folder structure in TFS directly.But now I have lot of changes checked in since I created the folder, so I think this option will not work.
Please Advice.
It's supposed to be it. The root cause is Visual Studio solutions Folder are not real Folders.
Solution Folders only seem to be "virtual folders", because they are
not really created in the Filesystem and files inside solution folders
are just sitting in the same folder as the .sln file.
You can create real folders in a "project" within the solution, but not in the solution itself. Details about this area, you could refer below questions:
Visual Studio Solutions Folder as real Folders
What is a solution folder in visual studio
Source Control Explorer is used to manage files in TFVC, the files in the solution folder will shown up in the source control explorer and be the same level with .sln file, however the solution folders itself will not appearing in source control explorer and keep the folder structure.
At least for C# solutions in Visual Studio 2019 you can manage individual forders in the solution.
To do this the view has to be switched to Folder View using the Switch View button in Solution Explorer.
Look here for detailed description
I'm using fontawesome in one of my web applications. The problem is that not all of the fontawesome files that is contained withing my Content folder is published to the web server.
Is there any way that I can get these files to be published without having to manually copy them?
Please check the following.
1) check if the font files are in your project in visual studio (i.e. event the files are in the the project folders in Explorer doesn't mean it is in visual studio project, see if you can view it in your solution explorer)
2) if you can see it in your solution explorer, right click on it and see if you see an option called Include In Project. if you see this, click on it and it will include the file into your project. Instead, if you see Exclude from Project then it's in your project.
3) right click on the font file again and see if the Build Action property is set to Content.
This actually had nothing to do with the files not deploying. I'm using bundling and minification and unfortunately it seems that MVC bundles are not smart enough when it comes to virtual directories.
A quick fix was to create a physical directory with the files giving me a 404 error.
New to Visual C#. I can add existing .cs files but is there a way to add entire code directories to C#. Otherwise I would have to create folders again within visual C# and add files into it. There has to be an easier way to replicate my existing directory structure in visual C#.
Click Show All Files in Solution Explorer to see the entire filesystem within your project directory.
You can then right-click an entire folder (or select multiple folders) and click Include in Project.
You should be able to simply drag/drop folders from an explorer window into your solution by dropping them on the project or a sub-folder.
I have a Silverlight 4 app that I'm building with Visual Studio 2010. I'm using Mercurial/TortoiseHG to do version control. Which files do I need to check in? By default, it checks in all sorts of .dlls in /bin/debug and stuff. Do I really need those? Or can I just grab code and content files? Do I need to version something to keep track of project properties and references, or is that contained within the .csproj file itself?
You don't need to include stuff in /bin or /obj. This is true of all VS solutions in source control. These are recreated upon every rebuild. Also, for Silverlight specifically, you don't need to check in the XAP file that is generated in the ClientBin of your web app.
From MSDN (via this social.msdn thread):
You can add the following files to Visual Studio source control:
Solution files (*.sln).
Project files, for example, *.csproj, *.vbproj files.
Application configuration files, based on XML, used to control run-time behavior of a Visual Studio project.
Files that you cannot add to source control include the following:
Solution user option files (*.suo).
Project user option files, for example, *.csproj.user, *.vbproj.user files.
Web information files, for example, *.csproj.webinfo, *.vbproj.webinfo, that control the virtual root location of a Web project.
Build output files, for example, *.dll and *.exe files.
It doesn't say anything specific about Silverlight projects though.
Is Mercurial/TortoiseHG integrated into Visual Studio? i.e. can you check out/submit from within VS?
If so, if you right click on the project name and select "Add Solution to Source Control" it should add those parts of the project that it needs ignoring everything else.