-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
[BUG] In Splat/Splat.csproj, TFM in Itemgroup's Condition seems to be unreachable compared to TFM in TargetFrameworks #787
Comments
if this issue is considered as a bug, I would love to submit PR 🙂 |
Not a bug but thanks for reporting. StartsWith is used to allow for easier upgrading of the target framework. |
Reopening to discuss further. May be an issue with that file after discussing offline. |
@glennawatson |
I suspect the net framework targets aren't needed in the main splat.csproj since all that was moved to the Splat.Drawing project. Happy to have a PR to remove net461/net472 and removing the conditional. |
ok, I'm going to submit PR in about one hour. |
Remove ItemGroup that has conditon with TFM that starts with `net46`in Splat.csproj file. Having this condition of TFM net46* is unnecessary, Because defined TargetFrameworks does not contain NET Fx related TFM.
PR submitted: #788 |
About this:
Do you also want to remove unnecessary |
I understand now! Many thanks for the pointer to that net46;net472 ! 👍 |
…at.Drawing as suggested in issue comment: reactiveui#787 (comment)
…#788) * Fixes #787 Remove ItemGroup that has conditon with TFM that starts with `net46`in Splat.csproj file. Having this condition of TFM net46* is unnecessary, Because defined TargetFrameworks does not contain NET Fx related TFM. * remove the net46 and net472 as well because these TFMs are in the Splat.Drawing as suggested in issue comment: #787 (comment)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
In https://github.com/reactiveui/splat/src/Splat/Splat.csproj, TFM in Itemgroup's Condition seems to be unreachable compared to TFM defined in TargetFrameworks.
Steps To Reproduce
In the code of Splat.csproj, the TFMs defined in TargetFrameworks doesn't specify TFM starts with
net46
whereas in the ItemGroup's condition below specify condition to check TFM that starts withnet46
:https://github.com/reactiveui/splat/blob/main/src/Splat/Splat.csproj#L3-L15
NOTE:
Step to reproduce I think it's not necessary for this. CMIIW.
Expected behavior
If any TFM starts with
net46
is going to be used, then we should add net46, net461 to the TargetFrameworks, otherwise we should usenetstandard2.0
as the TFM in the condition of the ItemGroup.As far as I know, checking for TFM starts with net46 is not necessary, because
Screenshots
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):
N/A
Additional context
This bug report is focusing on more correctness and the TFM defined in the condition should match the TargetFrameworks defined.
The text was updated successfully, but these errors were encountered: