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 CRM (Archived)

Could not find type 'Xrm' in namespace Microsoft

(0) ShareShare
ReportReport
Posted on by

I'm trying to create a custom workflow activity and have followed the steps here verbatim: http://msdn.microsoft.com/en-us/library/gg334455 

However the moment I try and compile I keep getting the following error: 

The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft'

I'm using the latest CRM 2015 SDK and have pulled the Microsoft.Xrm.Sdk and Microsoft.Sdk.Workflow assemblies from there. This is a class library project with .NET 4 as the target framework.  Not the client profile. I've tried switching back and forth between .NET 4 and .NET 4.5, re-opened the solution and all the usual stuff.

Am I missing something here? Has anyone else encountered this with the latest SDK for CRM 2015?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Hosk Profile Picture
    on at

    Have you added refences to the crm DLLs in the workflow project and then add using statement s

  • Verified answer
    cranialsurge Profile Picture
    on at

    Found the issue, the dlls in CRM 2015 target the .NET Framework v4.5.2. Make sure you have that installed. Compile any projects using the new SDK against this version.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans