Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VS 2012 Adding folders and file to project
Message
 
 
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:
01576624
Views:
22
>>>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform