Last post Jun 29, 2008 06:33 AM by einar
Aug 09, 2007 03:23 PM|AgentBond|LINK
Recently my boss asked me to find a way to share a web site project between 2 separate projects which will only share a subset of the files in the folder. I created 2 web applications projects in the folder and eliminated the web site project. I discovered
when I publish the web application projects, that it wasn't compiling the .as*x pages, so I looked into web deployment projects. The problem I'm having with web deployment projects is that when I build them from the solution configuration, it copies all the
files in the web project to the deployment folder and I can access pages that were not supposed to be included by the associated web application project. Currently my Release configuration is set to build the AjaxControlToolkit, our own framework, and the
web deployment project. (It doesn't seem to matter whether or not I build the web application project).
The only solution I found that works was to create a temporary folder and then select the Web Application Project in solution explorer and Publish to the Temporary folder. I then added the temporary folder as am existing web site project and created a deployment
project for it, then removed the temporary folder project from the solution. I then have to build the web deployment project that points at this temporary folder and then publishes to another folder. This seems to work, but I would prefer a one step process
as I don't trust everyone else to do this properly. I tried writing bat files to do this, but never figured it out.
It seems to me that web deployment projects should respect the file inclusion choices specified in the web application project they are associated with. If anyone knows a way to do this, without manually specifying the exlusions in the web deployment project,
I would really appreciate any suggestions.
Web Application Project
Web Deployment Project
Aug 15, 2007 02:08 AM|jusbuc2k|LINK
I'm also having this same exact issue. The deployment projects seem to just cause a build of all files in the folder ("Web Site" style instead of "Web Application" style build). I'm guessing this is an oversight by someone as there doesn't appear to be
an option to honor the project file. What's strange is that the project file is referenced in the deployment project file (and "Web Site" projects have no project file), but it doesn't appear to use it.
Jun 29, 2008 06:33 AM|einar|LINK
Has this issue been resolved yet?
I know that it's possible to exclude files/folders by adding <ExcludeFromBuild> tag(s) to the <ItemGroup> tag, but I still think that this should not be neccesary. The Web Deployment Project build process should be able to read information this from the
project begin built, shouldn't it?
web deployment projects
Web Deployment 2008