2 个或多个程序集具有相同的标识

发布于 2024-11-18 17:33:56 字数 1090 浏览 2 评论 0 原文

我正在使用 Visual Studio 2010 并用 C# 创建 Windows 窗体。昨天,开发进展顺利,我正在努力将访问数据库连接到我的数据网格。它工作了几次,但是当我建立一个新连接并尝试再次运行它(F5)时,我遇到了大量错误,因此通过删除(和撤消)我的数据源来缩小范围,但错误仍然存​​在。就是这个...

警告 1 “C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\Form1.Designer.cs”中的类型“Wincent_Warehouse_Management_Studios.Form1”与导入的冲突输入“Wincent_Warehouse_Management_Studios.Form1”

警告 7 两个或多个程序集具有相同的标识“Wincent Warehouse Management Studios,Version=1.0.0.0,Culture=neutral,ProcessorArchitecture=x86”。 Wincent仓库管理工作室

警告 8 两个或多个文件具有相同的目标路径“C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\bin\Debug\Wincent Warehouse Management Studios”。 EXE文件'。 Wincent仓库管理工作室

发出警告后,它给了我这个错误......

没有可用的来源 没有为任何堆栈帧加载任何符号。无法显示源代码

我可以看到问题,但我不太确定如何解决它...我知道在我的程序中的某个地方(而不是我自己的代码)我包含了一些导致我的程序冲突。所以我尝试的是进入 bin/debug 文件夹并删除其中的所有内容......并且它有效。然而,当该目录中的文件被补充后,我又遇到了同样的问题。我迫切需要帮助,任何类型的线索都将不胜感激!谢谢! :)

I'm using Visual Studio 2010 and creating a Windows Form in C#. Yesterday, development was going fine, i was working on connecting an access database to my datagrid. it worked several times, however when i made a new connection and tried to run it again (F5), i got a ton of errors, so a narrowed it down by deleting (and undoing) my data sources and the error still exists. This is it...

Warning 1 The type 'Wincent_Warehouse_Management_Studios.Form1' in 'C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\Form1.Designer.cs' conflicts with the imported type 'Wincent_Warehouse_Management_Studios.Form1'

Warning 7 Two or more assemblies have the same identity 'Wincent Warehouse Management Studios, Version=1.0.0.0, Culture=neutral, ProcessorArchitecture=x86'. Wincent Warehouse Management Studios

Warning 8 Two or more files have the same target path 'C:\Users\Wilson Kao\documents\visual studio 2010\Projects\Wincent Warehouse Management Studios\Wincent Warehouse Management Studios\bin\Debug\Wincent Warehouse Management Studios.exe'. Wincent Warehouse Management Studios

After the warnings, it gave me this error...

No Source Available
No Symbols are loaded for any stackframe. The source code could not be displayed

I can sort of see the problem but I'm not too sure how to solve it... I know in my program somewhere (and not my own code) I am including something that causes my program to conflict. So what I tried was I went to the bin/debug folder and deleted everything in it... and it worked. However, after the files in that directory were replenished, I got the same problem again. I'm in some desperate need for help and any sort of clue where to go will be greatly appreciated! Thanks! :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热血少△年 2024-11-25 17:33:56

这对我有用,但我在 VS 2010 Pro 中使用VB

我收到了类似的警告“两个或多个文件具有相同的目标路径...”以及“两个或多个程序集具有相同的标识...”,这是在发布我的项目并启用 ClickOnce 安全性后发生的。

对我有用的修复是:

  1. 打开项目属性对话框,属性> “projectname”属性
  2. 打开“发布”选项卡。选择“应用程序文件”
  3. 我的项目“exe”文件 EG 有两个条目:- Accounts.exe。选择重复项之一,选择“发布状态”下拉列表,选择“排除”,
  4. 然后单击“立即发布”

This worked for me but I'm using VB in VS 2010 Pro.

I have had a similar warning "Two or more files have the same target path ..." along with "Two or more assemblies have the same identity....." this has occurred after publishing my project, with the ClickOnce Security enabled.

The fix that worked for me was:

  1. Open the project properties dialog, Properties > "projectname" Properties
  2. Open the "publish" tab. Select "Application Files"
  3. I had two entries for my projects "exe" file EG:- Accounts.exe. Pick one of the duplicates select the "Publish Status" drop down select "Exclude"
  4. Then click "Publish Now"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文