小编典典

如何使用Visual Studio Code引用程序集?

c#

我想在OSX上使用Visual Studio Code编写的控制台应用程序中引用System.Drawing.dll。即我想使用这些using语句

using System.Drawing;
using System.Drawing.Imaging;

避免这种构建错误

Program.cs(56,20): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?

我找不到有关此内容的教程,甚至都不知道该dll是否在.net core或mono中可用,或者是否使用任何visual-studio-code。


阅读 1058

收藏
2020-05-19

共1个答案

小编典典

新的.NET Core SDK restore命令是 dotnet restore

要在Visual Studio
Code中添加任何组装参考,请参阅我的文章

2020-05-19