Unable to Add NuGet Packages to References in Monodevelop 5

我怕爱的太早我们不能终老 提交于 2019-12-11 10:27:53

问题


I recently got Monodevelop 5 up and running from the ermshiperete repository and got NuGet working only after changing the source URL for the gallery to point to a "go link" that uses API version 1.

After installing the latest versions of 'Entity Framework' and 'Microsoft ASP.NET MVC', I see they were added to my packages, which is cool and all, but I need them added to my references for things to work right? Well, I cannot add them to my project's references. When I 'edit references' it does not display them, it only displays packages that I believe already come with the mono installation. I cannot add Entity Framework or Microsoft ASP.NET MVC.

How can I add packages I install to my references?

Can provide screen shots to explain better, perhaps.

Thanks!

EDIT: Here are links to screenshots

References From Packages

Some of the packages

Also some background here is that I am new to .NET development, and have been working on this project in VS on a VM, but I would rather just use my normal OS.


回答1:


So I am assuming you used the Add Packages dialog in MonoDevelop 5 to add the NuGet packages to your project and that worked. So you see a packages.config file in your project and the packages inside a Packages folder in the Solution window.

Now the assembly references, if there are any defined in the NuGet package, are automatically added to your project when you add the NuGet package. You should be able to see them inside References/From Packages in the Solution window. The screenshot below shows ASP.NET MVC NuGet package and the Entity Framework NuGet package installed.

So you should not need to use the Edit References dialog for assembly references that are included in the NuGet package but only for other references from the GAC or to reference another project. When you open the Edit References dialog the assembly references from the NuGet package are shown on the right hand side of that dialog in the Selected References section.



来源:https://stackoverflow.com/questions/24854290/unable-to-add-nuget-packages-to-references-in-monodevelop-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!