Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

\Content\Site.css in Visual Studio not been overwritten / cleaned up?

$
0
0

Hi,

I am new to Visual Studio 2013 Professional 12.0.30324.00 Update 2 RC (although used 2008). I have created a default Web Application (web forms) in C#. All this is great. The problem is when I was changing the default \Content\Site.css it was not being reflected in the rendered html code. I ended up removing the whole of the \Content from my project and the Site.css style was still being used, even though removed. I could even try deleting the whole contents of this css file and it was still being used.

Somehow the site.css file is still being deployed or not cleaned in the deployment location.

If I remove the following from my master page:

<

linkhref="~/Content/Site.css"rel="stylesheet"/>

It then stops using the Site.css

I am also using App_Themes with my web-application.

Any assistance would be seriously appreciated as I feel like I have gone Mad!!!**&&

Kind regards

Matt.

[Edit:

It think it must be a "bug / permissions" thing, because if I rename my \Content\Site.css to \Content\Site2.css and change my reference in the master file to this new css file then all my changed css settings are implemented.

However the original Site.css must still be there because if I change the reference in my master file back to ~\Content\Site.css it finds the original settings as built by Visual Studio 2013.

It has only driven me mad for the last 5 hours. I will stick with the Site2.css until someone can tell me there is a fix, or I have done something stupid.

End Edit]


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>