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

Monodevelop: analyzer uses original reference instead of generated one #14

Closed myocytebd closed 8 months ago

myocytebd commented 2 years ago

Building works flawlessly, but monodevelop seems to use original reference for analyzer (auto completion etc.).
Is there a way to solve it automatically in project files without manually change reference after generation?
Or did I miss something?

In .csproj:

    <InternalsAssemblyNames>Assembly-CSharp;</InternalsAssemblyNames>
...
    <Reference Include="Assembly-CSharp">
      <HintPath>path\to\original\Assembly-CSharp.dll</HintPath>
    </Reference>

(I have little knowledge of around .csproj and .net build flow)

aelij commented 8 months ago

Sorry I don't know how monodevelop works. Does it happen only for References or also for PacakgeReferences?

myocytebd commented 8 months ago

It was too long ago and I could not remember the details. Let me close it. (and monodevelop has been dead for long)