FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

fix: indirect friend assemblies not weaved with InternalVisibleTo

Open labbbirder opened this issue 7 months ago • 0 comments

This should be the fix of the following issue:

In case that we have two assemblies, one named A is the assembly to be changed, one named B is a friend assembly(aka [assembly:InternalsVisibleTo("A")]) of A. When reload triggered, once changed file in A has non-public reference to B, the compiler will throws with inaccessibility error.

With this patch, assembly B will be weaved with InternalsVisibleTo as well. Dotnet compilation will pass and B.dll will be seen under Temp\Fast Script Reload\AdjustedDlls.

labbbirder avatar Apr 24 '25 05:04 labbbirder