web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

which folder to map with Metadata in VSTS ? some check in related queries

(0) ShareShare
ReportReport
Posted on by 225

Hello,

We are currently working on ISV product for D365 F&O. I have some doubts in VSTS mapping and check in related things.

Can anyone explain which things I need to check in ? I have mapped my local Projects folder to Projects and in Metadata I have mapped C:\AOSService\PackagesLocalDirectory.

I have questions like:

1) should I check in whole folder of my new model ? (C:\AOSService\PackagesLocalDirectory\MyNewModel)

2) Should I check in bin folder ? (C:\AOSService\PackagesLocalDirectory\MyNewModel\bin)

3) Should I check in XppMetadata folder inside of my model ? (C:\AOSService\PackagesLocalDirectory\MyNewModel\XppMetadata)

In pending changes it is not showing file changes of XppMetadata / bin / Resources etc by default.. we need to add manually.. We can only see changes happened in Descriptor & folder with same name as my model.

4) I am using C# project for some external communication.I have also added some dlls as reference to X++ Project, In rnrproj file it is showing my local file path.If I chekck in this how it will map this file in another dev/build machine ? 

pastedimage1615740012564v2.png

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pratik,

    Please check the MS documentation here for adding your model to VSTS.

  • Pratik Rami Profile Picture
    225 on at

    hi, Gunjan

    I have gone through this document, but I am not getting answers for my queries from this document. It is not in that detail

  • Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    You should add the whole folder of your model and the descriptor file.

    But your point 1 isn't correct, because C:\AOSService\PackagesLocalDirectory\MyNewModel isn't a model. It's a package. The model is likely in C:\AOSService\PackagesLocalDirectory\MyNewModel\MyNewModels.

    Regarding the path, it's just a hint. The application follow standard .NET probing rules to find the assembly (the right place for the file is the bin folder of the package). Also note that you can use a project reference instead of referring to the physical DLL file (that's what I do with C# code developed by myself.

  • Pratik Rami Profile Picture
    225 on at

    hi Martin,

    1) as we are not going to check in bin folder, we need to check in C# Project/Dlls so another dev/build machine can get latest and then we need to build X++ Project there. right ? It will copy dlls in bin folder of that machine.

    2) we are not going to check in xppMetadata folder too. So files in that folder will also be generated automatically in another machine on X++ project build ?

    3) Some files are not visible in pending changes by default. we need to add them manually. like files in (C:\AOSService\PackagesLocalDirectory\MyNewModel\MyNewModel\AxReference). why these files are ignored ?

  • Verified answer
    Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    1) If you want to store the project in version control and/or share it with other developers, you need to check it in. That's almost certain.

    But when a build server builds you models, it does *not* build projects. Therefore you need to check in the DLL in the bin folder as well.

    2) Correct. For X++, you need to version source code, not anything built from source code.

    3) You would have to ask Microsoft why their tools don't do it automatically.

  • Pratik Rami Profile Picture
    225 on at

    ok. thank you martin

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans