Источник:
http://daxonline.org/1607-how-to-imp...er-d365fo.html
==============
Hello, Imagine a situation when you have a project that you developed in your own environment in some model. Then you need to import your project into another machine into a certain model (such design rules or something else that forces you to do this).
And then we do not know how to do it, because if we use the standard import method, then our project will load into the source model, and if it does not exist, then it will create it.
There are two ways to get out of this situation: - Download the project in a standard way, and then create a project in the model you want and duplicate all the elements from AOT that were in the imported project in your project. Well, then delete the elements and the project that you imported, Build, Sync and rename duplicate elements
- Move metadata items.
Imagine what we need to export project1 from "Model 1" to "Model2".- Export the project from one system.
- Import the project into another system.
- Go to the ...AOSService \ PackagesLocalDirectory \ "Model 1" \ folder and move the metadata of the items to the same directory for "Model 2".
- Go to the ...AOSService \ PackagesLocalDirectory \ "Model 1" \ XppMetadata \ "Model 1" \ folder and move the metadata of items to a similar directory for "Model 2".
Now you need to set up a new project. Open the VS and create a new project in
"Model 2".
- Go to the folder of the new project and find the .rnrproj file. The same file is found in the folder of the imported project. And then we set up our project, that is, we tied the moved elements to it. Example:
Debug 2.0 Model2 False False initial AnyCPU bin v4.6 False False true false {YourGUID} ProjectForModel2 ProjectForModel2 StartupClass Class Content StartupClass Classes\StartupClass Newtonsoft C:\Users\Administrator\Documents\Visual Studio 2015\Projects\Newtonsoft\Newtonsoft\bin\Debug\Newtonsoft.dll
Usually, in this file, most of the settings are given by the project, the only thing you need to change is to copy the block , and . After that, you can delete the imported project.
- Open your new project in VS. Build and Sync it.
That's all. I would very appreciate some information about the logical explanation of how the metadata are placed in the file system in D365FO. Thanks
Resource:
https://daxdevblog.blogspot.com/2017...-you-have.html
Источник:
http://daxonline.org/1607-how-to-imp...er-d365fo.html