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

Dataset - project targeting .net framework 4.8 and .net 8 - DiagnosticId error in auto generated code in dataset #108986

Open
vsfeedback opened this issue Oct 17, 2024 · 1 comment
Labels
area-Serialization untriaged New issue has not been triaged by the area owner

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:I believe it worked pre 17.11]
I have installed VS version 17.11.1 and there is currently an error when you change anything in dataset and press save.

VS now adds an attribute to the dataset:

[System.ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called" +
            " or extended by application code.", DiagnosticId="SYSLIB0051")]

It produces an error with "DiagnosticId" in .net 48 when building an app and we have to manually delete the attribute in order to run the app.

A fix provided here is not a solution - https://learn.microsoft.com/en-us/dotnet/fundamentals/syslib-diagnostics/syslib0051

Also, ignoring the warning is also not a good solution: "To suppress all the SYSLIB0051 warnings in your project, add a property to your project file."


Original Comments

Feedback Bot on 8/28/2024, 04:39 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Artur Idzikowski on 9/10/2024, 03:11 AM:

Hey, any updates concerning the above? The error is really frustrating and prolongs the development time.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 17, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Oct 17, 2024
@steveharter steveharter added area-Serialization and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Oct 17, 2024
@kirsan31
Copy link

This is defiantly WinForms issue. Here I asked a similar question some time ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Serialization untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants