Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 Developer Toolkit 'Using' issue with MSBuild

(0) ShareShare
ReportReport
Posted on by
Hi, I am trying to use the Dynamics 365 Developer Toolkit with VS 2015 for build automation using msbuild. I am getting error the below...
 
Could not load file or assembly ‘EnvDTE, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies.
 
When I checked the included Microsoft.CrmDeveloerTools.dll 1.3 using Reflection tool, I noticed it is using the VSLangProj (v7.x) version which I believe is causing the old EnvDTE DLL v7.x dependency.
 
Based on some articles I read, it seems Microsoft removed the assemblyBinding redirect to EnvDTE v8.x in the devenv.exe from VS2013 onwards which is causing this old envDTE assembly unable to resolve at runtime.
 
Since the build agents are running on Enterprise servers, I cannot control/modify any assemblyBindings either on the VisualStudio MSBuild. One option could be to use a app.config for the bindingRedirect to new EnvDTE assembly in the project itself when building the Toolkit but that requires Project sourcecode.
 
Has anyone noticed this issue? Any suggestions how to work around this is really appreciated.

*This post is locked for comments

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans