我正在使用Visual Studio 13社区。创建了一个简单的WinForms项目,创建了一个空类并继承了ReactiveObject。我已经使用NuGet安装了reactivui-winforms 6.5.0。我可以看到ver 1.0.0已经安装,Splat在参考文献中。
代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ReactiveUI;
using Splat;
namespace ReactiveSplatTest
{
class ReactiveObjectTest : ReactiveObject
{
}
}
在Splat参考的属性中,路径为:
c:\users\rick reynolds\documents\visual studio
2013\Projects\ReactiveSplatTest\packages\Splat.1.0.0\lib\Net45\Splat.dll
我已经确认这是正确的路径。那个文件Splat.dll确实存在。
C:\Users\Rick Reynolds\Documents\Visual Studio
2013\Projects\ReactiveSplatTest\packages\Splat.1.0.0\lib\Net45
每次构建时都会收到此警告和错误...
警告1:
Reference to type 'Splat.IEnableLogger' claims it is defined in 'c:\Users\Rick Reynolds\Documents\Visual Studio
2013\Projects\ReactiveSplatTest\packages\Splat.1.0.0\lib\Net45\Splat.dll',
but it could not be found c:\Users\Rick Reynolds\Documents\Visual Studio
2013\Projects\ReactiveSplatTest\packages\reactiveui-
core.6.5.0\lib\Net45\ReactiveUI.dll ReactiveSplatTest
错误2:
The base class or interface 'Splat.IEnableLogger' in assembly 'Splat,
Version=1.6.2.0, Culture=neutral, PublicKeyToken=null' referenced by type
'ReactiveUI.IReactiveObject' could not be resolved c:\Users\Rick Reynolds\Documents\Visual Studio
2013\Projects\ReactiveSplatTest\packages\reactiveui-
core.6.5.0\lib\Net45\ReactiveUI.dll ReactiveSplatTest