Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VS 2012 Adding folders and file to project
Message
From
18/06/2013 10:05:44
 
General information
Forum:
ASP.NET
Category:
Visual Studio
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01576612
Message ID:
01576625
Views:
18
>>>>Hi,
>>>>
>>>>I added a folder to my project (e.g. Content). Then I manually copies some .css files to this folder (outside of VS). But when I view the project in the VS Solution Explorer I don't see the symbol (to the left of the folder name) indicating that there are files in this folder. And if I click on the Folder name, it won't open (showing the files). Even thought the files inside the folder Content are recognized in .cshtml files.
>>>>I realize that I probably should have added the folder and the file - all - from the VS solution explorer. And I can probably delete and restart the entire process. But I am wondering, is there a way to "force" VS to recognize the folders and the files inside them?
>>>>TIA
>>>
>>>Another little issue I ran into. If I delete a folder from the VS project (e.g. Content), I cannot later add a folder of the same name. As if VS simply "marks" the folder as deleted but it is still somewhere. Anybody knows which file I need to hack to get rid of the folder name so that I can add it again?
>>
>>Doesn't sound right. VS will physically delete the folder and all it's contents and adding back a folder of the same name shouldn't be problem. Using 'Exclude from Project' WILL leave the folder in place and result in the behaviour you describe....
>
>I figured how to "fool" VS. I created a folder of a bogus name (e.g. MyNewFolder), then added folders CSS and files. Then added other subfolders and files. Then I renamed the top folder from MyNewFolder to bootstrap and it works.

Strange :-}
I was going to suggest opening the .csproj file in notepad to see if the a bootstrap folder was referenced but.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform