AL icon indicating copy to clipboard operation
AL copied to clipboard

PTE0005 App.json 'target' property must not be set to 'Internal'

Open JulianTillmann opened this issue 7 years ago • 4 comments

Describe the bug We want to build an OnPrem Extension using .NET as suggested in the ".NET Interoperability from AL"-docs (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started-call-dotnet-from-al) we added a "target: internal"

But now we get an error "PTE0005 App.json 'target' property must not be set to 'Internal'" in VSCode

We checked https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files#appjson-file but there is only a reference that "The Dynamics NAV Server" must also be set to internal.

We found a "ExtensionAllowedTargetLevel" Key in the NST CustomSettings.config, which is set to "Internal" which I guessed the doc meant. image

I don't know what else to set or check, please help me understand and set up our development enviroment correctly.

JulianTillmann avatar Dec 06 '18 16:12 JulianTillmann

You should not be using PTECop when developing On-Prem. Your settings are all correct.

StanislawStempin avatar Dec 06 '18 21:12 StanislawStempin

      You should not be using PTECop when developing On-Prem. Your settings are all correct.

What is PTECop and how do I not use it?

JulianTillmann avatar Dec 10 '18 08:12 JulianTillmann

Found it

one request: please don't use abbreviations that are not googleable, took me a Long time to find "PerTenantExtensionCop"

JulianTillmann avatar Dec 11 '18 06:12 JulianTillmann

A colleague of mine had this problem. Go to File/Preferences/Settings, search for "code analyzers" until you find "AL: Code Analyzers". Choose "Edit in settings.json". Remove the line ""al.enableCodeAnalysis": true "

Apparently she had got this setting during an extension course

NAVFreak avatar Mar 01 '19 15:03 NAVFreak