Hi Thomas,
To set up a Telerik Reporting REST Service in a
.NET Core project the latter should target the
full .NET Framework, as explained in step 4 of
Creating a Sample ASP.NET Core Project article section.
I noticed that with the latest update of Visual Studio 2017 the
.NET Framework cannot be chosen from the corresponding
New ASP.NET Core Web Application dialog drop down. I couldn't change the framework from the project
Properties either. It seems that the UI of the Visual Studio has been modified to not allow choosing .
NET Framework.
To overcome the problem it will be necessary to manually edit the targeted framework in the project file (.
csproj) and remove/add
AspNetCore references from/to the project
Dependencies. Here is how to do this:
1.
Unload the project - right click on it and select 'Unload Project'.
2. Right click on the unloaded project and select 'Edit
ProjectName.csproj'. The .
csproj file opens in the VS for editing.
3. The
PropertyGroup section looks like:
change it manually to look like :
Note that for
.NET Framework 4.7.1 the value will be
net471, etc.
Save the .
csproj file.
4.
Reload project - right click on the unloaded project and select 'Reload Project'.
Note - now the warning is on the Microsoft.AspNetCore.All package, as the targeted framework is
.NET Framework 4.6.1, and the
project cannot be built.
5.
Remove Microsoft.AspNetCore.All from
Dependencies->NuGet - right click on the package and select 'Remove'.
6.
Add the following packages to the project - right click on the project and select 'Manage NuGet Packages...':
Microsoft.AspNetCore
Microsoft.AspNetCore.Mvc
Microsoft.AspNetCore.StaticFiles
Now it should be possible to build the project without warnings, and you can continue to set up the REST Service according to the instructions in our help article.
Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items