
Hi,
I have a client requirement to add PMT calculation formula in excel but it requires XmlDocument Dotnet variable and if I create the one and try to build the extension it throws an error - Dotnet interop requires version 2.0 or greater. So I wanted to know on which version should I move on to complete this task.
Version Information of current Business Central On premises
Variable Declarated
Error log
'.NET interop' is not available in runtime version '1.0'. The supported runtime versions are: '2.0' or greater.
App.json for more reference
{
"id": "28dfg330-95af-4e22-a7e0-d73b7ec08ree",
"name": "Testing",
"publisher": "DEV",
"version": "1.0.0.0",
"brief": "",
"description": "",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"capabilities": [],
"screenshots": [],
"platform": "13.0.12929.0",
"application": "13.1.25940.0",
"showMyCode": true,
"runtime": "1.0",
"target": "Internal",
"idRange": {
"from": 50000,
"to": 60000
}
}
Will be waiting for response. Any response from your side will be helpful to me.
XMLDocument object is available also on SaaS as a native data type in AL.
However, to use .NET assemblies in extension, you need to declare that your extension is for on-premise only by setting "target": "OnPrem" in app.json file.
A link that explains all is here: