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

SyntaxEditor for Windows Forms Forum

Posted 2 years 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 2 years ago]

Comments (2)

Answer - Posted 2 years 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 2 years 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 (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.