为什么 Bridge.net 不编译 HashSet<T> 或 Stack<T>

Why does Bridge.net not compile HashSet<T> or Stack<T>

我正在使用 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知识有限,没能弄明白。

这是一个已知问题,答案在此处描述:https://forums.bridge.net/forum/community/help/2902-c-compile-error-the-type-stopwatch-exists-in-both-system-and-bridge

Yes, you have to remove System reference from your csproj file Also I can suggest to add the following reference to prevent adding System reference by Visual Studio

<Reference Include="System" Condition="False" />