0

I've published my MVC project and now i need to edit the startup.cs file But when i check the published files in the hosting files i only able to see files for Models , Views , Content (css) But there's no files for this class (Startup) or even the controllers.

is there a way to edit or even find this file without publishing the entire website again ?

  • what you want to change in startup.cs file – maulik kansara Apr 16 '19 at 13:21
  • @maulikkansara I wrote some lines of code and i need to remove them –  Apr 16 '19 at 13:23
  • @kingkomand2o then make them corrected in VS and republish the project. – TanvirArjel Apr 16 '19 at 13:24
  • @TanvirArjel but i made some changes after-publishing from the host-side and i don't want to reset the whole project –  Apr 16 '19 at 13:32
  • You could use DotPeek (https://www.jetbrains.com/decompiler/) to decompile the DLL's within the bin folder of your published site. This will certainly give you access to the controllers but i think you will struggle with the Startup.cs file. Also, you cant edit complied dll's (as far as i am aware) so as @TanvirArjel mentioned you would need to republish. – bsod_ Apr 16 '19 at 13:35

0 Answers0