-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
update CommonServiceLocator to remove Microsoft.NETCore.App dependancy #302
Conversation
…erviceLocator with IServiceProvider as this is now in the BCL. Write helper class to provide source compatability with IServiceLocator.
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.
Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @hahn-kev)
tests/SIL.LCModel.Tests/DomainImpl/NotebookTests.cs
line 5 at r1 (raw file):
// (http://www.gnu.org/licenses/lgpl-2.1.html) using System;
huh?
Previously, jasonleenaylor (Jason Naylor) wrote…
|
@hahn-kev here is an issue for FieldWorks we still need to work out |
@jasonleenaylor I added in a drop in, however the |
Next in line: |
I think that one will just need a using statement. Though we could also just add the methods to the |
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.
With minor changes I got FieldWorks to build with all tests passing. A smoke test showed things apparently working.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @hahn-kev)
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @hahn-kev)
closes sillsdev/languageforge-lexbox#964
LCM references CommonServiceLocator, which in turn references Microsoft.NETCore.App
this breaks various applications when attempting to include LCM. This PR updates that dependancy.
I also did a bit of refactoring to remove references to IServiceLocator in favor of the BCL interface IServiceProvider. I then provided some extension methods so there is source compatibility with this new version. If this is too big of a change and impacts FieldWorks too much then I can remove it and just upgrade the package. However the namespace that IServiceLocator is in has changed as part of the version change, so this seemed like a good time to remove our usage of this interface as it's non standard.
This change is