Tuesday 13 August 2019

Unable to build VS 2019 solution with Dynamics 365 Developer Toolkit Installed

Issue:

I have installed the Developer Tool kit in Visual Studio 2019, created a Dynamics 365 Package project, and a CRM customization project but I cannot build the VS solution after importing my CRM solution into VS. I am facing following error:


Severity    Code    Description    Project    File    Line    Suppression State
Error        The command "REM SET AssemblyVersionDefinitionFile=
          REM SET AssemblyVersionName=
          "D:\...\CRM\SDK\Bin\SolutionPackager.exe" -a:pack -z:"bin\Debug\....Customisations.zip" -f:"obj\Debug\\BeforeLoc"" exited with code 3.    CRMSSolution      


Resolution:


  • Unload your customization project in visual studio 
  • Edit your Dynamics 365 Package.CSPROJ.file either in Notepad++ or Notepad.
  • Find following lines 

<SolutionPackagerDir>C:\365SDK\Sdk\SDK\Bin</SolutionPackagerDir>

<SolutionLocToolsDir>C:\365SDK\Sdk\SDK\Bin</SolutionLocToolsDir>

and replace the highlighted part with local system path

or

Move the SDK Bin folder to other location and give that path in place of highlighted path.

Blogger Widgets