Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Build from command lin...
Finance forum

Build from command line: xppc.exe

(0) ShareShare
ReportReport
Posted on by 216

hi

Does anyone have an example on how to use this utility to build D365 application from command line? I could not find any. :( Looking to build entire application. 

Please let me know if you have a sample command that I can use. Don't want reinvent the wheel if possible :)

regards

harry

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Build from command line: xppc.exe

    Checking in the binaries is included in the article "Manage third-party models and runtime packages by using source control" that I linked earlier.

  • Martin Dráb Profile Picture
    232,866 Most Valuable Professional on at
    RE: Build from command line: xppc.exe

    You can (and should) check in binaries (instead of source case) in this case. Why do you say it's not an option? It's commonly done and recommended by MS engineers (although I'm not sure without checking if it's covered in documentation).

  • Deshpande Profile Picture
    216 on at
    RE: Build from command line: xppc.exe

    Well turns out checking in is not an option (per Microsoft) since we get a package from our ISV that does not have source control.

  • Deshpande Profile Picture
    216 on at
    RE: Build from command line: xppc.exe

    Thanks, so compile is not needed and I will investigate whether we can check-in our ISV models. Let me verify that and get back to you.

  • Deshpande Profile Picture
    216 on at
    RE: Build from command line: xppc.exe

    Thanks for the link by the way. It seems if we check-in ISV models then problem is completely solved. I dont know why at go-live Microsoft recommended not to do that. :( I have opened a discussion with Microsoft support to clarify this issue.

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Build from command line: xppc.exe

    Compile is not needed if you already have deployable packages. They are the result of the compilation!

    There's no compiler and no source code in test and prod environments, either. And you can deploy packages in those environments. The packages contain the compilation result = dll assemblies.

  • Deshpande Profile Picture
    216 on at
    RE: Build from command line: xppc.exe

    hi

    I am compiling entire application. We have extended ISV solutions in addition to OOB D365. I believe a full compile is necessary. Is this not correct? If our customized model will contain binary as well as source code then probably compile will not be needed?

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Build from command line: xppc.exe

    You don't need (and you can't) compile the deployable packages after installing them. They are dlls that the build created from source code.

    Deployable packages don't contain source code. There's nothing to compile.

    By the way here are instructions on how to handle third party models and binaries in your source control. You should really add the isv solutions to source control, too. Even if they are binaries only.

    [View:https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-tools/manage-runtime-packages]

  • Deshpande Profile Picture
    216 on at
    RE: Build from command line: xppc.exe

    "If you install the same binaries to another environment with the same version as in production, you'll get the same application." Yes, this is exactly what I am trying to do. I have written script to deploy packages on the local box. However, I need to compile application once I deploy the package and I am trying to automate this step. Once this is done I will write script to load db but that should not be terribly complicated.

  • Martin Dráb Profile Picture
    232,866 Most Valuable Professional on at
    RE: Build from command line: xppc.exe

    How is compilation of source code related to production? There are is no source code in production.

    You use a build server to create deployable packages (this is when source code gets compiled to binaries) and then ask Microsoft to install these binaries to production. If you install the same binaries to another environment with the same version as in production, you'll get the same application. Another solution would be copying binaries from production, but you don't need that if you know what you've installed to production (and that's what you definitely should know, otherwise you're in trouble).

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,118 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans