Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VS 2012 Adding folders and file to project
Message
De
18/06/2013 10:25:31
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01576612
Message ID:
01576632
Vues:
26
>>>>>>>>>>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.....
>>>>>
>>>>>I did ran a Find file and it showed that .csproj had an entry for 'bootstrap'. Or maybe after I removed the folder name first time, I should have closed the solution and reopen it again. But it seems that the "rename" approach worked (so far <g>).
>>>>
>>>>Just to be clear : You DID delete the folder from VS rather than from File Explorer etc ?
>>>
>>>I thought I did. Now after deleting so many times I can't recall every single step I made.
>>
>>:-} Ah well, onwards......
>
>I agree. I need to get a lot done before the end of the day <g>.

Me too. Two weeks off starting tomorrow !
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform