public static void cleanupUnusedAssemblyCache()
{
String dir = Utility.getCachedAssemblyPath();
String[] files = PortUtil.listFiles( dir, ".dll" );
foreach ( String file in files ) {
String name = PortUtil.getFileName( file );
String full = Path.Combine( dir, name );
if ( !usedAssemblyChache.Contains( full ) ) {
try {
PortUtil.deleteFile( full );
} catch ( Exception ex ) {
serr.println( "Utility#cleanupUnusedAssemblyCache; ex=" + ex );
Logger.write( typeof( Utility ) + ".cleanupUnusedAssemblyCache; ex=" + ex + "\n" );
}
}
}
}