Fix condition causing FirstTargetFramework build property erasure#1696
Fix condition causing FirstTargetFramework build property erasure#1696belav merged 1 commit intobelav:mainfrom
Conversation
|
For anyone else running into this issue, a workaround can be to define both |
|
Another workaround for this problem that might come with less side effects is to set a value for |
belav
left a comment
There was a problem hiding this comment.
I was not able to reproduce this but this is definitely a typo, and I don't know why things would be working with the typo there. Thanks for finding the fix!
|
I hit this specifically when building on mac, because that particular version check only applies when the target is osx-arm64. I think that's probably why not everyone was able to reproduce it. |
Many of my test projects fail to build when
csharpieris added to them. They fail with this message:For some reason, I only run into this problem with my test projects that include
xunit.v3, but I'm fairly certain this is acsharpierissue.A minimal reproduction of the issue can be found at tdg5/csharpier-build-issue-reproduction.
I believe the issue is that the
FirstTargetFrameworkbuild property is getting clobbered due to a typo in a condition that's meant to check ifFirstTargetFrameworkalready has a value, but fails to do so because of the typo.This PR fixes the typo and my build failures.
Let me know if I can answer any questions or provide any other context. Thanks!