Last post May 05, 2010 10:54 AM by jballh
Jan 28, 2008 02:03 PM|jjamjatra|LINK
For some unknown reason, my Web Deployment project is suddenly not allowing me to publish to my remote host Cannot find any information on 'Unload Project' option - should I just try it ? Here is what I am facing now (selecting the WDP does not expose the
Publish menu option (greyed out)):
Opened the project file for my WDP and found these warnings (but the whole solution builds without error):
Warning 1 The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'SourceWebPhysicalPath' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'.
C:\Documents and Settings\johna\Local Settings\Temp\Dir1\ShowSummaryData.vbproj_deploy.wdproj 12 6 Miscellaneous Files
I get the same warning complaining that 'EnableUpdateable' is an invalid child element.
Here is the entire project file pasted below:
Microsoft Visual Studio 2005 Web Deployment Project
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.WebDeployment.targets.
Jan 28, 2008 09:25 PM|alisonlu|LINK
You won't see the Publish menu option available when a WDP is selected. If you want to deploy your website using a WDP and the configurations you made in there, all you need to do is build the WDP. You will see your precompiled website built to the location
you specified as the "Target Folder:" of the WDP (on your local system). When you open the actual WDP file and see the warnings about schema, that is expected. They are harmless.
If you wanted to deploy your website using the Build->Publish menu item, you will have to first select the Website project in the solution explorer. Then the Publish Website feature will become enabled. This feature is different from WDP but will allow
you to specify a remote server destination as your output folder.
Hope this helps,
Jan 29, 2008 03:50 PM|jjamjatra|LINK
Thank you - this did help.
Yesterday, I thought I was doing exactly what you said above but I was not seeing the Publish menu item exposed in the Build choices when I had my web app project selected. In fact, it seemed intermittent which made no sense to me. But today, it behaved
like you said. Maybe I was just having a bad day. Thank you - marked above as the Answer.
May 05, 2010 10:54 AM|jballh|LINK
how can I use the Build->Publish command to publish the compiled WDP output instead of the Website Project source code? I don't understand why this seems to be not possible...