Hi there,
I had the same problem. You can explicitly specify what files and or directories not to include in the output.
Right click on your Web Deployment Project and select Open Project File.
You will see the xml for the project file. Add the following xml.
<ItemGroup>
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.csproj" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.user" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\App_Code_Old\**\*.*" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\obj\**\*.*" />
<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\Properties\**\*.*" />
</ItemGroup>
There should already be an ItemGroup tag.
Include any other files you want omitted. How ever for deployement you will need the web.config and bin folders.
Hope this helps.
Artin
[email protected]