Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flush Assembly cache?
#2
Should work without restarting the editor. Can you post a simple library class file and 1 or 2 scripts that could help to reproduce the problem? Menu Edit -> Forum copy.

I tested this. Works without restarting the editor.

1. Create a library project with 1 class file:
C# code:
// class "Library3.cs" /*/ role classLibrary; outputPath %folders.ThisApp%\Libraries; /*/
using System.Reflection;

[assembly: AssemblyVersion("1.0.0.0")]

namespace Library3 {
public class Class1 {
    public static void Function1() {
        print.it(1);
    }
}
}

2. Click the Compile button.
3. Create a script and add the assembly file (Properties -> Assembly...).
C# code:
// script "" /*/ r Libraries\Library3.dll; /*/

Library3.Class1.Function1();

4. Run the script. It prints 1.
5. In the class file replace 1 with 2. Compile again.
6. Again run the script. No errors. It prints 2.


Messages In This Thread
Flush Assembly cache? - by netdude78 - 12-15-2021, 05:08 PM
RE: Flush Assembly cache? - by Gintaras - 12-15-2021, 06:08 PM
RE: Flush Assembly cache? - by netdude78 - 12-16-2021, 02:39 AM
RE: Flush Assembly cache? - by Gintaras - 12-16-2021, 03:41 PM
RE: Flush Assembly cache? - by netdude78 - 12-16-2021, 03:51 PM
RE: Flush Assembly cache? - by Gintaras - 12-16-2021, 06:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)