I want to add file extension to razor view engine other than cshtml.
Any clue you guys?
I want to add file extension to razor view engine other than cshtml .
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve made a MVC service that generates CSS files based on configuration files.
I’m returning the CSS file using the Razor view. Simply the view has CSS syntax and placeholders. The place holders are replaced with values from the passed model.
I wanted the razor view engine to view .css file besides .cshtml, just for the sake of intellisense support in the visual studio.
I believe the solution to this problem starts here