简体   繁体   中英

Visual Studio 2013 CSS/JS Remote Publish Issue

Is there any reason why a Visual Studio 2013 Project which is error free and works perfectly locally would not render some CSS and JS files remotely?

I have checked the remote host and all files/folders have copied successfully and the pages work but the Site.css does not appear to be rendering correctly.

Any help would be much appreciated :-)

I think I've found a solution to my problem, I ensured Release was select in Solution Configurations then removed all files from Content and Scripts folders. Then for each of the Content and Scripts folders I added back the existing items.

I then clicked Clean WebApplication1 followed by Build WebApplications1, ran the project through Internet Explorer and Firefox just to make sure everything was still functioning and displaying normally locally, which it was so then clicked Publish WebApplication1 and under Settings I selected Release and ticked Delete all existing files prior to publish.

All CSS and JS render perfectly both locally and remotely now.

I hope this solution proves useful to others :-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM