Am having an issue with building my web deployment project - it doesn't actually affect the end result, but I'd like to know how to solve the reported warning. AFAIK, CS0436 means that a class is declared twice within the solution, but in this case, it's
only declared once but copied into a temp folder and it's the copy that's the cause of the problem. I'm at a loss because I can't control how the WDP works and therefore avoid the clash. Here's the top of the output - I get about fifteen CS0436 errors, all
in the same format.
Any suggestions would be greatfully accepted.
Dan
------ Build started: Project: EBS.Web.csproj_deploy, Configuration: Release Any CPU ------
if exist ".\TempBuildDir\" rd /s /q ".\TempBuildDir\"
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /EBS.Web.csproj -p D:\CodeSvn\EBS.Web.csproj_deploy\Source -f .\TempBuildDir\
d:\CodeSvn\EBS.Web.csproj_deploy\Source\App_Code\SiteMasterPage.cs(10): warning CS0436:
The type 'EBS.Web.MasterMessageItem' in 'c:\Users\dan.CWEB\AppData\Local\Temp\Temporary ASP.NET Files\ebs.web.csproj\9d0f2c80\74651221\App_Code.3.cs' conflicts with the imported type 'EBS.Web.MasterMessageItem' in 'c:\Users\dan.CWEB\AppData\Local\Temp\Temporary
ASP.NET Files\ebs.web.csproj\9d0f2c80\74651221\assembly\dl3\4aa7284d\b2571d87_e7bbc801\EBS.Web.DLL'. Using the type defined in 'c:\Users\dan.CWEB\AppData\Local\Temp\Temporary ASP.NET Files\ebs.web.csproj\9d0f2c80\74651221\App_Code.3.cs'.
Web Deployment Project
--------------------
Dan Maharry
Author, Programming ASP.NET 3.5
www.hmobius.com
HMobius
Member
116 Points
40 Posts
CS0436 problems with WDP 2008
May 22, 2008 09:11 AM|LINK
Hi,
Am having an issue with building my web deployment project - it doesn't actually affect the end result, but I'd like to know how to solve the reported warning. AFAIK, CS0436 means that a class is declared twice within the solution, but in this case, it's only declared once but copied into a temp folder and it's the copy that's the cause of the problem. I'm at a loss because I can't control how the WDP works and therefore avoid the clash. Here's the top of the output - I get about fifteen CS0436 errors, all in the same format.
Any suggestions would be greatfully accepted.
Dan
------ Build started: Project: EBS.Web.csproj_deploy, Configuration: Release Any CPU ------
if exist ".\TempBuildDir\" rd /s /q ".\TempBuildDir\"
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /EBS.Web.csproj -p D:\CodeSvn\EBS.Web.csproj_deploy\Source -f .\TempBuildDir\
d:\CodeSvn\EBS.Web.csproj_deploy\Source\App_Code\SiteMasterPage.cs(10): warning CS0436:
The type 'EBS.Web.MasterMessageItem' in 'c:\Users\dan.CWEB\AppData\Local\Temp\Temporary ASP.NET Files\ebs.web.csproj\9d0f2c80\74651221\App_Code.3.cs' conflicts with the imported type 'EBS.Web.MasterMessageItem' in 'c:\Users\dan.CWEB\AppData\Local\Temp\Temporary ASP.NET Files\ebs.web.csproj\9d0f2c80\74651221\assembly\dl3\4aa7284d\b2571d87_e7bbc801\EBS.Web.DLL'. Using the type defined in 'c:\Users\dan.CWEB\AppData\Local\Temp\Temporary ASP.NET Files\ebs.web.csproj\9d0f2c80\74651221\App_Code.3.cs'.
Web Deployment Project
Dan Maharry
Author, Programming ASP.NET 3.5
www.hmobius.com