asp.net - Trimming the output of publishing -
i've got basic asp.net web application next publish settings:
publish file system. delete existing files prior publish - ticked precompile during publishing - unticked exclude files app_data folder - tickedwhile publish work expected, seems publish quite bit of baggage.
\bin web.config web.debug.config web.release.config webserver.dll \properties assemblyinfo.cs \publishprofiles release.pubxml mywebform.aspx mywebform.aspx.cs mywebform.aspx.designer.cs web.config web.debug.config web.release.config webserver.csproj webserver.csproj.user
out of this, i'm able remove following:
\bin webserver.dll mywebform.aspx mywebform.aspx.cs mywebform.aspx.designer.cs web.config
so, question two-fold:
firstly, why publish option, publish various things such *.csproj files, or *.config files in bin directory etc. site appears function without baggage. purpose of these files beingness made public?
secondly, there way configure publish operation publish minimum required files project?
i'm not sure reason behind publish alternative publishing unrequired files, seems there easy way stop it. in properties of project under alternative "package/publish web" there grouping "items deploy", able select "only files required run project".
asp.net publish
No comments:
Post a Comment