Skip to content
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

.Net Core version #100

Closed
TheSchemm opened this issue Dec 10, 2020 · 5 comments
Closed

.Net Core version #100

TheSchemm opened this issue Dec 10, 2020 · 5 comments

Comments

@TheSchemm
Copy link

Would it be possible to build and publish binaries for .net core in your nuget package as well?

@sadomovalex
Copy link
Owner

sadomovalex commented Dec 11, 2020

hello TheSchemm, I think it should be possible. Will try to do it but can't promise anything about exact dates. Meanwhile you may fork repository and build own instance against .Net Core. Added it to future improvements page: https://github.com/sadomovalex/camlex/wiki/Future-improvements.

@TheSchemm
Copy link
Author

Awesome! Thanks for the quick response. I just thought too, that you might be able target .Net Standard 2.0 and which would tackle all .Net Core, .Net and .Net 5

@sadomovalex
Copy link
Owner

Ok, .Net Standard 2.0 also may be considered for sure.

@sadomovalex
Copy link
Owner

sadomovalex commented Mar 2, 2021

@TheSchemm I checked possibility to target .Net Standard 2.0 in Camlex.Client (I assume that you meant exactly client version because basic server object model version for on-prem is mostly for farm solutions which work on SP farm and of course use .Net Framework). For now I don't see big need to retarget Camlex.CLient to .Net Standard 2.0 because of 2 main reasons:

  1. First reason is .NET Framework compatibility mode:

Starting with .NET Standard 2.0, the .NET Framework compatibility mode was introduced. This compatibility mode allows .NET Standard and .NET Core projects to reference .NET Framework libraries. Referencing .NET Framework libraries doesn't work for all projects, such as if the library uses Windows Presentation Foundation (WPF) APIs, but it does unblock many porting scenarios.

I've tried to reference Camlex.Client from .Net Standard 2.0 app and it worked i.e. queries were successfully created from C# code. There was this warning but it is not critical since code is actually working:

warning NU1701: Package 'Camlex.Client.dll 4.1.0' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.

  1. Second reason is that Camlex.Client solution target both Sharepoint Online and on-prem CSOM using conditional referencing. But from documentation Using CSOM for .NET Standard instead of CSOM for .NET Framework it says that CSOM for on-prem is available only for .Net Framework:

The CSOM .NET Framework versions are still fully supported and being updated, so use those for on-premises SharePoint development

I.e. if we will reference .Net Standard 2.0 we won't be able to compile Camlex.Client for on-prem anymore which is quite important still.

@sadomovalex
Copy link
Owner

@TheSchemm At the end technical problems have been resolved. Camlex.Client 5.0 with native support for .NET 5.0 and .NET Standard 2.0 has been released: https://sadomovalex.blogspot.com/2021/08/camlexclient-50-released-support-for.html. Thank you for your idea and patience:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants