1. David Peace
  2. SnapDevelop
  3. Tuesday, 5 April 2022 10:58 AM UTC

Hi Guys

A quick question. I'm trying to build a DLL for Dot Net Core 3.0. I've chosen that as the Target Framework and when I build I get the following error:

NU1100    Unable to resolve 'Microsoft.NETCore.App.Ref (= 3.0.0)' for '.NETCoreApp,Version=v3.0'.   

How do I get Dot Net 3.0 into Snap for the to work. Dot Net 3.1 is fine but unforunately we need to support 3.0 too.

Thanks

 

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 5 April 2022 11:48 AM UTC
  2. SnapDevelop
  3. # Permalink

Hi David.

PowerBuilder installation has options to install .net core 3.0. They aren't checked so you need to select them when running powerbuilder installer (both the downloader and the ide).

Of course if you download them with the installer you may run the specific setup you need (ex .net core 3.0.3 x86 & x64).

Note that 3.0.3 is out of support.

Andreas.

Comment
  1. David Peace
  2. Tuesday, 5 April 2022 16:19 PM UTC
I've just run up the installer for PB2019R3-2728 and do not have the option to select old Dot Net. :-(
  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 6 April 2022 06:09 AM UTC
Ok. I don't know why you don't have the option in the installer. But .net core 3.0.3 was downloaded? If yes you can directly run it's setup file.
  1. Helpful
  1. David Peace (Powersoft)
  2. Wednesday, 6 April 2022 08:42 AM UTC
I finally got the installer to offer the older dot net options and it fell over becuase the prerequisite file was not available in the installation folder.



  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Wednesday, 6 April 2022 08:54 AM UTC
  2. SnapDevelop
  3. # 1

So having given up on the option for Dot Net 3.0 and because it is too old anyway I decided to bite the bullet and setup PB2021 build 1506.

This gave me a list of Dot Net Options:

 

I ticked 3.0

It gave me this error:

And this:

 

And sadly Dot Net Core 3.5 is not available either. So the options are 3.1 or 3.1 in all versions of SnapDevelop. I really do not want to go back and use VS!

Comment
  1. David Peace (Powersoft)
  2. Wednesday, 6 April 2022 14:51 PM UTC
OK, so I downloaded and installed both the x86 & x64 SDK version of 3.0 and I still getthe original error when I build the project:

Severity Code Description Project File Line

NU1100 Unable to resolve 'Microsoft.NETCore.App.Ref (= 3.0.0)' for '.NETCoreApp,Version=v3.0'. PSSMTP30 PSSMTP30.csproj 0

  1. Helpful
  1. Logan Liu
  2. Friday, 8 April 2022 16:13 PM UTC
Hi David, if run the dotnet restore command (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-restore#examples) directly instead of SnapDevelop, could you see the same error message?

it's recommended that you confirm the .NET Core 3.0 SDK and Runtime are installed successfully. refer to:

https://docs.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-windows

If still not resolved, could you submit a ticket via our support portal (https://www.appeon.com/standardsupport/) to help us to reproduce this issue?
  1. Helpful
  1. David Peace (Powersoft)
  2. Monday, 11 April 2022 10:35 AM UTC
Hi Logan



The results are as follows:



C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTP>dotnet restore

Determining projects to restore...

Restored C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTP\pssmpttestapp\pssmpttestapp.csproj (in 198 ms).

Restored C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTPDOTNET\PSSMTPDOTNET\PSSMTPDOTNET.csproj (in 198 ms).

Restored C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTP\PSSMTP35\PSSMTP35.csproj (in 198 ms).

Restored C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTP\PSSMTP\PSSMTP31.csproj (in 198 ms).



C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTP>dotnet --list-sdks

3.0.103 [C:\Program Files\dotnet\sdk]

3.1.410 [C:\Program Files\dotnet\sdk]



C:\Workspaces\PowerBuilder\pb2021r3\PSSMTP\PSSMTP>

====================================================================================================================

Still getting the error.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 April 2022 13:58 PM UTC
  2. SnapDevelop
  3. # 2

What version of SnapDevelop are you using?  2021?

I assume this is new C# project not using PowerServer 2021?

Comment
  1. David Peace (Powersoft)
  2. Wednesday, 6 April 2022 08:34 AM UTC
It actually says: Microsoft .NET Framework 4.8 SDK, Microsoft .NET Core SDK 3.1.403, and TypeScript SDK 3.1



So Dot Net 3.0 and Dot Net 3.5 are not supported.

  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 6 April 2022 09:06 AM UTC
3.0.3 is out of support. But if installed it should be working...
  1. Helpful
  1. David Peace (Powersoft)
  2. Wednesday, 6 April 2022 09:47 AM UTC
Unfortunately the installer for 3.0 is not available and errors.



Thank you for all your constructive help. I really appreciate it :)
  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.