Giter VIP home page Giter VIP logo

msdyn365bc_apptemplate's Introduction

MSDyn365BC_AppTemplate

Template for MS Dynamics 365 Business Centrall App development with Azure DevOps pipeline

Usage

Just fork the repo or download the files, edit the App.json in MainApp folder and TestApp folder and push to your Azure DevOps repository. You will be able to create Build pipeline with few clicks (or it will be created automatically if allowed/working).

What to change

  • App.json in MainApp and TestApp folders
  • Settings.ps1 in Scripts folder (container name, image name, license file)
  • Azure-pipelines.yml in root folder (TestCodeunitId, CertFile, CertPwd, check the pool:demands, by default there is set Docker - the agent must have this requirement set or remove the demand)
  • Trigger - by default build is triggered only for master branch and PR if set.

Needed settings in Azure DevOps

  • Go to "Project settings - Service Connections" and create one for GitHub and name it GitHub (or use another name, but change the endpoint name in the .vsts-ci.yml file).
  • If the Build Pipeline is not created after you push the code to the Azure DevOps repository, just create new pipeline and select the repository. It will detect the yml file and set the pipeline for you. Not all settings could be set from the yml yet. After creating the pipeline, assign variable USER.PASSWORD with password for user under which the agent is running (I recommend to set it through Variable Group).

Multi-level apps

If you have multi-level apps created from some base level app and depending apps, you can put the dependency apps into Dependency subfolder as a git submodule. It should be automatically used when compiling the app.

Help/Feedback is welcome!

msdyn365bc_apptemplate's People

Contributors

kine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msdyn365bc_apptemplate's Issues

Exception calling “ShouldContinue” .. Windows NonInteractiveMode while Install-Module

Hello Kamil,

we went ahead and pushed your template to our project/repository. The first build failed although we followed the instructions in the readme.

I found this article from 2016 in which the author complains about PowerShell in ADO and what Microsoft should improve. In the end we had to run the command he suggested
Install-PackageProvider -Name NuGet -Force -Scope CurrentUser

On the machine which hosted our agent we had before ran the following commands
Set-ExecutionPolicy Unrestricted
Install-PackageProvider -Name nuget
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

The user which ran the agent had the NVR module installed, but stil the agent tried to install it everytime.

I don't think this issue is related to your template, but people might run into this aswell. Maybe you can add it into your instructions.

##[error]New-PSSession : Unable to load DLL 'vmcompute.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Hello Kamil,

we ran into the next problem during "Prepare environment". Could you give us some more informationen on how you did setup the VM for the agent? We only edited the suggested settings within the repository.

Please see the attached log file if you're looking for some more information.

logs_2649.zip

Do you have any idea/suggestions on where to look for answers? Looking for the message we found this issue and this issue. Both suggested to reinstall docker and hyper-v, but this did not solve our issue.

Thank you very much

Question: Why use two apps?

Hi Kamil,
I'm trying out your little tool here. So far promising. But why do you have the test codeunits in a separate extension?
In my mind, then its just get more complicated and takes more time, if you have it in a dependent extension. In a large extension, then maybe, but generally I would not like to use a separate extension.
There is no requirement from MS in regards to having it separate for AppSource either?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.