-
Notifications
You must be signed in to change notification settings - Fork 20
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
netstandard-ization #23
Comments
jumpinjackie
added a commit
that referenced
this issue
Feb 3, 2017
…oject over to the new portable csproj format targeting netstandard 1.4. This was determined to be the lowest possible version we can target with the minimal amount of destructive changes. A summary of the changes here: - Move the generated classes into OSGeo.MapGuide.ObjectModels. This is because the new csproj format does not maintain file-by-file references by default, and neither do I want to do the same thing. - Remove a whole bunch of un-used LoadFromFile and SaveFromFile methods from all the generated XML classes. This was originally generated by xsd2code and the usage of readers were incompatible when ported over to netstandard 1.4 - Replace use of System.Drawing primitives (Color, Font) with our own equivalents (ColorInfo, FontInfo) - Update most projects in the Maestro solution to target .net Framework 4.6.1. This is the full framework version that lines up with netstandard 1.4 - Replace usages of System.ComponentModel.BindingList<T> with List<T>. Where it matters that we should be passing a BindingList<T>, we have an AsBindingList<T>() extension method for such cases. - Replace usages of NameValueCollection with IDictionary<string, string>. This is to avoid having to pull in the System.Collections.Specialized nuget package. - Add a shim for Type.IsAssignableFrom() Unit tests currently fail because the current NUnit runner is not compatible with netstandard projects. We're gonna port our unit tests projects over to xunit, which appears to be the "blessed" unit testing framework in the netstandard world.
jumpinjackie
added a commit
that referenced
this issue
Feb 3, 2017
jumpinjackie
added a commit
that referenced
this issue
Feb 3, 2017
Sigh! After painstakingly porting OSGeo.MapGuide.ObjectModels to netstandard, the tooling as of VS2017 despite showing promise, is still not there
Our testing story is in disarray and I'm not going to go any further on this until the situation improves. |
Now that .net standard 2.0 is out the door. It's worth revisiting this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should look at making at least the MaestroAPI portions netstandard-compatible so it can be used in .net Core, Xamarin, etc.
netstandard2.0
netstandard2.0
System.Drawing
primitives (Point/Font/etc)arious UIs, usenew BindingList<T>(originalList)
netstandard2.0
netstandard1.6
The text was updated successfully, but these errors were encountered: