How to provide multiple exclusions in VsTest Task TestCategory

I am trying to exclude two testing categories from the VS Test task.

I tried including TestCategory!=Monitor|TestCategory!=Regression, but that didn't exclude either category.

I know that when I ran it only as "TestCategory!=Monitor" it properly excluded that group.

So then I tried running the tests with "TestCategory=Regression" and noticed it ran those fine as well.

But, when I try excluded two categories it doesn't seem to work.

Based on this link it seems like I am doing it correctly

I also found but when I tested with "TestCategory=Smoke|TestCategory=Monitor" it ran fine. I'm wondering if you just can't have multiple !=

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum