Skip to content

Report a meaningful error when MSBuild references are missing, or ExcludeAssets properties are not set correctly. #178

Open
@safesparrow

Description

@safesparrow

Is your feature request related to a problem? Please describe.
A few times when using ProjInfo I ran into the issue where loadSln yielded 0 project results.
Using ProjectLoader.getProjectInfo yielded a cryptic MSBuild-related error.
Often the root cause for the error was that MSBuild references were either missing or they didn't have the right ExcludeAssets attributes set.

Describe the solution you'd like
I would like ProjInfo APIs to detect the above cases and report a clear error which instructs the user to add appropriate MSBuild references to the project, ideally with a link to some online instructions (eg. a GitHub page).

Describe alternatives you've considered
Keeping it as is - can take the user a lot of time to figure out what's happening.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions