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

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.

Related

Quickstart sample code - NuGet dependencies are broken

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.

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.

Entity framework is not supported in ASP.net core -Visual studio 2015

I am working with asp.net core- Visual studio 2015.While accessing my sql database the following error occurs. "Please add the Entity.framework.SqlServerCompact NuGet package to the project". Please let me know how to resolve this issue. Thanks in advance.
Well with ASP.net Core everything is optional and as Nuget packages which means you have to bring them in your project if you want to use them.
If you want to add any Nuget package to your project you just need to open your project json file and add this line into dependencies:
Microsoft.EntityFrameworkCore.SqlServer
Or run npm install in your project directory:
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Then locate your tools section in your project json and add this into it:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview3-final"
If you had any problem with the version see if using this version is helping:
"Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview2-final"
Reason is this is a known issue you can find here:
https://github.com/dotnet/cli/issues/3742
Check the version in case has changed. For a more detailed instructions look here:
https://learn.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db

how to create ClickOnce type setup in Visual Studio

Please tell me how to Deploy application, which installs all it's dependencies like .net framework, MSSQL, etc. itself.
I have added all the dependencies in my setup Project, but when I install my setup it show message like .net Framework 4.0 is not installed. Download it from Microsoft's Website and then Install
It's not installing dependency which is in setup.

Resources