aelij / IgnoresAccessChecksToGenerator

Generates reference assemblies where all the internal types & members become public, and applies the IgnoresAccessChecksTo attribute
MIT License
167 stars 21 forks source link

unknown build error #10

Closed impoetk closed 3 years ago

impoetk commented 3 years ago

I get the following error by using the nuget in a wpf net framework 4.8 project

error MC1000: Unknown build error, 'Could not load type 'System.Runtime.CompilerServices.RestrictedInternalsVisibleToAttribute' from assembly 'Microsoft.CodeAnalysis.Workspaces, Version=3.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' because the method '.ctor' has no implementation (no RVA).'

aelij commented 3 years ago

Duplicate of #6

aelij commented 3 years ago

As a workaround, use this tool on a non-WPF project (one that doesn't build xaml) and reference it.