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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Can’t add Dynamics DLLs to class library project for building new transportation management engine

(2) ShareShare
ReportReport
Posted on by 39
I am following create-new-transportation-management-engine.
I have added all the DLLs as mentioned in this article to my class library project (.NET Framework 4.7.2).
However, when I am using these references in my class and compile my project, I get below error.
error CS0246: The type or namespace name 'Dynamics' could not be found (are you missing a using directive or an assembly reference?)
Any help in this regard?
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,602 Most Valuable Professional on at
    Can you share the complete warning messages, please? They talk about some dependencies, but the screenshot doesn't show all the details.
  • DB-02092211-0 Profile Picture
    39 on at
    @Martin Dráb 
    warning MSB3275: The primary reference "Microsoft.Dynamics.AX.Tms.Base" could not be resolved because it has an indirect dependency on the assembly "Microsoft.Dynamics.AX.Framework.Utilities, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which was built against the ".NETFramework,Version=v4.8" 
  • Verified answer
    DB-02092211-0 Profile Picture
    39 on at
    So the problem was that the referenced DLLs were from higher versions than my project version.
    I was ignoring the warning as the version of the DLLs in the decomplier showed v4.0. 
    Martin pointed to to root cause.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 153 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 97 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans