VWD问题:将项目的已编译DLL视为重复程序集

时间:2009-08-19 18:41:51

标签: visual-studio-2008 debugging

在我重新编译我的项目之后,它产生了大量以下的错误:

Warning CS0436
The type 'AAA.Data.Report' in 'E:\Projects\AAA\AAA\Data\Entities.Designer.cs' conflicts with the imported type 'AAA.Data.Report' in 'e:\Projects\AAA\AAA\bin\Rlp.dll'. Using the type defined in 'E:\Projects\AAA\AAA\Data\Entities.Designer.cs'.
File: E:\Projects\AAA\AAA\Data\Entities.Designer.cs
Line: 16
Column: 306
Project: AAA


Error CS0121
The call is ambiguous between the following methods or properties: 'AAA.Components.Functions.TriggerButtonClickOnReturn(System.Web.UI.WebControls.TextBox, System.Web.UI.WebControls.Button)' and 'AAA.Components.Functions.TriggerButtonClickOnReturn(System.Web.UI.WebControls.TextBox, System.Web.UI.WebControls.Button)'
File: E:\Projects\AAA\AAA\Pages\Search.aspx.cs
Line: 17
Column: 17
Project: AAA

在删除文件AAA.dll(项目的程序集)之前,项目不会编译。 这真是令人沮丧,如果有人遇到这样的错误,请帮助我。

1 个答案:

答案 0 :(得分:0)

我所做的(作为一种解决方法)对我有用,我创建了一个控制台应用程序,可以在建筑物之前手动删除网站的dll。

我在网站的构建活动中将其称为。<​​/ p>