-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Create new project for common types that need to target net472 #50682
Conversation
@davidwengier What was the answer from the editor team why we can't just fix the reference on their side? If the workarounds are getting more complicated it seems like we really just need to fix that. |
@genlu I think you were following that up? I didn't I'm afraid.
I think the previous PRs were workarounds, but to me this isn't. As I see it this is probably what should have happened with the stuff in MS.CA.EF originally, for it to go to netstandard, but nobody remembers that VS Mac exists. If we need to have a net472 library, and given that currently both Visual Studio and Visual Studio for Mac build for that target framework, that seems reasonable/likely to me, then having a platform-agnostic library that targets it makes sense to me. I think there also might be future possibilities to move some code around and trim EF.Wpf and EF.Cocoa to the most minimal they can be, and have more shared code in this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the description, it sounds like the Roslyn change remains correct and no additional layer is desired or needed. It looks like the problem is in these two steps:
This broke VS for Mac's SignatureHelp code, so I linked some of the files from MS.CA.EditorFeatures.Wpf into MS.CA.EditorFeatures.Cocoa so that VS for Mac could still compile
EditorFeatures.Cocoa references Microsoft.VisualStudio.Language.IntelliSense. This is a WPF dependency that needs to be eliminated from this layer. There are no plans to make this package work in Mono.
TypeScript responded to the change in the first PR, by adding a reference to MS.CA.EditorFeatures.Wpf
This is not allowed for code that needs to run on Mono. The reference needs to be removed, or the assembly needs to be restricted to execution only in VS.
... common types that need to target net472 ...
EditorFeatures.Wpf has common types with WPF dependencies. EditorFeatures has common types without WPF dependencies.
Replaced by #50709 |
Fixes the build break in https://github.com/xamarin/vsmac/pull/3092
Reviewing commit-by-commit should be pretty straight forward, but all at once might be fine too if GitHub displays things nicely. There are no code changes, only project file changes (etc) and file moves.
The story so far:
The solution:
FYI @genlu @KirillOsenkov @uniqueiniquity