Have a ignore files setting in the Publish wizard
It would be nice to be able to easily exclude certain files when publishing, like for example web.config. But it could also be other kinds of files and folders (.git , .svn).
Prevent unwanted files from being deployed by marking / adding them to a Deploy-Ignore-List or alike.
An other possibility would be to simple permanently store the selection of files in Deploy-Window
Good idea – rules for source control exclusion would likely be different, but I like the concept.
Dan Sunday commented
I usually have misc info files that help with my web (php) development, but make no sense to publish. Some of them get modified by other tools I use, and I'd like to exclude them so that I don't have to uncheck them each time I publish my actual site files.
Absolutely. Why isn't this already available? Asking for such a simple but totally required feature is sad.
Man na commented
Visual Studio Web Deployment already has this feature. Why not just leverage it? All that would be left is to provide a UI for mere mortals to use. Simply allow users to exclude files by selecting or multi-selecting from the file view and right clicking "Don't Publish." Show a small badge showing that it will not be uploaded. You can always allow the user to override it during the actual publication process. This can all be done with minimal effort. You can include a stripped down version of MSBuild with WebMatrix
To me, the core issue is that I have files (e.g., web.config, app_data) that differ between my local server and remote server. For example, I am using Orchard. The files in my local app_data are different from what they contain on the remote app_data. I want an easy way to either a) tell WebMatrix not to copy specific files and folders or b) deploy another set of replacement files when publishing. I also tend to version control production-specific versions of files.
Mark Heath commented
At the very least we need to be able to use shift-click to select multiple files in the dialog. I'm using mercurial and that means a lot of files to uncheck on deploy. A .ignore file for deployment would be ideal.dir
Erik Lenaerts commented
working with orchard and I could use the feature to exclude the auto generated error-log files.
James VanDyne commented
Upvoting. Really need an ignore file ala Hg.
Benjamin Bartels commented
Yishai Galatzer [WebMatrix developer] commented
I know this doesn't answer all of your issues. But we do have an ignore hidden files on publish. Does this help for now?
when I use Resharper, there are too many files I have to uncheck,and .ignore file is preferred
Just a .ignore file containing lines of wild cards would make me very happy.
I know I can untick the publish checkbox for the file, but I would prefer a setting which would mean I do not need to do it manually on each publish. (Perhaps it could just remember that unticked box?)