We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since .NET 9 Preview 7, the X509Certificate2 constructor is marked as obsolete (source. Microsoft doc here)
.NET 9 Preview 7
X509Certificate2
And the source when created new project with the latest version of the abp cli still uses it.
Start a new Abp project from cli, for example with this following command line
abp new Acme.BookStore -u blazor -m none --theme leptonx-lite -csf
The code should use the workaround in the microsoft doc page (here)
var certificate = flag != null ? X509CertificateLoader.LoadPkcs12FromFile("mypath", "mypassword", flag); : X509CertificateLoader.LoadPkcs12FromFile("mypath", "mypassword");
The code is created with the obsolete constructor
var certificate = flag != null ? new X509Certificate2(fileName, passPhrase, flag.Value) : new X509Certificate2(fileName, passPhrase);
No response
https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0057#workaround
9.0.3
Common (Default)
EF Core (Default)
None (Default)
Windows (Default)
The text was updated successfully, but these errors were encountered:
X509CertificateLoader
new X509Certificate2
c9a3513
maliming
No branches or pull requests
Is there an existing issue for this?
Description
Since
.NET 9 Preview 7
, theX509Certificate2
constructor is marked as obsolete (source. Microsoft doc here)And the source when created new project with the latest version of the abp cli still uses it.
Reproduction Steps
Start a new Abp project from cli, for example with this following command line
Expected behavior
The code should use the workaround in the microsoft doc page (here)
Actual behavior
The code is created with the obsolete constructor
Regression?
No response
Known Workarounds
https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0057#workaround
Version
9.0.3
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: