Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after upgrade to 3.0.0/1 MsBuildPipeLogger is hanging for certain apps #143

Open
ltcmelo opened this issue Jul 1, 2020 · 12 comments
Open
Labels
⚠ Bug Something isn't working as expected

Comments

@ltcmelo
Copy link
Contributor

ltcmelo commented Jul 1, 2020

I made a description of the issue, together with a PR in (your other) project.

@duncanawoods
Copy link

What OS are you using?

Can you share a problematic solution?

@ltcmelo
Copy link
Contributor Author

ltcmelo commented Jul 14, 2020

I'm running both macos and linux (ubuntu), with .NET Core. I've come across a few projects in which the problem is reproducible, one of them is the music store sample (you might need to git reset the repo to the 3.1 tag).

Note that the buildalyzer does build the project successfully (through I call IProjectAnalyzer.Build, with/without specific targets), as I describe; the issue is the hanging.

@ltcmelo
Copy link
Contributor Author

ltcmelo commented Jul 21, 2021

Another open source app example: https://github.com/HooliCorp/Goatly.NET

@daveaglick
Copy link
Collaborator

There's been a lot of work around the pipe logger recently so I'm 🤞 this is resolved. I'm going to close the issue, but let me know if you're still seeing the problem on Buildalyzer 4.1.2 or later.

@ltcmelo
Copy link
Contributor Author

ltcmelo commented Nov 16, 2022

I'm 🤞 this is resolved

It isn't :-)
To be thorough, it did work up to net5, but with net6 the incompatibilities around MsBuild emerged back.

@daveaglick daveaglick reopened this Nov 29, 2022
@daveaglick daveaglick added the ⚠ Bug Something isn't working as expected label Nov 29, 2022
@daveaglick
Copy link
Collaborator

I'll take another look at this one - with the update to .NET 6 for Buildalyzer pending in #220 maybe that will help (though I'm doubtful - if the problem is that the .NET 6 MSBuild is doing something unexpected for these projects updating the Buildalyzer target won't resolve that).

@xavierpinho
Copy link

I can consistently reproduce this hanging:

Here's the dotnet --info: dotnetinfo.txt.

After some debugging, here's what I noticed:

image

@xavierpinho
Copy link

Moreover, just noticed that the hanging is gone once we pass a TargetFramework property to MSBuild. See, e.g. https://github.com/xavierpinho/BuildalyzerDemo/blob/master/BuildalyzerDemo/Program.cs#L15. Rings any bell, perhaps?

@wasabii
Copy link

wasabii commented Oct 4, 2023

Same issue. .NET 7 and 6. Was using 4.1.6. Upgrading to latest version to see if it still happens, but I assume so since this bug is still open.

I only experience the issue on Linux and OS X.

@wasabii
Copy link

wasabii commented Oct 4, 2023

Yup. Broken in 5.0.1.

@daveaglick
Copy link
Collaborator

I just released several fixes, including a bunch of reference updates. If anyone here is still using Buildalyzer, and still having this problem, I'd be curious if it's resolved in 6.0.3?

@wasabii
Copy link

wasabii commented Jan 28, 2024

It does not appear to have resolved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠ Bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

5 participants