web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

.Net development and X++ development

(0) ShareShare
ReportReport
Posted on by 285

I'm trying to get a connection to Azure Service Bus to work from X++.

I actually do have it working, but I'm getting these warnings in VS: (cut down for brevity)

 

Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Threading.Tasks.Extensions" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" /><bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" /></dependentAssembly></assemblyBinding>

 

This is what I did:

  • New D365 F&O project
  • Updated the project file to set the .net version to 4.7.2
  • Add a .Net Framework Class Library project to the solution. Target framework 4.7.2
  • Add the following Nuget packages:
    • Azure.Core (1.20.0)
    • Azure.Identity (1.5.0)
    • Azure.Messaging.ServiceBus (7.12.0)

 

The code works, but it gives the above warning and I;m worried that this might cause problems down the road or during runtime on a tier2/production environment.

 

It says to update the app.config with those mappings, but there is no app.config for an X++ project, not does it let you add one.

 

Any ideas?

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi Rob,

    Please check the common fixes about the error during a build when more than one version of the same dependent assembly referenced in a build of the same project:

    learn.microsoft.com/.../msb3277

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans