Editar

Partilhar via


AppSourceCop Error AS0060

Unsafe methods cannot be invoked in an AppSource application

Description

The method cannot be invoked in an AppSource application because it can lead to runtime errors or undefined behavior.

Remarks

This error occurs when an unsafe method is invoked in an AppSource application. Unsafe methods are those that can lead to runtime errors or undefined behavior, making them unsuitable for use in applications published on AppSource.

How to fix this diagnostic?

To resolve this error, you need to avoid invoking unsafe methods in your AppSource application. Here are the steps:

  1. Locate the code where an unsafe method is being invoked.
  2. Find a safe alternative to the unsafe method and replace it in your code.

AppSourceCop Analyzer
Get Started with AL
Developing Extensions