问题描述
在我的 winforms 应用程序中,我希望允许用户将 Bing Maps 组件的屏幕截图复制到剪贴板(至少)。
我从 here 中找到了以下代码,它超出了这个范围,但它不能为我编译。
1>C:\Users\bclay\source\repos\MyMaps\MyMaps\Form1.cs(394,78,394,97): error CS0246: The type or namespace name 'IRandomAccessStream' could not be found (are you missing a using directive or an assembly reference?)
我得到的编译时错误消息是关于 IRandomAccessStream 的:
1>C:\Users\bclay\source\repos\MyMaps\MyMaps\Form1.cs(8,7,8,14): error CS0246: The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?)
所以我找到了 this,这表明我需要的“使用”是使用 Windows.Storage.Streams;
...但是当我添加它时,我被告知找不到“Windows”命名空间:
R 4.0.4
我需要做什么/更改/添加才能使其在 Winforms 上工作?还是在我的情况下需要完全不同的方法?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)