Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding static HTML site to VS 2012
Message
From
28/05/2013 11:01:31
 
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:
01574946
Message ID:
01574950
Views:
29
>>>Hi,
>>>
>>>I have a number of HTML pages, CSS file, images, etc - all comprising a static web site. I would like to add all of these to VS so that I can maintain the pages using VS 2012. All files reside in the folder D:\VS2012\WEBPROJECTS\MySite. I can open any HTML page and view/edit it. But Solution Explorer shows no files. My goal is to see all files of this site in the Solution Explorer.
>>>How do I do it? TIA.
>>
>>
>>My experience is you keep your local editable versions on the hard drive somewhere, and when you make changes you upload the changes to the remote site with ftp, scp or something similar.
>>
>>If there's a way to access remote website content directly in VS, I'd be interested in knowing it as well.
>>
>>As for D:\VS2012\..., those files should show up in your solution. In the past I've had to move them around to more logical folder layouts, but they should be there.
>
>I am not trying to access remote website from VS. Basically I do what you described. I upload my HTML and other files to the web site via FTP client. No problems there. All I want to is to see all my HTML and other files - residing on my computer hard drive - in VS 2012. So that I can open VS 2012 and see a site/project/whatever it is called in VS, click on it, and then see all file site files in Solution Explorer. So far I can't figure out how to do it.
>Thank you for your message.


I don't know of any steps other than the basics:
(1) Create a project to hold the files, or several (one for html, one for css, etc.)
(2) Create the folder layout you'd like.
(3) Add existing items to the project.
(4) Re-arrange.

They should appear there in your project after being added. By putting them in their own project they can be included in several solutions. And with default registered viewers, just double-clicking should launch them.

Is there some other issue you're having after doing these steps? Maybe I don't understand.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform