开发者

"A namespace doesnot containmembers such as fields or methods" for Stylesheet

开发者 https://www.devze.com 2023-01-14 12:29 出处:网络
I am trying to build a web app project using C#. and i am getting the error message \"A namespace doesnot containmembers such as fields or methods\". Error Code 7. and file name is my CSS file that it

I am trying to build a web app project using C#. and i am getting the error message "A namespace doesnot containmembers such as fields or methods". Error Code 7. and file name is my CSS file that it is showing with Row number and column no. 1. I am using Visual Studio 2008, and the first class created(body)开发者_JAVA百科 is blue underlined. I have checked the web.config file and it its build action is set to "none"

Any help on this would be greatly appreciated.


Are you sure your file extension is .CSS and not .CS? If so, rename the file with a .css extension and try again.


Change the build action to Content? Does it have .css as the extension?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号