MSBuild - treat Embedded Resources as if they were Content

294 Views Asked by At

We have an MVC solution with certain files (js, cshtml) being "Embedded Resources" to allow the developers to debug them in visual studio. Is there a way to make MSbuild treat them as Content, so that they are published as files instead of embedding them during build?

1

There are 1 best solutions below

4
On

In Solution Explorer, right click the file and click "Properties". In the properties page under Advanced, select "Copy if newer" in the "Copy to output directory" property.