Error when adding Telerik WPF VS 2022

0 Answers 319 Views
General Discussions
Rob
Top achievements
Rank 2
Iron
Iron
Iron
Rob asked on 22 Feb 2023, 09:46 PM

I get the following error when I try to add a Telerik WPF Form

Project template

Adding a WFP forms triggers this and nothing added?

So I tried a WPF .NET Core template and got prompted for this"

 

No idea how to proceed ... just trying to create a new project?

Rob.

Rob
Top achievements
Rank 2
Iron
Iron
Iron
commented on 23 Feb 2023, 11:08 PM

UPDATE: when I select the Microsoft WFP Template and selection .NET 7 it's VERY slow to initialize (see attached image) and then I get a VS warning that Telerik WinForms is taking too long (see attached image)?  I'm using the Microsoft WPF Template so why am I getting warnings about Telerik WinForms?

Also having an issue with the Telerik WPF Template projects, none of them allow me to select .NET 7 as the target?

Rob

 

Rob
Top achievements
Rank 2
Iron
Iron
Iron
commented on 24 Feb 2023, 05:19 AM

I went thru Telerik "First Steps" link and the examples were from VS 2019 and they are not the same as what is presented in VS 2022?

I best guessed my options and performed similar steps and was presented with this:

The highest version of .NET framework available is 4.8.1 from the dropdown?  I have .NET 7 SDK installed and can select it when using one of the Microsoft WPF templates but NOT when using a Telerik template?

Reading more in First Steps there is a suggestion for .NET Core 3.1 or later .NET versions I need to install a Microsoft.Windows.Compatibility package and says this happens automatically if you install the Telerik DLLS using nuget packages.  So more research and I found this NuGet package reference but no mention of .NET 7?

I attempted to setup a Microsoft WPF project that does reference .NET 7 and then I added Telerik latest WPF controls but they would not render nor work with program execution.

So it's unclear to me how to get Telerik UI WPF setup to work with .NET 7?

 

Rob.

Nikola
Telerik team
commented on 27 Feb 2023, 06:48 AM

Hello Rob,

Telerik UI for WPF currently offers two types of templates the Telerik C# WPF Application (.NET Framework) which creates a template targeting .NET Framework and Telerik C# WPF Application which is used to create a .NET Core application targeting versions 3.1 to 7.0

Initially, you created a .NET Framework application and tried to add an item template for .NET Core, hence the Unsupported template message appeared. Item templates are also separated into .NET Framework ones, marked with (.NET Framework), and .NET Core ones. Each could only be used in the corresponding application type. 

After you created the .NET Core template you got the prompt to enter your Telerik credentials, this is needed because the template references a NuGet package, that has to be restored from the Telerik private feed. When you enter the credentials the application creation process should complete. 

When creating a project using the Telerik C# WPF Application there is no drop-down to select the target framework, this is done automatically when the Telerik UI for WPF version is selected in the New Project Wizard if the version ends on .70 the project will target .NET 7. In addition, you have the option to choose whether to use NuGet references, the selected version contains (NuGet) in its name, or assembly references which are resolved from the installation folder. 

If you decide to go with the Microsoft WPF project and then add the Telerik NuGet package what you need is the Telerik.UI.for.Wpf.70/Telerik.UI.for.Wpf.70.Xaml which are available from the NuGet feed after authentication.

Please try creating a project again and let us know how it went.

Rob
Top achievements
Rank 2
Iron
Iron
Iron
commented on 02 Mar 2023, 05:40 PM

Excellent, thank you that worked.

Rob.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Rob
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or