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.