- One classlib project
MyClasslib
which contains one class MyClass.cs, which has an attribute[Obsolete("My Reason")]
- One console project
MyConsoleApp
which contains Helper.cs which uses Roslyn to get the attributes from MyClass.cs - One unit test project
Tests
which also uses Helper.cs, but prints a different result which is unexpected!
Using Roslyn to get the attributes of MyClass.cs works as expected, but the same code fails whe running it in a unit test.
System.ObsoleteAttribute("My Reason")
Obsolete
Why? Please help!
See #1