- Use Visual Studio for the best experience.
- After cloning the repository, open the solution file in Visual Studio.
- Build the solution to restore the NuGet packages.
To generate Type Declarations based on our Dynamics 365 solution, we use XrmContext for the Plugins project and XrmMockup for the Tests project.
- Create a
MetadataGenerator365.exe.config
file in ROMTS-GSRST.Plugins.Tests\Metadata
<!-- MetadataGenerator365.exe.config -->
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="url" value="https://<Your Instance>.crm3.dynamics.com/XRMServices/2011/Organization.svc" />
<add key="method" value="ClientSecret" />
<add key="mfaAppId" value="<Your App ID>" />
<add key="mfaClientSecret" value="<Your Client Secret>" />
<add key="solutions" value="<Your solution>" />
<add key="entities" value="<Comma delimited list of entities>" />
<add key="servicecontextname" value="Xrm" />
<add key="fetchFromAssemblies" value="false" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
</startup>
</configuration>
- Create a
XrmContext.exe.config
file in TSIS2.Plugins\XrmContext
<!-- XrmContext.exe.config -->
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="url" value="https://<Your Instance>.crm3.dynamics.com/XRMServices/2011/Organization.svc" />
<add key="method" value="ClientSecret" />
<add key="mfaAppId" value="<Your App ID>" />
<add key="mfaClientSecret" value="<Your Client Secret>" />
<add key="solutions" value="<Your solution>" />
<add key="entities" value="<Comma delimited list of entities>" />
<add key="servicecontextname" value="Xrm" />
</appSettings>
</configuration>
- After setting up the configuration files, you can run the
MetadataGenerator365.exe
orXrmContext.exe.config
executables to generate the Types.