4 Star 5 Fork 1

guapibai / Vs71Win7x64PdbLockPatch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
UnlockFiles.cs 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
guapibai 提交于 2015-05-04 10:05 . all~~
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);
}
}
}
C#
1
https://gitee.com/hohosoft/Vs71Win7x64PdbLockPatch.git
git@gitee.com:hohosoft/Vs71Win7x64PdbLockPatch.git
hohosoft
Vs71Win7x64PdbLockPatch
Vs71Win7x64PdbLockPatch
master

搜索帮助