Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Just publish modified controllers, models and some parts of a ASP.NET MVC project

If I change my views (.cshtml) or styles (.css) or scripts (.js) in my MVC projects then I can publish it easily by right click on it and select Publish FILE_NAME

publish file example

If I changed some controllers files or BLL classes or infrastructure classes,

  • Which files should be published? which DLLs?

  • Of course added references must be published but what are another?

  • Should I publish all the DLL files in the bin folder or just some?

  • Is there an easy way to VS detect modified files and publish theme by a command or...?


Edit1

I use FTP method to direct publish and upload our site to the server.

My Publish Preview Step Snapshot: enter image description here

  • What is the name of DLL files that contains the compiled information of controllers, BLL classes and...?
like image 774
Ramin Bateni Avatar asked Dec 03 '14 21:12

Ramin Bateni


1 Answers

I just published the MVC5Bootstrap-3-1-1-Less.dll and it worked!

So if we uploaded a website and then want only publish the new modified controllers or classes of the MVC web application (here: MVC5) to the server, we should upload the following files:

  • MVC5Bootstrap-3-1-1-Less.dll after build
  • Added references to the bin folder after build

Here is a image of how publish DLLs of bin folder from Visual Studio:

enter image description here

like image 129
Ramin Bateni Avatar answered Oct 08 '22 14:10

Ramin Bateni