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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

'XRM' does not exist in Microsoft

(0) ShareShare
ReportReport
Posted on by 15

Trying to create a console app and installing the necessary nuget packages and adding the references, though I cannot build my App, getting the following error:

Error: The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

Having the following at the moment:

Nuget packages:

pastedimage1663576576946v1.png

References:

pastedimage1663576595865v2.png

Visual Studio 2019

.Net Framework of the app 4.5.2 - tried with other versions as well, the same thing

pastedimage1663576627835v3.png

Did anyone encounter this issue before?

Thanks!

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you can try with this assembly https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/

    .net version should be at least 4.6.2

  • ro_consult_iv Profile Picture
    15 on at

    It worked after using the higher .net version and with this assembly.

    Thanks :)

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 51

#2
Martin Dráb Profile Picture

Martin Dráb 39 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans