How to Create and Publish a package in D365 FO
This article describes the following points in detail:
This article may seems to be very basic, but for beginers, it will be very helpful.
First Rebuild solution. If the build succeedes without any errors then click on Dynamics 365 > Deploy > Create Deployment Package
Select all the Models and then select the Output folder and then click on Create button.
After the package has been created, you will see "Package created." written in the left botton corner and then you can Close this popup.
Open https://lcs.dynamics.com/ and login to it.
After that open the project in LCS.
Click on the hamburger icon and click on Asset Library:
Click on Software deployable package
Click on + button
Enter "Name of Update", Description and Click on "Add a file" button
Click browse and select file and click on Upload button.
Click on Confirm button
Go to home page on your project and select Test or Prod environment where you want to deploy your package.
Click on Full details label
Go to Maintain dropdown and click on Apply updates option.
Enter Name for the update and select the deployment package from the list below and then click on Apply button.
It will ask for confirmation. Select Yes.
It will open another secreen showing the progress.
Once completed to 100% your package is published successfully.
Thanks for reading this article.
Freelance D365 F&O Developer/Architect, Microsoft MVP
7 个月Note that this way of package creation shouldn't be used, because it's not save. Instead of deploying a known version of code from source control, you deploy code that happen to be present on the given development box. That may be completely invalid - out of sync, with local changes never stored in source control etc. You may also forget to include some packages or so. The correct process is using a build pipeline to take code from source control, build it, create a package and upload it to LCS. The build can then trigger a release pipeline and deploy this know version of the application to one or more environments. In addition to being much safer, it also means less work for you.