代码拉取完成,页面将自动刷新
using System;
using System.Diagnostics;
using System.Reflection;
using System.IO;
namespace Vs71Win7x64PdbLockPatch
{
/// <summary>
/// Summary description for UnlockFile
/// </summary>
public class UnlockFiles
{
public static void UnlockDevenvPdb()
{
Assembly assembly_exe = Assembly.GetExecutingAssembly();
DirectoryInfo assembly_path_info = new DirectoryInfo(assembly_exe.Location);
DirectoryInfo assembly_dir_info = assembly_path_info.Parent;
string hoho_pdb_unlocker_path = Path.Combine(assembly_dir_info.FullName, "HohoPdbUnlocker.exe");
Process process = Process.GetCurrentProcess();
Process unlock_process = new Process();
unlock_process.StartInfo.UseShellExecute = false;
unlock_process.StartInfo.RedirectStandardOutput = true;
unlock_process.StartInfo.FileName = hoho_pdb_unlocker_path;
unlock_process.StartInfo.CreateNoWindow = true;
unlock_process.StartInfo.Arguments = string.Format("{0}", process.Id);
unlock_process.Start();
unlock_process.WaitForExit();
string output = unlock_process.StandardOutput.ReadToEnd();
}
public static void UnlockDevenvPdb(EnvDTE.OutputWindowPane output_window_pane)
{
Assembly assembly_exe = Assembly.GetExecutingAssembly();
DirectoryInfo assembly_path_info = new DirectoryInfo(assembly_exe.Location);
DirectoryInfo assembly_dir_info = assembly_path_info.Parent;
string hoho_pdb_unlocker_path = Path.Combine(assembly_dir_info.FullName, "HohoPdbUnlocker.exe");
Process process = Process.GetCurrentProcess();
Process unlock_process = new Process();
unlock_process.StartInfo.UseShellExecute = false;
unlock_process.StartInfo.RedirectStandardOutput = true;
unlock_process.StartInfo.FileName = hoho_pdb_unlocker_path;
unlock_process.StartInfo.CreateNoWindow = true;
unlock_process.StartInfo.Arguments = string.Format("{0}", process.Id);
unlock_process.Start();
unlock_process.WaitForExit();
string output = unlock_process.StandardOutput.ReadToEnd();
output_window_pane.OutputString(output);
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。