简体   繁体   English

找不到System.Deployment文件Visual Studio 2017 OpenCV

[英]Can't find System.Deployment file Visual Studio 2017 OpenCV

在此处输入图片说明 I am having a problem with the project I downloaded that demonstrates openCV. 我下载的演示openCV的项目有问题。 I am using Visual Studio 2017 for Mac. 我正在使用Visual Studio 2017 for Mac。 My problem was that some references are missing, such as Emgu.CV.Ul. 我的问题是缺少一些引用,例如Emgu.CV.Ul。

Previously, I got the following error. 以前,我收到以下错误。

The type initializer for 'Emgu.CV.MatInvoke' threw an exception. “ Emgu.CV.MatInvoke”的类型初始值设定项引发了异常。

So what I did was Reference -> Edit Reference(for some reason, my VS does not have add reference) -> .Net Assembly -> locate those files and add. 所以我所做的是参考->编辑参考(由于某种原因,我的VS没有添加参考)-> .Net汇编->找到那些文件并添加。

But References indicates that System.Deployment is still missing. 但是参考资料表明仍缺少System.Deployment。 Where can I find this file? 在哪里可以找到此文件? I can't find it online. 我在网上找不到。

My VS does not have this file. 我的VS没有此文件。 Please look at the picture. 请看图片。 System.Deployment can't be found. 找不到System.Deployment。

According to MSDN: The System.Deployment namespaces contain types that support deployment of ClickOnce applications. 根据MSDN: System.Deployment命名空间包含支持ClickOnce应用程序部署的类型。

It should be available for you to add as a reference in your project: 您应该可以在项目中添加它作为参考:

系统部署参考

Using VS2015 I had to do the following: 使用VS2015,我必须执行以下操作:

选择添加参考

选择系统部署

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM