Error During Build in Visual Studio Tools For Microsoft Dynamics GP

Microsoft Dynamics GPBack 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.

What should we write about next?

If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.

Your Name

Your Email

Suggested Topic

Suggestion Details

Looking for support or consultancy with Microsoft Dynamics GP?

I no longer work with Microsoft Dynamics GP, but the last company I worked for was ISC Software in the UK; if you’re looking for support or consultancy services with Microsoft Dynamics GP you can contact them here.

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

Leave a Reply

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