-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Directory.Build.props is ignored on target framework resolution #166
Comments
That's a good find. Even if the build is working for your project (sometimes the differences between the Framework and Core MSBuild don't come into play), there are definitely times when this will result in a bad build. |
Hi. Side question, is there a way to know that a project has received any configuration from I'm considering using this package under the hood for dotnet-affected Regards, |
Probably not, at least not without some additional work. Buildalyzer is primarily aimed at capturing what gets sent to the If we were to expand what gets captured it would probably need to happen here: https://github.com/daveaglick/Buildalyzer/blob/main/src/Buildalyzer/Logging/EventProcessor.cs |
Hi @daveaglick , thanks for the link. I did some debugging and I discovered there are properties for For the record: |
My experience with |
When Buildalizer tries to resolve target framework of a project and to choose an appropriate MSBuild version (Core vs .NET Framework), it reads target framework from
csproj
file. The problem is, we set target framework globally in a singleDirectory.Build.props
file instead of configuring it at allcsproj
files.When Buildalizer doesn't know target framework, it always chooses .NET Framework version of MSBuild, ignoring the fact that our projects targets .NET 5.
The build still works, so maybe there is no difference between those MSBuild versions and the issue is minor. But it leads us to another problem described at #165
The text was updated successfully, but these errors were encountered: