我使用的是Bridge.net v17.10.1,根据Bridge.Core实现的文档。
HashSet<T> varName;
Stack<T> varName2;产生以下错误:
Error CS0433 The type 'HashSet<T>' exists in both 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'Bridge, Version=17.6.0.0, Culture=neutral, PublicKeyToken=null'
Error CS0433 The type 'Stack<T>' exists in both 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'Bridge, Version=17.6.0.0, Culture=neutral, PublicKeyToken=null' 也许是一些非常简单的东西,但是我的Bridge.Net知识是有限的,而且我还没有弄清楚。
发布于 2020-10-25 17:36:21
这是一个已知的问题,答案在这里描述:https://forums.bridge.net/forum/community/help/2902-c-compile-error-the-type-stopwatch-exists-in-both-system-and-bridge
是的,您必须从csproj文件中删除系统引用--我还可以建议添加以下引用,以防止Visual添加系统引用
<Reference Include="System" Condition="False" />https://stackoverflow.com/questions/64526660
复制相似问题