You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LoadSolutionInfoAsync uses SkipUnrecognizedProjects property to determine whether to throw on unrecognized project. LoadProjectInfoAsync uses that property as well, but only for discovered projects. It is hardcoded to throw exception when requested projects are unrecognized.
The caller needs to handle unrecognized projects in two ways:
hook up WorkspaceFailed
catch a general InvalidOperationException around the entire load call
It'd be better if LoadProjectInfoAsync honored SkipUnrecognizedProjects for all projects. IF the requested project is not recognized it'd return empty array.
LoadSolutionInfoAsync
usesSkipUnrecognizedProjects
property to determine whether to throw on unrecognized project.LoadProjectInfoAsync
uses that property as well, but only for discovered projects. It is hardcoded to throw exception when requested projects are unrecognized.The caller needs to handle unrecognized projects in two ways:
InvalidOperationException
around the entire load callIt'd be better if
LoadProjectInfoAsync
honoredSkipUnrecognizedProjects
for all projects. IF the requested project is not recognized it'd return empty array.Related: #75170
The text was updated successfully, but these errors were encountered: