Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

CLI command or tool to "Create Deployment Packages"

Posted on by 10
I am trying to automate our package development for our payment extensions for Finance and Operations. I was wondering if there was a CLI command or tool to assist me in doing this outside of VS2022? Currently the process relies on me launching VS2022 and then Extensions -> Dynamics 365 -> Deploy -> Create Deployment Package and selecting relevant packages. Documentation can be found here Create deployable packages of models - Finance & Operations | Dynamics 365 | Microsoft Learn

I only need this package locally and do not need to interact with LCS.
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 7,347 Super User 2024 Season 2 on at
    CLI command or tool to "Create Deployment Packages"
    Hi Community member,
     
    In general, there are two ways to create deployable packages. It's either from Visual studio OR azure devops pipelines.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    CLI command or tool to "Create Deployment Packages"
    Despite the documentation, you should never create a deployable package from Visual Studio. The correct way covers your requirement for automation is also much safer.
     
    The right approach is using Azure DevOps build pipelines, which downloads code from course control, builds the application, creates a deployable package and optionally uploads it to LCS. This ensures that you use a known version of the application, not something that just happen to be lying in a dev box.
     
     
    (Moved from D365 general forum to the Finance forum, because it's clearly about F&O and not about D365 in general.)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans