Skip to content
New issue

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

Use of obsolete API for Exception constructor #12626

Open
NikolaMilosavljevic opened this issue Jun 1, 2023 · 1 comment
Open

Use of obsolete API for Exception constructor #12626

NikolaMilosavljevic opened this issue Jun 1, 2023 · 1 comment
Labels
Category:Quality Week Issues that should be considered for quality week Functionality:SDK The NuGet client packages published to nuget.org help wanted Considered good issues for community contributions. Partner:DotNet Priority:2 Issues for the current backlog. Type:DCR Design Change Request

Comments

@NikolaMilosavljevic
Copy link

NikolaMilosavljevic commented Jun 1, 2023

When using the latest build of .NET 8 Preview 4 SDK to build the nuget.client repo, it results in the following analyzer error:

/vmr/src/nuget-client/src/NuGet.Core/NuGet.Frameworks/FrameworkException.cs(17,88): error SYSLIB0051: 'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051) [/vmr/src/nuget-client/src/NuGet.Core/NuGet.Frameworks/NuGet.Frameworks.csproj::TargetFramework=net8.0]

This was caught by the Source-build bootstrapping build workflow which uses a source-built version of the latest SDK to build the product's repos.

@ghost
Copy link

ghost commented Jun 1, 2023

Issue is missing Type label, remember to add a Type label

@ghost ghost added the missing-required-type The required type label is missing. label Jun 1, 2023
@zivkan zivkan added the Type:DCR Design Change Request label Jun 2, 2023
@ghost ghost removed the missing-required-type The required type label is missing. label Jun 2, 2023
@zivkan zivkan added the Functionality:SDK The NuGet client packages published to nuget.org label Jun 2, 2023
@nkolev92 nkolev92 added Priority:2 Issues for the current backlog. help wanted Considered good issues for community contributions. Partner:DotNet Category:Quality Week Issues that should be considered for quality week labels Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category:Quality Week Issues that should be considered for quality week Functionality:SDK The NuGet client packages published to nuget.org help wanted Considered good issues for community contributions. Partner:DotNet Priority:2 Issues for the current backlog. Type:DCR Design Change Request
Projects
None yet
Development

No branches or pull requests

3 participants