Declined
Last Updated: 13 May 2022 12:57 by ADMIN
Steve
Created on: 09 May 2022 23:58
Category: UI for WinForms
Type: Bug Report
0
Bug - Can't Resolve Nuget Reference in Freshly Created Telerik WinForms Core Project
  • I'm using Visual Studio 2022 Community. Running as Admin.
  • I've installed the latest Winforms (Telerik_UI_For_WinForms_2022_1_222_Dev.msi)
  • I open Visual Studio and select to create a Word-like project.
  • The files are all created
  • One nuget reference is present under Dependencies/Packages, but shows as unresolved (UI.for.WinForms.AllControls.Net60 (2022.1.222.0))
  • Using the NuGet Package Manager, there is no Telerik package source present.

So, at this point this seems to be a possible bug. The template project did not setup correctly. I have literally done nothing other than download and install Telerik WinForms today and then try to create this project. This _should_ work or give me instructions of further setup that I have to do manually.

I did try a couple other things, but also failed to get things working.

  • I tried to setup the Telerik Package Source as https://nuget.telerik.com/v3/index.json
  • I was able to see various WinForms packages in the Package Manager, includes the one registered in the project. But VS won't update the project to resolve the package.
  • I uninstalled the nuget package to try reinstalling it, but the re-install failed with the following messages

Restoring packages for C:\DevGit\pws\pws.core\pws.core\pws.core.csproj...
  GET https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/index.json
  GET https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0
  OK https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/index.json 90ms
  GET https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/2022.1.222/ui.for.winforms.allcontrols.net60.2022.1.222.nupkg
  NotFound https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0 147ms
  GET https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0
  NotFound https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0 42ms
  GET https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0
  NotFound https://nuget.org/FindPackagesById()?id='UI.for.WinForms.AllControls.Net60'&semVerLevel=2.0.0 40ms
  OK https://nuget.telerik.com/v3/package/ui.for.winforms.allcontrols.net60/2022.1.222/ui.for.winforms.allcontrols.net60.2022.1.222.nupkg 235ms
  GET https://nuget.telerik.com/v3/package/system.management/index.json
  GET https://nuget.org/FindPackagesById()?id='System.Management'&semVerLevel=2.0.0

....

followed by many more "NotFound" messages.

 

 

 

 

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 13 May 2022 12:57

Hello, Steve,

I am glad that the provided information was useful and the problem you were facing is now resolved.

However, if you succeed to identify any steps that lead consistently to the undesired behavior, please let me know.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Steve
Posted on: 11 May 2022 18:30

Hi Dess,

Thank you for your detailed reply. I was able to get things working finally with your assistance.

I believe the problem all started because the telerik nuget source was initially missing.

After that I think it may have been mostly me breaking things and then trying to fix them again.

One thing that may have made a difference was that I downloaded the Control Panel and repaired or reinstalled WinForms. I did not initially use the Control Panel.

During that step I believe it asked if I wanted to create some nuget directory. I replied, yes.

I don't know if this made the difference.

It could also have simply been selecting "All" for package source, which I think I was not doing after I started messing around with different nuget sources.

The program compiled and ran.

Thanks for the assistance..

 

 

 

 

 

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 10 May 2022 12:30

Hello, Steve, 

I am really sorry to hear that you are experiencing any difficulties with the NuGet package restoring after creating a new .Net6 Word-inspired template project. Our package depends on other packages on nuget.org. It may be possible that by adding the Telerik feed it has removed the Microsoft one. In this case it won't be able to install our package because of their dependencies. The second image suggests something similar. 

Following the provided information, I was unable to replicate the problem you are facing. The following screenshots demonstrates the exact steps I performed on my end and what is the observed result:

 

The UI.for.WinForms.AllControls.Net60 NuGet is successfully restored.

Please make sure that nuget.org has the following source:

Select the All option in the Package Source:

I would recommend you to have a look at the following help article demonstrating two approaches for managing the Nuget packages:

https://docs.telerik.com/devtools/winforms/visual-studio-integration/install-using-nuget

You can either manually download the NuGet package, or download it from the NuGet server. Please give both approaches a try and see how it would work on your end.

In case you are still experiencing any further difficulties, it would be greatly appreciated if you can provide a sample video demonstrating the exact steps you perform and the behavior you observed. Thank you in advance.

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.