Hello,
Environment: Visual Studio 2005 SP1, Web Deployment Projects installed
I hava Web Application project (updated from Visual Studio 2003) and a Web
Deployment for that web application. The problem is when I build the
deployment project, far more files than necessary end up in the .\debug
directory. Effectively, all files from the original web application copied
to the .\debug directory, including the *.csproj files, the *.resx files and
so on.
Any idea what could cause this?
The Project file looks like this:
<!--
Microsoft Visual Studio 2005 Web Deployment Project
http://go.microsoft.com/fwlink/?LinkId=55111
-->
<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == ''
">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.60403</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{1A0F2EF3-DBB1-4091-80E2-DF6373E18D2B}</ProjectGuid>
<SourceWebPhysicalPath>..\WebConfiguration</SourceWebPhysicalPath>
<SourceWebProject>{C2DC21FE-167D-4C0B-A128-2A464CA6D91F}|Addins\Core\WebConfiguration\CoreCon figuration.csproj</SourceWebProject>
<SourceWebVirtualPath>/CoreConfiguration.csproj</SourceWebVirtualPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>.\Debug</OutputPath>
<EnableUpdateable>false</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>CoreConfiguration</SingleAssemblyName>
<KeyFile>..\..\..\Keys\keyfile.snk</KeyFile>
<UseWebConfigReplacement>false</UseWebConfigReplacement>
<ContentAssemblyName>
</ContentAssemblyName>
<DeleteAppCodeCompiledFiles>false</DeleteAppCodeCompiledFiles>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<OutputPath>.\Release</OutputPath>
<EnableUpdateable>false</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>CoreConfiguration</SingleAssemblyName>
<KeyFile>..\..\..\Keys\keyfile.snk</KeyFile>
<UseWebConfigReplacement>false</UseWebConfigReplacement>
<ContentAssemblyName>
</ContentAssemblyName>
<DeleteAppCodeCompiledFiles>false</DeleteAppCodeCompiledFiles>
</PropertyGroup>
<ItemGroup>
</ItemGroup>
<Import
Project="$(MSBuildExtensionsPath)\Microsoft\WebDep loyment\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.-->
<Target Name="BeforeBuild">
</Target>
<Target Name="BeforeMerge">
</Target>
<Target Name="AfterMerge">
<Copy SourceFiles="@(PrecompiledOutput)"
DestinationFolder="$(Destination)" />
</Target>
<Target Name="AfterBuild">
</Target>
</Project>
Addtionally, I have checked the WebApplication project, but those files
which appear in the output folder do have a build action set to "None".
Best regards,
Henning Krause