• Building vs solution in command line


    call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
    
    msbuild "%1" /p:Configuration=Release
    
    pause

    解压到目录,然后运行.reg

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell]
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\buildDebug]
    @="Build(Debug)"
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\buildDebug\command]
    @="\"c:\\vsbuild_debug.bat\" \" %1 \""
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\bulildRelease]
    @="Build(Release)"
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\bulildRelease\command]
    @="\"c:\\vsbuild_release.bat\" \" %1 \""
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Open]
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Open\Command]
    @="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell]
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\buildDebug]
    @="Build(Debug)"
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\buildDebug\command]
    @="\"c:\\vsbuild_debug.bat\" \" %1 \""
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\bulildRelease]
    @="Build(Release)"
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\bulildRelease\command]
    @="\"c:\\vsbuild_release.bat\" \" %1 \""
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\Open]
    
    [HKEY_CLASSES_ROOT\VisualStudio.Launcher.csproj.10.0\Shell\Open\Command]
    @="\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\VSLauncher.exe\" \"%1\""
    call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
    
    msbuild "%1" /p:Configuration=Debug
    
    pause
  • 相关阅读:
    C#替换双引号
    Oracle 12c创建用户时出现“ORA-65096: invalid common user or role name”的错误
    Oracle 12c中文乱码,修改字符集的方法
    ORACLE 12C PDB 维护基础介绍
    spilt用法简介
    Log4net简介
    Log4net创建日志及简单扩展
    [转]ASP.NET MVC 入门11、使用AJAX
    对象池简单实现
    Android webview “location.replace” 不起作用
  • 原文地址:https://www.cnblogs.com/shenfengok/p/3109970.html
Copyright © 2020-2023  润新知