无法找到版本(> = 2022.1222.1)的软件包telerik.ui.for.xamarin

发布于 2025-02-11 02:03:47 字数 3525 浏览 1 评论 0 原文

我们有一个Xamarin项目,我们需要开始在Mac上进行调试。我们使用MacIncloud服务。

从源控制中克隆项目后,我遇到以下错误 - >无法找到具有版本(> = 2022.1222.1)的telerik.ui.for.xamarin的软件包。它一旦克隆了该项目,就会出现“无法还原软件包”。

我需要哪些选择来解决此问题?

我尝试从包装目录中删除包装,并在CSPROJ ASWELL中删除参考。

我无法在MacIncloud上使用Admin权利,因此无法进行Telerik的手动安装。

日志文件>这是整个日志文件 - 获取project/users/user219905/documents/github/github/gts-mobile/gtsapp/gtsapp/gtsapp/gtsapp.csproj获取还原信息 获取project/users/user219905/documents/github/gts-mobile/gtsapp/gtsapp.ios/gtsapp.ios.csproj的还原信息。 获取project/users/user219905/documents/github/gts-mobile/gtsapp/gtsapp.android/gtsapp.android.csproj 通过4个并发作业运行还原。 阅读项目文件/user/user219905/documents/github/gts-mobile/gtsapp/gtsapp/gtsapp/gtsapp.csproj。 为/users/user219905/documents/github/gts-mobile/gtsapp/gtsapp/gtsapp/gtsapp.csproj恢复软件包。 恢复.netStandard的软件包,版本= v2.0 ... 获取 获取 https://nuget.devexpress.com/xrmaautijgntlkc1o83zlgvkkkkkkr2ibgsdfubeliifu3oq2ku77/api/api/findpackagesbyid()) 获取 get https://nuget.devexpress.com/xrmaaautijgntlkc1o83zlgvkkkkkkkkkr2ibgsdfubeliifu3oq2ku77/api/findpackagesbagessbyid()? notfound 172ms OK 173ms ok https://nuget.devexpress.com/xrmaaautijgntlkc1o83zlgvkkkkkkkkkkkr2bsdfubeliifu3oq2ku77/api/findpackagesbagesbagesbagesbyid()? ok https://nuget.devexpress.com/xrmaautijgntlkc1o83zlgvkkkkkkr2ibgsdfubeliifu3oq2ku77/api/api/findpackagesbyid()) 解决.netStandard的冲突,版本= v2.0 ... 无法找到具有版本(> = 2022.1.222.1)的telerik.ui.for.xamarin

  • 在nuget.org中找到1个版本[最近的版本:2015.3.1202]
  • 在devexpress中找到了0个版本 无法找到包装telerik.ui.for.xamarin.datagrid。来源中没有此ID的包裹:devexpress,nuget.org 软件包“ Microsoft.bcl 1.1.10”是使用'.netFramework恢复的,版本= v4.6.1,.netFramework,version = v4.6.2,.netframework,version = v4.7,.netframework,.netframework,version = v4.7.1,。 NetFramework,版本= v4.7.2,.netFramework,版本= v4.8'而不是项目目标框架'.netStandard,version = v2.0'。该软件包可能与您的项目完全不兼容。 软件包'Microsoft.net.http 2.2.29'已使用'.netFramework恢复,版本= v4.6.1,.netFramework,版本= v4.6.2,.netframework,vyse = v4.7,.netframework,.netframework,vyse = v4.7.1.1.1.1.1.1.1.1.1.1.1.1.1.1 ,.netFramework,版本= v4.7.2,.netFramework,版本= v4.8'而不是项目目标框架'.netStandard,version = v2.0'。该软件包可能与您的项目完全不兼容。 软件包还原失败。回滚包装更改为“ GTSAPP”。

We have a Xamarin project, and we need to start debugging on MAC. We use the MacInCloud Service.

After cloning the project from source control, I encounter the following error -> Unable to find package Telerik.UI.for.Xamarin with version(>=2022.1222.1). It appears as soon as the project is cloned and with the the 'Could not restore packages'.

What options do I have to resolve this issue?

I have tried removing the the package from the Packages directory and removed the reference in the csproj aswell.

I can't do a manual install of telerik as we do not have admin rights on MacInCloud.

