简体   繁体   English

无法在 Visual Studio 中添加项目引用

[英]Can't add a Project Reference in Visual Studio

I'm on a new PC and I wanted to do a Coding Project.我在一台新电脑上,我想做一个编码项目。 I wanted to code a Console App that uses your Clipboard.我想编写一个使用剪贴板的控制台应用程序。 I searched on how to do that and got the answer that I should use System.Windows.Forms.我搜索了如何做到这一点并得到了我应该使用 System.Windows.Forms 的答案。 But if I want to add a Project Reference, it doesn't show up the tab "Assemblies".但是如果我想添加一个项目参考,它不会显示“程序集”选项卡。 I installed every version of .net core and framework.我安装了每个版本的 .net 核心和框架。 I just can't add a project reference.我只是无法添加项目参考。 In the installation of VS I had not much Drive Space left, so I only checked the option .NET desktop development.在安装VS的时候我没有多少Drive Space,所以只勾选了.NET desktop development这个选项。

You have to Browse and include the file System.Windows.Forms.dll manually.您必须手动浏览并包含文件System.Windows.Forms.dll In my case, that file is in the following folder: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2就我而言,该文件位于以下文件夹中:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.7.2

参考经理

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

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