This is a migrated thread and some comments may be shown as answers.

Project Creation

8 Answers 335 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Iron
Veteran
Iron
David asked on 27 Dec 2020, 05:43 AM

With all the various options available to us these days, it is becoming more difficult to create a empty project that is actually usable.  I am starting to wonder if I am completely missing something obvious and hope someone can point out the error in my ways.

First, I am a strong Telerik advocate so while this might come out as a negative towards them, it is not intended to be so.  I fully expect this is a result of changes Microsoft made between VS 2019 and its predecessor.  

Creating a project in Visual Studio used to be as simple as "File/New Project".  Upon selection of a template the requisite Telerik wizard would launch and you could pick from various options.  The end result was a usable project which would compile and produce code in the required framework.  Simple, usable and very reliable.

Then Microsoft added some new wizards to the mix and, in my opinion, things went to the dog house.  

For example try to create a Telerik UI Asp.net Core 3.1 project.  You can't.  In the created projects only .NET Core 2.1 is available as the only option.  All the websites show options to select 3.0, 3.1, .NET Core 5.0 however those options to not appear available to mere mortals.  My frameworks are all current or better.

As an example consider the following:

  • Launch VS 2019
  • Use Telerik Extension Menu
  • Select Telerik UI for ASP.NET Core menu item
  • Select create New Telerik Project. The VS 2019 "wizard" launches asking for project name, location to place project, and solution name.  Upon pressing the "Create" button, the Telerik "wizard" appears.  I am presented with Core 2.1 as my only option.  No 3.0, 3.1, or .net 5.0 available.  I am allowed to pick HTML or Tag options.

Another option tried:

  • Use VS 2019 "New Project" menu item.  
  • Select ASP.Net Core Web Application from choices of templates.  I can select from multiple project types along with choice of .NET Core frameworks.  .NET 2.1, 3.1, and 5.0 are available choices.  For example, choose .NET Core 3.1 and ASP.NET Core Web Application (Model-View-Controller) works. Right Clicking upon the .NET Core 3.1 project created allows you to use the "Convert to Telerik UI for ASP.NET Core" menu item. The resulting project actually works.  I see no direct way to creating a Telerik project except by this upgrade process.

Using the .NET Core 5.0 option fails when the "Convert to Telerik UI for ASP.NET Core" menu item.   A cryptic error is displayed which looks like a exception occurred during the conversion process.  The resulting project is not usable.

This all leads me to ask how is one to "officially" create .NET Core 3.1 or newer Telerik based projects?  Have I somehow missed downloading some templates I should have and do not know it?  Have I somehow gotten myself too "current" and suffering the consequences?

While the default Microsoft wizards seem to be working, I prefer to create Telerik based projects as their toolsets historically have been extremely valuable.

Your guidance is appreciated.

 

 

 

8 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 29 Dec 2020, 05:59 PM

Food for additional thought.  I noticed the command line command "dotnet --list-sdks" elsewhere.  That command reports "5.0.101 [C:\Program Files\dotnet\sdk]".

I reviewed my VS 2019 settings and confirmed the ".NET Core cross-platform development" profile is checked.

Of possible merit:  On the "individual components" tab, I noticed .NET Core 2.1, 3.1 all have "Runtime" support loaded and zero .NET Core SDK's appear available to be selected.  There is a ".NET SDK" selected.

 

0
Vesko
Telerik team
answered on 30 Dec 2020, 05:32 PM

Hi David,

Thank you very much for the detailed and well structured information regarding the problem. Also, please, accept our apologies if that answer is little late.

Based on the provided information, it seems that you have everything you need for developing and running .NET Core 2.1/3.1 applications -  the .NET Core 3.1 LTS Runtime, .NET Core 2.1 LTS Runtime and .NET Core SDK components are installed. Also, you have confirmed that the MS templates produce projects that can be built and run. So if your Visual Studio installation instance is not corrupted, there must be a problem in our New Project Wizard which is not able to detect all the .NET Core runtimes on your machine.

The detection of the New Project Wizard is based on both Windows Registry and file system search. Would you please provide the following details in order to find whether there is something that is not expected?

  • What are the values in the [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sdk] key? For your convenience you can extract the whole key as a *.reg file and send it.
  • What directories are available in C:\Program Files\dotnet\shared\Microsoft.NETCore.App location?

