How to publish MVC 4 website as part of csproj file?

95 Views Asked by At

I have website built on MVC4 in visual studio 2019 and for publish profile I usually used right click and select publish site. which is working great but i want it should be part of my csproj. As when as i build my web.sln it should create a publish folder.

Right now it is only creating bin folder having dll and dependency but it should have all folder having content and web.config and razor file.

I tried to search how I can make this as part of csproj file but could not figure it out? Please help me.

0

There are 0 best solutions below