Thursday, August 23, 2018

d365FO - how to change model layer

In d365FO, once a model was already created, the layer is NOT able to changed. However there is a simple trick to do that. The following example shows how to change model layer from USR to ISV.

1. Stop AOS service in IIS
2. Edit C:\AOSService\PackagesLocalDirectory\yourModel\Descriptor\yourModel.xml

        from
<Layer>14</Layer>

        to
<Layer>8</Layer>

3. Edit the VS solution file, for example C:\users\aaa\yourModel\yourModel.sln

        Change below USR to ISV

        MinimumVisualStudioVersion = 10.0.40219.1
        Project("{FC65038C-1B2F-41E1-A629-BED71D161FFF}") = "yourModel (USR) [Funny company]", "yourModel\yourModel.rnrproj", "{3F0DF531-7E6A-47A7-8230-B22D299794C5}"
EndProject

4. Start AOS service in IIS

5. Launch VS and build the model again to verify the change.

That's all!




Ref:
Alex Kwitny's comment https://stackoverflow.com/questions/42513406/how-can-i-change-the-layer-from-usr-to-isv-in-dynamics-365-for-operation

No comments:

Post a Comment