Skip to content

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

Open
@vsfeedback

Description

@vsfeedback

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions