You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting the project to SDK-style fixes the issue. I took a clean .NET WPF app from the template, removed all the relevant stuff and with the following content, it works:
Describe the Bug
In old-style NetFX WPF csproj projects, any attempt to reference ThisAssembly, even typeof(ThisAssembly) will not compile.
error CS0122: 'ThisAssembly' is inaccessible due to its protection level
Steps to Reproduce
In an old-style NetFX WPF csproj C# file, any references to ThisAssembly will not compile.
Expected Behavior
The expectations were that this would compile.
Exception with Stack Trace
No exception, only a build error placed above.
Version Info
1.4.3 via Nuget
Additional Info
Related issues possibly
dotnet/Nerdbank.GitVersioning#404
dotnet/Nerdbank.GitVersioning#449
The text was updated successfully, but these errors were encountered: