Publish controllers only

When I edit views or other files other than a DLL, I can press CTRL + ; + P CTRL + ; + P to publish this file to the web server. However, this does not work for controllers, perhaps because they will be compiled into a DLL file.

Is there a way to compile and publish only the dll file and avoid the big delay in publishing the whole project?

EDIT

Thanks to Sarvjeet, I know that I can build a project and copy the DLL file, I can also script this in the event after building the project as follows:

 copy "$(TargetPath)" "C:\inetpub\wwwroot\bin\$(TargetFileName)" 

I was hoping for a better way that allows me to use the short key, CTRL + ; + P CTRL + ; + P , and takes into account the publication profile.

+5
source share
1 answer

Copy the compiled DLL and paste it into the expanded folder. You do not need to deploy the entire project.

+2
source

Source: https://habr.com/ru/post/1238057/


All Articles