In addition, I want to say that the Convert Wizard is a valid approach for setting up a Telerik project. As mentioned, you have successfully converted a standard MS project.

 

I am looking forward to your answer. Please do not hesitate to contact us anytime.

 

Regards,
Vesko
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/.

0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 30 Dec 2020, 05:44 PM

Thank you for your response.   Attached to this response you should find the registry key you requested.  In short it seems to only have 5.0.1.

At the requested folder C:\Program Files\dotnet\shared\Microsoft.NETCore.App, I have three folders with data in each.  Those folders are 2.1.23, 3.1.10, and 5.0.1.

I would point out that I have tested this on two different systems (a laptop and desktop).  Both have the same results.  The commonality of both are that I had to wipe and reload both recently.  This means they are 100% current and do not have historically loaded previous SDKs and such.

In case the file does not make it, here is its content:

Windows Registry Editor Version 5.00<br><br>[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\dotnet\Setup\InstalledVersions\x64\sdk]<br>"5.0.101"=dword:00000001
0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 30 Dec 2020, 07:53 PM

Here is some further data for you.  I noticed in your requested path, there are other folders. 

  • Microsoft.AspNetCore.All - 2.1.23
  • Microsoft.AspNetCore.App - 2.1.23, 3.1.10, and 5.0.1
  • Microsoft.NetCore.App - 2.1.23, 3.1.10, 5.0.1
  • Microsof.WindowsDesktop.App - 3.1.10, 5.0.1

Notice that certain types have all framework whereas others do not.  That might explain why I am not getting selection of frameworks expected.  Again, I have the runtimes but apparently not the "SDKs" for each and every flavor.  (This assumes I have to have full SDK's at all)

 

0
Vesko
Telerik team
answered on 31 Dec 2020, 11:37 AM

Hi David,

I've just reviewed the information about your .Net Core setup. From our perspective it looks OK.

In some of the recent releases of UI for ASP.NET Core Extension there are changes regarding the detection of the MS SDKs and runtimes. Please, confirm that you use the latest version of that extension which currently is 2020.3.1216.1. You can check this in Extensions -> Manage Extensions -> Installed.

Regards,
Vesko
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/.

0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 31 Dec 2020, 03:06 PM

Sorry, but I installed all of the updated extensions on 12/16/2020.  My versions all report 2020.3.1216.1 with two exceptions.  Those are Kendo UI Scaffolder (2020.3.1118), and Telerik Reporting Tools (3.44.11.0).  I suspect those are simply due to different release cycles although your knowledge obviously is superior to mine.  All extensions have "automatically update this extension" set.  If is important, my settings are configured to not use Internal Builds only "official" releases.

Given your suggestion that the rules recently changed, of which I agree, I re-tested my ability to create a simple project.  I.E., Extensions/Telerik/Telerik UI for ASP.NET Core/Create New Telerik Project.  Microsoft's new "wizard" starts, your end appears to auto-select a template and it advances to the second "page" of the wizard.  I.E., I pick where and what I want to call the new project.  I press "Create" and your "Create New Project Wizard" launches.  I have attached a screenshot.  My only options are ASP.NET core 2.1.

0
Accepted
Vesko
Telerik team
answered on 05 Jan 2021, 08:41 AM

Hi David,

Thank you very much for your proactive cooperation. We found a problem in our extension which does not list all the available versions of ASP.NET Core. We will fix it as soon as possible. Until then, you can use the Convert Wizard which is a valid approach for creating a Telerik project.

Here are some getting started articles the you may find useful:

Telerik UI for ASP.NET Core First Steps

Telerik UI for ASP.NET Core Demos

 

Regards,
Vesko
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/.

0
David
Top achievements
Rank 1
Iron
Veteran
Iron
answered on 27 Jan 2021, 04:13 PM

I can report that the 2021 Q1 update appears to have fixed this.  I am now able to create .NET core 5.0 projects without having to go through an upgrade path.

Thank you for the support.  Whatever magic you folks did worked.

Tags
Installer and VS Extensions
Asked by
David
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
David
Top achievements
Rank 1
Iron
Veteran
Iron
Vesko
Telerik team
Share this question
or