VsixCommunity / Community.VisualStudio.Toolkit

Making it easier to write Visual Studio extensions
Other
249 stars 44 forks source link

PhysicalFile.FromFileAsync does not return projects #443

Open AdmiralSnyder opened 1 year ago

AdmiralSnyder commented 1 year ago

when I invoke PhysicalFile.FromFileAsync with the path of a .csproj file, null is being returned - this should be either changed or better documented (and an API to fetch a project based on the path should be added somewhere)

ErikEJ commented 1 year ago

I do this to get a project from a path:

https://github.com/ErikEJ/EFCorePowerTools/blob/master/src/GUI/Shared/Helpers/SqlProjHelper.cs#L161