Partial View not being published

I encountered a bit of a problem today. I've added a partial view manually to the project (i.e. it wasn't generated by the VS). To my annoyance, when I deployed the application to the test server the *.cshtml was not copied. After a bit of digging around I found the problem. It turned out that by default VS sets the "Build Action" to "None". Simply changing it to "Content" should solve the problem.

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box