Reputation: 1004
I have a couple of general questions regarding when it is necessary to recompile an entire .NET Application: Specifically, what file is ok to simply upload:
I know that any change to the web.config does not require re-compilation, and that file can simply be uploaded to whatever development site.
A change to .css file require re-comipile? Or can I simply upload that file to development site?
A change to .aspx file require re-compile? Or can I simply upload that file to development site?
A change to .cs file require re-compile? I would think yes.
A change to any .js file requires re-compile of application? Or can I simply upload that file to development site?
Upvotes: 1
Views: 2390
Reputation: 499212
Changes to any static resources do not require you to recompile the application - this includes .css
, .js
, images and such.
Changes to .aspx
/ .master
pages do get a recompilation - but this is done automatically by IIS.
Changes to web.config
do not require a recompilation as this is configuration - it simply needs to be reloaded, which IIS will do by recycling the application.
Changes to .cs
files will require a recompilation - otherwise the web site dll file will not be up to date if using a web application project. In a web site project, you can use the app_code
directory - IIS will automatically recompile it.
Upvotes: 2
Reputation: 43087
FYI - App_Code only applies to Web Site Projects, Web Application Projects require all .cs file changes to be recompiled
Upvotes: 2