The log file >This is the entire log file - Getting restore information for project /Users/user219905/Documents/GitHub/gts-mobile/GtsApp/GtsApp/GtsApp.csproj
Getting restore information for project /Users/user219905/Documents/GitHub/gts-mobile/GtsApp/GtsApp.iOS/GtsApp.iOS.csproj
Getting restore information for project /Users/user219905/Documents/GitHub/gts-mobile/GtsApp/GtsApp.Android/GtsApp.Android.csproj
Running restore with 4 concurrent jobs.
Reading project file /Users/user219905/Documents/GitHub/gts-mobile/GtsApp/GtsApp/GtsApp.csproj.
Restoring packages for /Users/user219905/Documents/GitHub/gts-mobile/GtsApp/GtsApp/GtsApp.csproj...
Restoring packages for .NETStandard,Version=v2.0...
GET https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin/index.json
GET https://nuget.devexpress.com/xRMAAuTIJGNTlKc1O83zlgVKkkr2ibgsDfUBelIIfu3Oq2Ku77/api/FindPackagesById()?id='Telerik.UI.for.Xamarin'&semVerLevel=2.0.0
GET https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin.datagrid/index.json
GET https://nuget.devexpress.com/xRMAAuTIJGNTlKc1O83zlgVKkkr2ibgsDfUBelIIfu3Oq2Ku77/api/FindPackagesById()?id='Telerik.UI.for.Xamarin.DataGrid'&semVerLevel=2.0.0
NotFound https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin.datagrid/index.json 172ms
OK https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin/index.json 173ms
OK https://nuget.devexpress.com/xRMAAuTIJGNTlKc1O83zlgVKkkr2ibgsDfUBelIIfu3Oq2Ku77/api/FindPackagesById()?id='Telerik.UI.for.Xamarin.DataGrid'&semVerLevel=2.0.0 367ms
OK https://nuget.devexpress.com/xRMAAuTIJGNTlKc1O83zlgVKkkr2ibgsDfUBelIIfu3Oq2Ku77/api/FindPackagesById()?id='Telerik.UI.for.Xamarin'&semVerLevel=2.0.0 502ms
Resolving conflicts for .NETStandard,Version=v2.0...
Unable to find package Telerik.UI.for.Xamarin with version (>= 2022.1.222.1)

  • Found 1 version(s) in nuget.org [ Nearest version: 2015.3.1202 ]
  • Found 0 version(s) in DevExpress
    Unable to find package Telerik.UI.for.Xamarin.DataGrid. No packages exist with this id in source(s): DevExpress, nuget.org
    Package 'Microsoft.Bcl 1.1.10' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
    Package 'Microsoft.Net.Http 2.2.29' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
    Package restore failed. Rolling back package changes for 'GtsApp'.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光暖心i 2025-02-18 02:03:47

这是对我有用的,希望它对其他人会使用,

我使用

dotnet nuget locals --list all

了Mac中的所有可用nugets清单

dotnet nuget locals --clear all

来清除nugets,但是这些都没有修复任何东西。

再次用于

dotnet nuget locals --list all

检查nuget位置(在Mac中,使用此图显示隐藏的文件 - 命令 + shift +。),从那里删除所有可用的nugets,然后检查

NuGet.Config

文件

/Users/"YOUR_USERNAME"/.nuget/NuGet/NuGet.Config

的内部可能看起来正确Telerik V3服务器,但罪魁祸首不是。

检查一下,

/Users/"YOUR_USERNAME"/.config/NuGet/NuGet.Config

您会看到旧服务器URL仍在那里。 edit( https://nuget.telerik.com/v3/index.json.json ) ,保存和运行项目。

瞧!!!

This is what worked for me and hopefully, it will for others,

I used

dotnet nuget locals --list all

list all available nugets in MAC and used,

dotnet nuget locals --clear all

to clear nugets, but those are not fixing anything.

again used

dotnet nuget locals --list all

to check Nuget locations (in mac, use this to show hidden files - Command + Shift + . ), delete all available Nugets from there and check the inside of

NuGet.Config

The file in

/Users/"YOUR_USERNAME"/.nuget/NuGet/NuGet.Config

may look correct with the Telerik V3 server, but the culprit is not that.

Check this,

/Users/"YOUR_USERNAME"/.config/NuGet/NuGet.Config

and you will see old server url is still there. Edit (https://nuget.telerik.com/v3/index.json), save and run project.

VOILA !!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文