Error During Build in Visual Studio Tools For Microsoft Dynamics GP

Back in the early years of my career, before I became involved with Microsoft Dynamics GP, I was a trainee developer (admittedly on PICK Databasic) before moving on and learning a little VB6 and then into Microsoft Dynamics GP consultancy.

I’ve kept my hand in enough that I can still do some coding and last weekend, after chatting with a developer in the office who is creating some new screens for GP, I decided to have a little dabble with the Visual Studio Tools for Microsoft Dynamics GP myself.

To start off with, I loaded in one of the sample windows supplied; EnvironmentalDetails. After reading through some of the code, I decided to build the project and load the dll into GP so I could see it in action.

However, when I tried to build the project I got a multitude of errors;

Visual Studio Tools For Microsoft Dynamics GP - Build Error

Errors such as:

  • ‘TableError’ is not declared. It may not be accessible due to its protection level;
  • Type ‘TableError’ is not defined;
  • Type ‘SyUserObjectStore’ is not defined;
  • ‘Dynamics’ is not declared. It may not be accessible due to its protection level.

I had vague memories of the developer mentioning something about the .NET version so I had a prod around some of the settings. Not being well versed in Visual Studio 2010, it took me a while to find the setting I needed (Project >> EnvironmentalDetails Properties >> Compile tab >>Advanced Compile Options);

Visual Studio Tools For Microsoft Dynamics GP - Change Target Framework

Once I changed the Target Framework from .NET Framework 2 to .NET Framework 3 all of the errors went away and I was able to successfully complete the build.

Ian Grieve

About Ian Grieve

Ian is a Microsoft Dynamics GP certified consultant specialising in the delivery of Microsoft Dynamics GP projects and currently working for Perfect Image Ltd., a Microsoft Partner and VAR in the North East of England. Ian has worked with Microsoft Dynamics GP since 2003 and, over the nine years since, has dealt with all aspects of the product life-cycle from presales, to implementation, to technical and functional training, to post go-live support and subsequent upgrades and process reviews. In his spare time, Ian runs the azurecurve | Ramblings of a Dynamics GP Consultant blog dedicated to Microsoft Dynamics GP and related products.
This entry was posted in C#, Dynamics, GP, Microsoft, Programming, VB.NET, Visual Studio, Visual Studio 2010, Visual Studio Tools For MDGP and tagged , , , , , , . Bookmark the permalink.

2 comments on “Error During Build in Visual Studio Tools For Microsoft Dynamics GP

  1. Pingback: Error During Build in Visual Studio Tools For Microsoft Dynamics GP | Interesting Findings & Knowledge Sharing

  2. Pingback: Error During Build in Visual Studio Tools For Microsoft Dynamics GP | azurecurve - DynamicAccounting.net - GP Technical Blogs - Telligent

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>