-
Notifications
You must be signed in to change notification settings - Fork 54
Description
We're using Microsoft.PowerPlatform.Dataverse.Client to incrementally move code between a plugin and an Azure Function. One of our dependencies is Microsoft.CrmSdk.Data which currently is only targeted against .Net Framework, leading to this warning:
NU1701 Package 'Microsoft.CrmSdk.Data 9.0.2.45' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
Microsoft.CrmSdk.Data seems to work fine under .Net 6.0 despite this. Fingers crossed.
Transitively it also introduces this warning:
NU1701 Package 'Microsoft.CrmSdk.CoreAssemblies 9.0.2.42' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project.
Microsoft.CrmSdk.CoreAssemblies brings in conflicting versions of Microsoft.Crm.Sdk.Proxy.dll and Microsoft.Xrm.Sdk.dll. Somehow msbuild/nuget/the sdk figures this out and the right version ends up in the output for my project (yay!) and it all seems to work.
It'd be super nice if there was a version of Microsoft.CrmSdk.Data that targets modern .Net.
Thanks!
PS: it's strange that Microsoft.CrmSdk.Data 9.0.2.45 depends on the Microsoft.CrmSdk.CoreAssemblies 9.0.2.42 - notice the slight version mismatch.