Quickstart sample code - NuGet dependencies are broken - identityserver4

I am new to IndentityServer and am trying to following the document to setup the Quickstart VS.Net solution on my Windows 10 desktop. After following instructions downloading and installing source code and opening up the solution in VS.Net 2017, I noticed that both NuGet dependencies - IdentityServer4 (4.0.0) and Serilog.AspNetCore (3.2.0) - are broken. Compiling the solution returns with an error: "NETSDK1045 The current .NET SDK does not support targeting .NET Core 3.1. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.1.". I also tried installing NuGet packages for those 2 components but it made no difference.
Could someone show me what I am missing here?
Thanks in advance!

IdentityServer4 v4.00 requires.NET Core 3.1, and because of that you need to use the latest Visual Studio 2019 and install the latest 3.1 SDKs.

Related

ABP Framework 4.4.3 Package IdentityServer4 4.1.1 is not compatible with net50 on Deployment

I am using ABP framework 4.4.3.
Project successfully running via Visual Studio 2019. However While deploying Nuget restore throwing Error:
##[error]The nuget command failed with exit code(1) and error(NU1202: Package IdentityServer4 4.1.1 is not compatible with net50 (.NETFramework,Version=v5.0). Package IdentityServer4 4.1.1 supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)
The error is clear. But the issue is that ABP is using its package for Identity management, which I can not downgrade to ver 3 of dotnet core.
Stuck and need help
You may be using some additional parameters for restoring package that checks consistency between packages while restoration.
IdentityServer4 4.1.1 works fine on .Net5.
You can also create an issue at https://github.com/abpframework/abp/issues with providing steps to reproduce or a public repo.

Using DBup with octopus deploy error, (System.Data.SqlClient is not supported on this platform.)

I'm using .net core 2.1 project with DBUP library, but when I try to run the DBUP inside octopus deploy the migration tool is returning an error System.Data.SqlClient is not supported on this platform.
I followed all these steps from an Octopus Documentations https://octopus.com/blog/dbup-database-deployments...
Already did this steps to fix the problem but without success:
net core SDK 2.1, 2.2 installations on the target server
Restart the server
New release with System.Data.SqlClient nuget package associated with the DBUP Project
Not sure what I can do more to fix this issue
Found the problem, DBUP project needs to be published isolated from other projects.
My bad was, trying to run/use dbupproject.dll file as a reference from other projects.

Npgsql Entity Framework Core and version 1.1.2 of Entity Framework Core

Newbie at C# and Visual studio so please be kind :)
At this site
http://www.npgsql.org/efcore/migration/1.1.html
it says that Version 1.1.0 of the Npgsql Entity Framework Core works with version 1.1.0 of Entity Framework Core.
But when I pick Npgsql Entity Framework Core in Microsoft Visual studio (handle nuget packages) it says that a dependency is
Microsoft.EntityFrameworkCore (>= 1.1.0)
So should it work with 1.1.2 of Entity Framework Core? I do not get it to work at all and I just would like to know if anybody here use it together with 1.1.2 or if it's just not meant to be?
Are you getting an error message?
If you are receiving the following when you attempt to install the Nuget package, you need to ensure you are using Visual Studio 2017 15.3.0 or newer and .net Core.
Error: Could not install package Npgsql.EntityFrameworkCore You are
trying to install this package into a project that targets
'.NETFramework,Version=v4.5.2', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author.
I have found that to use Entity Framework Core, you have to use .Net Core, which requires that you use Visual Studio 2017 15.3.0 or newer.

Reference .NETCoreApp NuGet from NET47 WPF App

Is it possible to reference a .NETCoreApp 2.0 built NuGet package within a WPF App on Framework 4.7
I have built my own NuGet but fails to add the package:
Could not install package 'My.Common 1.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
The package dependencies:
Do we have to wait until NETStandard 2.0? It's fine I can cross compile using;
<TargetFrameworks>netstandard1.6;netcoreapp2.0</TargetFrameworks>
Although I'd rather target less frameworks!
No, netcoreapp is always framework that is incompatible to net. .NET Core can (and does) implement APIs that aren't available on .NET Framework.
With "current" (.NET CLI < 2.0, VS 2017 < 15.3) tooling, the highest version of .NET Standard that .NET 4.7 can use is netstandard15 (which can be used on .NET Framework 4.6.2).
Even when .NET Standard 2.0 (tooling) is released, .NET Framework projects cannot reference .NET Core libraries. Only higher .NET Standard versions.

Error installing MahApps.Metro "trying to install this package into a project that targets '.NETFramework,Version=v3.5'"

I'm trying to install MahApps.Metro http://mahapps.com/MahApps.Metro/ on my Visual Basic .NetFramework 3.5 project, but i have an error
Could not install package 'MahApps.Metro 0.10.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
I don't understand i already huild on .NetFramework 3.5 .. how can i solve this?
It seems this library requires .NET 4+. Upgrade to a higher .NET version (4.0 or 4.5) and it should work.

Resources