Tuesday, October 25, 2011

AX 2009 and Visual Studio 2010 - Install Enterprise Portal Developer tools without enterprise portal

Out of the box EP Visual studio Add-in (Enterprise portal tools) shipped with AX2009 doesn't work with VS2010. With few simple steps it is possible to make it compatible. AX installer performs validation for VS2008 so all installations steps for Enterprise portal tools have to be done manually:

The same step more & less can be use for install Enterprise Portal Developer tools without install Enterprise Portal !

Copy DVD\MSI\EnterprisePortalTools to C:\Program Files\Microsoft Dynamics AX\50\EnterprisePortalTools
  1. Rename file Microsoft.Dynamics.Framework.Portal.VisualStudio.2008.AddIn.AddIn to Microsoft.Dynamics.Framework.Portal.VisualStudio.2010.AddIn.AddIn
  2. Edit the file: replace VS version 9.0 with 10.0
  3. Open VS2010: Tools->Options->Add-in/Macros security and add C:\Program Files\Microsoft Dynamics AX\50\EnterprisePortalTools
  4. Open DVD\MSI\Components64\
  5. Unpack AxWebProject.zip
  6. File ProjectName.webproj is just one bit big. For VS2010 it should be 0: either delete the file and create new one with same name or edit it and delete it's content
  7. Pack it back to AxWebProject.zip
  8. Create folder My Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual Web Developer\CSharp
  9. Copy AxWebProject.zip to My Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual Web Developer\CSharp
  10. Create folder My Documents\Visual Studio 2010\Templates\ItemTemplates\Visual Web Developer\CSharp
  11. Copy AxWebpartPage.zip and AxWebUserControl.zip from to My Documents\Visual Studio 2010\Templates\ItemTemplates\Visual Web Developer\CSharp
  12. Open VS2010 and make sure that EP project template is available
  13. To add EP specific Items to Visual Studio's Toolbox, select "Chose items" from the right click menu on VS's toolbox
  14. Browse for C:\Program Files\Microsoft Dynamics AX\50\Client\Bin\Microsoft.Dynamics.Framework.Portal.dll

3 comments:

Per Jakobsen said...

Hi does VS 2010 work fully with ax 2009 and reporting tools, or is something special like this required in order to get this to work.


Also I can not find VS 2008 eight download anywhere..

Regards

Denis Macchinetti said...

Hi Per

Visual Studio 2010 is not supported for Dynamics AX 2009 as per AX 2009 System Requirement.

However, you can install the Developer Tools manually.

About Visual Studio 2008, if you have an MSDN Subscriptions you can download from there.

Denis

Anonymous said...

Hi Denis
Thank you very much for a great post
I went through the process and everything 's alright, but at the every last stage when I add the tools I get a message "Could not load file or assembly 'Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified". Is there any solution to that? PS: The VStudio(32bit) is on my local(development) machine