Is there any way to generate all cache files through code?

SyntaxEditor for Windows Forms Forum

Posted 6 months ago by hehui - manager, foxtable
Version: 22.1.1
Avatar

Hello,

Is there any way to generate all cache files(*. reflection. dat) through code. When a large number of library files are referenced, I can quietly use a thread to generate all cache files before the user starts the syntax editor, so that the user experience will be better and the previous bug can be avoided better.

Thanks.

[Modified 6 months ago]

Comments (2)

Answer - Posted 6 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

When you load an assembly into the FileBasedAssemblyRepository, it should be creating the cache files at that point.  Normally this happens behind the scenes via the instance set into AmbientAssemblyRepositoryProvider.Repository as you add a reference in an IProjectAssembly.  But you could load assemblies into the FileBasedAssemblyRepository directly via its Load methods first if you wish.


Actipro Software Support

Posted 6 months ago by hehui - manager, foxtable
Avatar

With your help, my program is becoming more and more perfect.
Syntaxedit is a great product. Thank you.

The latest build of this product (v22.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.