我已经安装了 VS2015 CTP,创建了一个 vNext ConsoleApplication 并想使用 NodaTime。
我已经像这样添加了依赖项:
"dependencies": {
"NodaTime": "1.3.1"
},
包被恢复,但是当我尝试编译解决方案时,会出现警告:
Type NodaTime.Instant exists in the package: NodaTime 1.3.1, Supported frameworks: .NETFramework 3.5-Client;.NETPortable-net40+sl50+win+wpa81+wp80+MonoAndroid10+MonoTouch10+xamarinios10
然后编译器根本找不到该类型,告诉我:
The type or namespace name 'NodaTime' could not be found (are you missing a using directive or an assembly reference?)
关于如何解决这个问题的任何想法?我也可以将它添加为它存在的框架的依赖项吗?