Skip to content

[RFE] Microsoft.CrmSdk.Data targeting .NET Core / .NET 6.0 #308

@fowl2

Description

@fowl2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions