2017-06-05 73 views
0

我用这个系列ASP.NET上CQRS/ES工作:哪个软件包或程序集有ISession?

https://www.exceptionnotfound.net/real-world-cqrs-es-with-asp-net-and-redis-part-2-the-write-model/

我的问题是在某处,它使用的Isession的代码,我不知道什么是汇编/包都有它。文档基础我需要安装CQRSLite,但是当我尝试安装它时,出现错误。

private readonly ISession _session; 

这是我收到的错误:

Could not install package 'CqrsLite 0.12.9'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.   

我使用Visual Studio 2015和.NET 4.5。

回答

0

可能有一种更明智的方法,但我在编辑器中右键单击类名并选择“转到定义”。

它反汇编类,在顶部显示程序集的名称和它的引用。如果它是一个Nuget包,它会给你包的名字。

#region Assembly EPPlus, Version=4.1.0.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1 
// C:\.. etc... etc...\packages\EPPlus.4.1.0\lib\net40\EPPlus.dll 
//      ^^^^^^^^^^^^^^^^^^^^ 
#endregion 
+0

这是工程,它的参考项目中存在,我正在写它,它并没有任何地方参考。 – nik

0

我需要将项目的版本更改为NETFramework 4.6.1并安装CQRSLite软件包。

相关问题