如何判断dll是debug还是release

// Get assebly by name

Assembly ass = Assembly.LoadFile(assemblyName);

 

// Get DebuggableAttribute info

DebuggableAttribute att = ass.GetCustomAttribute<DebuggableAttribute>();

 

ret = att.IsJITTrackingEnabled ? DebugMode.Debug : DebugMode.Release;

你可能感兴趣的:(debug)