Using newer version of System.IO.Ports.SerialPort - serial-port

I have problem with barcode scanner randomly disconnecting from serial port so I want to try using newer version of System.IO.Ports.SerialPort which is available via NuGet package.
.NET Framework 4.8.0 SerialPort is version 4.0.0.0, NuGet SerialPort is version 6.0.0.0. I was thinking about assembly redirect, but here is stated, that assembly redirect is not for this purpose.
How to use newer version of SerialPort?

Related

Remove older version of application using MSIX Installer

How can I delete the older version of an application before installing the newer released version?
In other words, is there a way to automatically remove "MSIXDemoInstaller_1.0.0.0_Test" file before installing "MSIXDemoInstaller_1.0.1.0_Test" file?
You don't have to do anything special for this, the OS will handle it automatically. Just increase the version when building your new version. When you install it on a machine with the old version the OS will automatically apply it as an upgrade.

Detected package downgrade for Boilerplate Application(.NET Core 3.1)

I'm trying to open my Boilerplate Application(.NET Core 3.1)in VSCode in Linux but below exception, keep appeared for me. Is there any difference between .NET Core for Linux and for Windows or What is the problem?
Detected package downgrade: Abp.ZeroCore from 5.7.0 to 5.1.0. Reference the package directly from the project to select a different version.
No this is not related to the OS that you run your application.
As stated in the error message there a downgrade in one of your nuget packages.
Go to your Boilerplate.csproj and try to manually set the version of Abp.ZeroCore nuget package from 5.1.0 that it is currently to 5.7.0.

Is it possible to use Microsoft.Aspnet.Identity.Core with .net 4.0

When I attempt to install Microsoft.Aspnet.Identity.Core version 2.2 with my .net 4.0 project I get the following error:
Could not install package 'Microsoft.AspNet.Identity.Core 2.2.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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 understand that it requires .net 4.5+.
Is there an older version of Microsoft.Aspnet.Identity.Core that works with .net 4.0?
More generally, where is the best place to check what version of .net a specific nuget package supports?

Newtonsoft version issue with .netcore and Azure

I have Solution like
ABC.Domain (.net standard 2.0)
ABC.Service (.net standard 2.0)
ABC.AzureFunction (.net standard 2.0) v2
ABC.Web (.net core 2.0)
Azure function SDK having a dependency on Newtonsoft 9.0.1 (not able to use upper version), So I used the same version on my ABC.Service project.
I using same ABC.Service reference into ABC.Web project. Now web application not allowing me to install Newtonsoft version 9.0.1.
I tried to uninstall all packages then install Newtonsoft version 9.0.1 first, but now I'm not able to install Microsoft.AspNetCore.All.
Detected package downgrade: Newtonsoft.Json from 10.0.1 to 9.0.1. Reference the package directly from the project to select a different version.
Any suggest??
The latest Microsoft.NET.Sdk.Functions package (version 1.0.13) for v2 depends on Newtonsoft.Json version 10.0.3.
Try changing all references to that version.

install older version of packages in webmatrix 3

I need to install signalr package in my web matrix website .but when I use Nuget to add signalr to my project get an error signalr version 2 need .net framework 4.5 but as I know webmatrix only support .net framework 4 .How can I install older version of signalr with Nuget?
you can use the following command : Install-Package Microsoft.AspNet.SignalR -Version 1.2.0
Substitute version for the version of signalR you require, see down here the viable versions

Resources