Style sheets external to web application are not applied in VS.NET 2010 IDE design view - by mindss

Status : 


Sign in
to vote
ID 536777 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 2/26/2010 4:44:14 AM
Access Restriction Public


I'm using local windows XP IIS server to host my development projects. Most of my Web applications share same style sheets that are located in "Styles" folder on IIS root. Aspx pages links to style sheet files using link tag:

<link rel="Stylesheet" href="/Styles/MainStyle.css" />

In Visual studio 2010 IDE design view such styles are not applied. VS.NET 2010 IDE aplies only styles that held within web application.
This is working fine with VS.NET 2005. It was easy to manage style sheets that were applied to lots of web projects in one place on developer machine and also on production servers.
Sign in to post a comment.
Posted by mindss on 4/13/2010 at 3:43 AM
I have detected when style files are not loaded using tag:
<link rel="Stylesheet" href="/Styles/MainStyle.css" />

In my case folder styles was enabled only "Windows Authentification" in IIS settings. After I have enabled "Anonymous Authentification", styles were loaded in designer. This is ok as this affects only development environment.

However it would be usefull if IDE would recognice CSS selector "*"
Posted by Microsoft on 3/3/2010 at 11:37 AM
The issue is actually related to the use of "*" in the linked style sheet, and not the external link.

If you also add the style "body {}" to the stylesheet, the text does appear blue, and the CSS Properties panel detects that both rules apply.

We will not be able to fix this for Visual Studio 2010 RTM, but it has been marked for consideration in the service pack.
Posted by Microsoft on 3/1/2010 at 1:30 AM
Thanks for your feedback.

We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.
These specialized experts will follow-up with your issue.
Posted by Microsoft on 2/26/2010 at 7:03 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(