简体   繁体   English

安装NServiceBus NuGet程序包后,我的项目不包含任何其他DLL引用。

[英]After installing the NServiceBus NuGet package my project does not contain any additional DLL references

I am using Visual Studio 2010 and want to add NServiceBus to my project. 我正在使用Visual Studio 2010,并想将NServiceBus添加到我的项目中。

Whether I use the Package Manager GUI, or the Package Manager Console, after installing the NuGet package, the project does not contain any additional assemblies in the project References, and therefore cannot reference any of the NServiceBus classes from my code. 无论我是使用Package Manager GUI还是Package Manager控制台,在安装NuGet软件包之后,该项目在项目引用中均不包含任何其他程序集,因此无法从我的代码中引用任何NServiceBus类。

If I manage packages for the solution it says that the package is installed, and when I open the packages.config file it contains this line: 如果我为该解决方案管理软件包,则说明软件包已安装,当我打开packages.config文件时,该行包含以下内容:

<package id="NServiceBus" version="5.1.2" targetFramework="net40" />

But there is no NServiceBus classes available to my application. 但是我的应用程序没有可用的NServiceBus类。

It seems like your project is .Net 4.0. 看来您的项目是.Net 4.0。 NServiceBus v5 requires .Net 4.5 NServiceBus v5需要.Net 4.5

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

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