Coder Social home page Coder Social logo

vxzry / d365fo-template Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 11 KB

D365 template for Git. Template for D365 FO (Microsoft Dynamics 365 Finance and Operations) projects (Git). Using Git with D365 FO.

PowerShell 100.00%
d365 d365fo d365-template dynamics365 dynamics365-fo template template-repository git

d365fo-template's Introduction

d365fo-template

Template for D365 FO (Microsoft Dynamics 365 Finance and Operations) projects (Git)

Getting Started

  1. Clone (or use the template) the repository on your development environment.

  2. Add your models to the Metadata folder.

    Example structure:

    $/Metadata
    +---MyMainModule
    |   +---Descriptor
    |   |       MyMainModule.xml
    |   |
    |   +---MyMainModule
    |       +---AxClass
    |       |       MyClass.xml
    |       |
    |       \---AxTable
    |               MyMainTable.xml
    |
    \---MyOtherModule
        +---Descriptor
        |       MyOtherModule.xml
        |
        \---MyOtherModule
            \---AxClass
                    MyTestClass.xml
    
  3. Create your Solutions and Projects on the Projects folder.

  4. Edit the registerSymbolicLink.ps1 and unregisterSymbolicLink.ps1 script and change the $AOSMetadataPath to your PackagesLocalDirectory path.

  5. Open Powershell as administrator on the path of your repository and run the registerSymbolicLink.ps1 script.

    > .\registerSymbolicLink.ps1

    This will create a symbolic link for the models on the Metadata folder to your PackagesLocalDirectory folder. That way, it would seem as if your model is still residing on the PackagesLocalDirectory folder.

  6. Share your Metadata folder to Everyone and set the permission to Read.

Adding new models to the repository

When creating a new model, you'll find the model on PackagesLocalDirectory. To add it to the repository, do the following:

  1. Close Visual Studio.

  2. Stop IIS, if necessary.

  3. Stop Batch service, if necessary.

  4. Cut the model from PackagesLocalDirectory.

  5. Paste it to your Metadata folder.

  6. Open Powershell as administrator on the path of your repository and run the unregisterSymbolicLink.ps1 script.

    > .\unregisterSymbolicLink.ps1

    This will unregister all links from your Metadata folder to avoid issues when running the register script afterwards.

  7. After unregistering your models, run the registerSymbolicLink.ps1 script to register all models including the new model.

    > .\registerSymbolicLink.ps1
  8. Start IIS and the Batch service, if stopped.

  9. Repeat these steps whenever you have to create a new model to include them on the repository.

d365fo-template's People

Contributors

vxzry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

nathanclouseax

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.