我正在尝试将MvvmCross从5.x.x版本升级到6.0.0。我的核心项目更新得很好,但在更新我的Android项目时遇到了问题。我得到了以下错误:
Summary of time taken to gather dependencies per source :
https://api.nuget.org/v3/index.json - 51.79 ms
Attempting to resolve dependencies for package 'MvvmCross.6.0.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'MvvmCross.6.0.0'
Resolved actions to install package 'MvvmCross.6.0.0'
Retrieving package 'MvvmCross 6.0.0' from 'nuget.org'.
For adding package 'MvvmCross.6.0.0' to project 'Listing.Mobile.Droid' that targets 'monoandroid81'.
For adding package 'MvvmCross.6.0.0' to project 'Listing.Mobile.Droid' that targets 'monoandroid81'.
Adding package 'MvvmCross.6.0.0' to folder 'C:\VSProjects\Listing\packages'
Added package 'MvvmCross.6.0.0' to folder 'C:\VSProjects\Listing\packages'
Added package 'MvvmCross.6.0.0' to folder 'C:\VSProjects\Listing\packages' from source 'https://api.nuget.org/v3/index.json'
Install failed. Rolling back...
Package 'MvvmCross.6.0.0' does not exist in project 'Listing.Mobile.Droid'
Executing nuget actions took 2.66 sec
Failed to add reference to 'MvvmCross'.
Reference unavailable.
Time Elapsed: 00:00:03.0575672
========== Finished ==========我不确定这是NuGet问题、MvvmCross问题还是其他问题。我删除了对MvvmCross 5.x.x的所有引用,但都没有效果。我已经删除了我的包文件夹的内容,但仍然什么也没有。有人遇到过这个问题吗?
发布于 2018-04-17 12:08:44
我正在使用VS2017。我删除了这个问题。project.json.lock。这可能是我将项目从VS2015转换为VS2017项目设置时遗留下来的。一旦删除,我就能够为所有需要的MvvmCross包添加引用。
发布于 2018-10-30 15:28:25
您的项目以.framework 4.5为目标,如果您想使用6.0.0,则必须创建针对.net标准1.0及以上的跨平台解决方案
https://stackoverflow.com/questions/49833594
复制相似问题