I was wondering if it is possible to filter elements (folders that are in the solution Explorer) published via Web Deploy (in Visual Studio 2010) ?
I know that it doesn’t help, but I select “Only files needed to run this app” in my project Properties.
I am asking this, because I have a few folders (source image folders, doc folders etc) I don’t want to be uploaded on the server. Maybe are you wonderning why am I keeping all these folders in my Solution Explorer ? because I am using a versioning system (VisualSVN) that let me track all changes in all these files also. Moreover, they are more easily accessible via my favorite IDE 🙂
Maybe is there a better way to organize myself ? if you have best practices or advices, let me know.
Thanks for your help and advices (for my 1st Stackoverflow post!)
Open the web application project file (.csproj or .vbproj) in an editor or from within Visual Studio itself (see this post).
Add an and/or element in the desired element.
e.g.
check the below link for more detail:
http://blogs.msdn.com/b/webdevtools/archive/2010/04/22/web-deployment-excluding-files-and-folders-via-the-web-application-s-project-file.aspx