1

Using Visual Studio for Mac, earlier developers were able to set "Android API Usage issues" as Errors during compile time, instead of causing exceptions during runtime.

Before

You can see it in this old post, and here's the way it used to look:Screenshot showing VS for Mac Code Rule for Android API Usage

After

But as you can see in the Code Rules section now, there's no easy way to do this like before:Screenshot showing VS for Mac Code Rules now

Question

Do you know what I can put in the code rules text box now to get those errors?


Edit:

Code actions as requested by Dai Code Actions page 1 Code Actions page 2 Code Actions page 3

Saamer
  • 4,687
  • 1
  • 13
  • 55
  • 1
    Please show the "Code Actions" tab in your screenshot. [According to the current documentation that's where some of the rules are moved to](https://learn.microsoft.com/en-us/visualstudio/mac/refactoring?view=vsmac-2019). – Dai Dec 29 '20 at 07:37
  • @Dai here you go, I have share all the Code Actions in the list – Saamer Dec 29 '20 at 07:41

0 Answers0