Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 5 publishing only controller doesn't update on host

There's probably a very logic answer to this question. If I update a controller and publish it to my webhost, the updated part doesn't seem to work, it looks like it didn't update the controller. However, when I publish my whole project everything works fine.

Not a big issue but publishing your whole site for just a little controller update seems like wasted time. Any explanations?

like image 253
Jenthe Avatar asked Dec 30 '25 17:12

Jenthe


1 Answers

I think this will work

  • first Rebuild project on VS

  • then replace YourProjectName.dll and YourProjectName.dll.config on bin file to your host

  • then replace the controller you want
like image 144
Abdelrahman Abdelhameed Avatar answered Jan 06 '26 01:01

Abdelrahman Abdelhameed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!