web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Conditional Compilation : What does it get you and what does it not?

(0) ShareShare
ReportReport
Posted on by 1,588

I am just delving into the concept of conditional compilation using pre-compiler commands such as #if, #elseif, etc. I think I understand what this gets you but I wanted to lay out a scenario and ask a question for confirmation.

The way I think about this is it will get you a single project in your source control. You will still need to pull that code into a dictionary that matches the version for which you are building and which you have defined a constant defining your build numbers used in the code. So for deployment of your code you still build a chunk file which only works with a specific version. 

Why I am laying out this scenario? I have a client who utilizes a customization across multiple versions of GP. They requested that a single chunk file work for all versions. I do not see a way of accomplishing their request. 

Do you? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    L Vail Profile Picture
    65,271 on at

    Hi Chad,

    I do not know of a way to do it with a single chunk file. You may be able to do it with a single installer, but I think you'd still need to create version specific chunk files and cause the correct one to install based on reading the dictionary version. Curiously, why are they using multiple versions of GP? Do they have multiple licenses or are they hosting different versions?

    Kind regards,

    Leslie

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans