在Rider上设置GTK#

问题描述 投票:1回答:1

有人在骑手上设置GTK#运气吗?特别是在塞拉利昂,但我在Windows上遇到了类似的问题。运行

mcs -pkg:gtk-sharp-2.0 HelloWorld.cs

将编译得很好,但在Rider上我似乎无法找到任何典型的程序集(gtk-sharp,glib等等)。如何正确添加引用?

c# gtk# rider
1个回答
1
投票

解决方法是手动添加对csproj文件的引用:

<Reference Include="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
  <SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="gdk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
  <SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="glib-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
  <SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="glade-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
  <SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="pango-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
  <SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="atk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
  <SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="Mono.Posix" />
热门问题
推荐问题
最新问题