John John
John John

Reputation: 1

Publishing my asp.net mvc web application using Visual Studio Web Deploy will list some files as need to be deployed , although i did not modify them

I am working on an asp.net mvc-5 web application , and i am using Visual Studio 2013 , to publish my web application to an online hosting using web deploy.

now i published my web application correctly. and i check it online and every thing is working well.. then today i modify a view named "Contact.cshtml" and a file named "style.css", and then I try to publish again. i was expecting that only the two files will be shown in the preview window since they differ from the publish files. but i was surprised that my project.dll is being listed although i did not chnage it (i did not modify any cs file) and the modified date for this .dll is that same modified date which is online..so can anyone adivce on this ?

here is how the preview window inside VS 2013 looks like:-

enter image description here

So can anyone advice why my project.dll file is listed although i did not modify it since i did my last web deployment ?

Upvotes: 1

Views: 184

Answers (2)

Chase
Chase

Reputation: 944

It may be that your style.css and Contact.cshtml files have the wrong Build Action. The proper build action for these files should be "Do not copy", which seems counter-intuitive since the Web Deploy will copy it anyway. You can change the Build Action by selecting each file in the solution explorer and setting the appropriate value.

Upvotes: 0

RoteS
RoteS

Reputation: 1445

Either you ran the project before publishing and/or your are building your views in the solution.

Upvotes: 1

Related Questions