3F / MvsSln

🧩 Customizable VisualStudio .sln parser with project support (.vcxproj, .csproj., …). Pluggable lightweight r/w handlers at runtime, and more …
MIT License
135 stars 27 forks source link

Retrieving solution breaks when solution contains a *.deployproj project #14

Closed wouterroos closed 5 years ago

wouterroos commented 5 years ago
using (var sln = new Sln(solutionPath, SlnItems.All & ~SlnItems.ProjectDependencies))
{
}

Above code breaks when solution contains a *.deployproj project (used for Azure Resource Group deployments).

wouterroos commented 5 years ago

Hi,

I created #15 to fix the issue, the project type guid for .deployproj files is not known within your library. I also added the correct guid for Service Fabric (.sfproj) project since I will be needing that as well for my project.

3F commented 5 years ago

breaks when solution contains

By the way, this is not correct behavior! Broken after 2.1. Seems I forgot to process ProjectType.Unknown case:

https://github.com/3F/MvsSln/blob/97896c4ceec97edd76b303a337a6e4e2f553fd67/MvsSln/Core/Guids.cs#L68

Also, this is not optimized because of full processing from Where clause -_-

I can fix this later or you.

3F commented 5 years ago

Yes, confirmed. v2.1 works fine when some guids are not presented in our lib. It's bug of the new 2.2

wouterroos commented 5 years ago

Hi,

Thanks for investigating. I tried reverting to 2.1 to see if that could unblock me for my project, unfortunately I now run into the issue below (that has been fixed in 2.2).

wouterroos commented 5 years ago

I updated #15 with a fix for the lookup of unknown project types.

3F commented 5 years ago

Approved. Thanks again!

wouterroos commented 5 years ago

@3F Any ETA on when this will be available on NuGet?

3F commented 5 years ago

planned for 2.3 (see related milestone)

I've plan to fix this to the end of this week. This is a very trivial but major error. Or you can. Then I will just raise the release for all public channels ASAP.

Currently you also can use this via CI-builds on GHR

On 14.06.2019 15:49, Wouter Roos wrote:

@3F https://github.com/3F Any ETA on when this will be available on NuGet?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/3F/MvsSln/issues/14?email_source=notifications&email_token=AAYYT7IIJZHVFW3EOLF6I5DP2OHVFA5CNFSM4HXGNSS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWWG3I#issuecomment-502096749, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYYT7K36GUGRSHTHZU2Z73P2OHVFANCNFSM4HXGNSSQ.