1. Brian O'Malley
  2. SnapDevelop
  3. Wednesday, 27 January 2021 14:51 PM UTC

I am just starting to look into using SnapDevelop to possibly migrate our application and I have been having a difficult time with the demos because it seems that things do not match.  I am using SnapDevelop 2019 R3 Build 2622. 

As an example, in the demos, when they create a new project they appear to already have in the startup file the line  m.UsePowerBuilderIntegrated();  but when I build one I do not get this, and when I try to add it I get red squiggly saying:


Similarly, when I try to add in using DWNet.Data.AspNetCore; I get a similar error.

However, when I download some of the sample code, these lines are in there and they are not giving errors.  What am I missing in my project that they have in their sample code?

Thanks!

Brian

Accepted Answer
Logan Liu @Appeon Accepted Answer Pending Moderation
  1. Thursday, 28 January 2021 05:16 AM UTC
  2. SnapDevelop
  3. # Permalink

Hi Brian,

Please notice this change in SnapDevelop 2019 R3:

If you create an ASP.NET Core Web API project with Basic sample code, the project no longer contains the DWNet.Data and DWNet.Data.AspNetCore NuGet packages by default, and the relevant code (for example, the UsePowerBuilderIntegrated and UseDataWindow methods) is also removed from the Startup.cs file.

Refer to https://docs.appeon.com/snapdevelop2019r3/Features_List/New_Features_in_SnapDevelop_2019_R3.html#removed-dwnetdata-and-dwnetdataaspnetcore

You can select the ".NET DataStore" Sample code option instead of the "Basic" when creating a new Web API project. You can also install the DWNet.Data.AspNetCore NuGet package to your current project.

Regards,

Logan

Comment
There are no comments made yet.
Brian O'Malley Accepted Answer Pending Moderation
  1. Monday, 1 February 2021 14:59 PM UTC
  2. SnapDevelop
  3. # 1

Thank you for that.  It was very helpful.  I have moved onto trying JWT and I am again not able to do what the demo says.  I try to add the following to my startup:

using Microsoft.AspNetCore.Authentication.jwtbearer;

And I get an error that jwtbearer does not exist in the namespace Microsoft.AspNetCore.Authentication

I tried using the NuGet to install Microsoft.AspNetCore.Authentication.JwtBearer (which is version 5.0.2) and I get another error that it is not compatible with netcoreapp3.1 and that it supports .NetCoreApp Version 5.0. 

I am not sure how to update .NetCoreApp to 5.0?

Can I install a lesser version of JWTBearer (3.1.11)?

Thanks!

Brian

Comment
  1. Armeen Mazda @Appeon
  2. Monday, 1 February 2021 15:13 PM UTC
Please ask each question in a separate post.
  1. Helpful
  1. Brian O'Malley
  2. Monday, 1 February 2021 16:45 PM UTC
Apologies, I have created a new post.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.