Visual Studio 启动修复命令

今天VS启动不了了,连命令行的 devenv.exe /? 都执行不了,看不到帮助命令了,记性不好,以前看过但没记住呀,还好我装了两个不同版本的VS, 另一个VS的帮助命令还是可以看到的。虽然修复了,还是把帮助命令备忘一下,下次就不会措手不及了,有用的人需要也可以借鉴一下,最有可能出现问题的是插件引起的问题,安全模式最有用,几乎都可以启动:

Use:
devenv  [solutionfile | projectfile | anyfile.ext]  [switches]

The first argument for devenv is usually a solution file or project file.
You can also use any other file as the first argument if you want to have the
file open automatically in an editor. When you enter a project file, the IDE
looks for an .sln file with the same base name as the project file in the
parent directory for the project file. If no such .sln file exists, then the
IDE looks for a single .sln file that references the project. If no such single
.sln file exists, then the IDE creates an unsaved solution with a default .sln
file name that has the same base name as the project file.

Command line builds:
devenv solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [ /projectconfig name ] ]
Available command line switches:

/Build    Builds the solution or project with the specified solution
    configuration. For example "Debug". If multiple platforms
    are possible, the configuration name must be enclosed in quotes
    and contain platform name. For example: "Debug|Win32".
/Clean    Deletes build outputs.
/Command    Starts the IDE and executes the command.
/Deploy    Builds and then deploys the specified build configuration.
/Edit    Opens the specified files in a running instance of this
    application. If there are no running instances, it will
    start a new instance with a simplified window layout.
/LCID    Sets the default language in the IDE for the UI.
/Log    Logs IDE activity to the specified file for troubleshooting.
/NoVSIP    Disables the VSIP developer‘s license key for VSIP testing.
/Out    Appends the build log to a specified file.
/Project    Specifies the project to build, clean, or deploy.
    Must be used with /Build, /Rebuild, /Clean, or /Deploy.
/ProjectConfig    Overrides the project configuration specified in the solution
    configuration. For example "Debug". If multiple platforms are
    possible, the configuration name must be enclosed in quotes
    and contain platform name. For example: "Debug|Win32".
    Must be used with /Project.
/Rebuild    Cleans and then builds the solution or project with the
    specified configuration.
/ResetAddin    Removes commands and command UI associated with the specified Add-in.
/ResetSettings    Restores the IDE‘s default settings, optionally resets to
    the specified VSSettings file.
/ResetSkipPkgs    Clears all SkipLoading tags added to VSPackages.
/Run    Compiles and runs the specified solution.
/RunExit    Compiles and runs the specified solution then closes the IDE.
/SafeMode    Launches the IDE in safe mode loading minimal windows.
/Upgrade    Upgrades the project or the solution and all projects in it.
    A backup of these files will be created as appropriate.  Please
    see Help on ‘Visual Studio Conversion Wizard‘ for more
    information on the backup process.

Product-specific switches:

/componentsDiff Compares two component folders. Requires three arguments:
                OptionalTfsServerCollectionUri SourceVersionedServerFolderPath
                TargetVersionedServerFolderPath
                If OptionalTfsServerCollectionUri is not provided, then an
                attempt is made to use the current TFS project collection.

/debugexe    Open the specified executable to be debugged. The remainder of
    the command line is passed to this executable as its arguments.
/diff    Compares two files.  Takes four parameters:
    SourceFile, TargetFile, SourceDisplayName(optional),
    TargetDisplayName(optional)

/openProjects   Opens versioned project. Requires three arguments:
                OptionalTfsServerCollectionUri VersionedProjectServerItemPath
                OptionalSolutionServerItemPath
                If OptionalTfsServerCollectionUri is not provided, then an
                attempt is made to use the current TFS project collection.
/TfsLink    Opens Team Explorer and launches a viewer for the
    provided artifact URI if one is registered.
    /useenv    Use PATH, INCLUDE, LIBPATH, and LIB environment variables
    instead of IDE paths for VC++ builds.

To attach the debugger from the command line, use:
    VsJITDebugger.exe -p <pid>
时间: 2024-08-08 07:25:08

Visual Studio 启动修复命令的相关文章

禁止Visual Studio启动时自动连接TFS服务器

在默认设置情况下,Visual Studio启动时,会自动连接上次打开过的TFS服务器.这种设计能够提高开发人员的工作效率,避免每次手动连接TFS服务器. 但是在某些情景中,也会给人造成不必要的麻烦,例如开发人员的计算机不能连接到TFS服务器,而VS则去自动连接,造成VS卡机. 开发人员可以利用下面的设置禁止VS自动连接TFS: 1. 在安装了VS的计算机上使用管理员身份打开注册表Regedit.exe 2. 导航的Visual Studio安装的目录,例如我的版本是VS 2015,注册表路径

解决:Visual Studio 启动就报错退出

Please open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE and run these commands: 1.devenv.exe /safemode 2.devenv.exe /resetskippkgs 3.devenv.exe /installvstemplates 4.devenv.exe /resetse

脱离 Visual Studio 启动 VS 所支持的各种模拟器(WindowsPhone Emulator &amp; Hololens Emulator)

WindowsPhone 和 Hololens 模拟器都是依赖 Hyper-V 技术而搭建的,通常情况下只有通过 Visual Studio 部署对应项目才能启动模拟器. 但直接通过 Windows 自带的 Hyper-V 管理器来启动这些虚拟机却由于缺少相对应的交互式硬件,只能显示主界面而不能交互操作 相比在 Visual Studio 中调用模拟器时,通过 Hyper-V 启动的模拟器少了一个 "壳" 而这个 "壳" 就是用来交互的核心 下面就通过一个小工具获取

Visual Studio 下nuget命令的使用

从Visual Studio 2012版本开始默认集成了Nuget扩展,在Visual Studio 2010或以下的版本需要单独安装,安装方法如下: 1. "工具"→"扩展和更新...",弹出扩展管理面板 2. 左侧选择"联机",右侧搜索框输入"nuget",搜索可以点击安装,安装完成可能要重新启动Visual Studio 由于我这里使用的是Visual Studio 2015,因此跳过安装,这里主要是nuget命令使用的

Visual Studio 启动加速

Who is locking my SQL database?|Deploy a database project with TFS Build Visual Studio 2012 running slow 1 Comment Three months in and my Visual Studio 2012 is running slow, I'll even go as far as saying it is freezing up some times, so I loaded up S

Visual studio code快捷键-命令

// 通过将键绑定放入键绑定文件中来覆盖键绑定. [ { "key": "shift+escape", "command": "closeReferenceSearchEditor", "when": "inReferenceSearchEditor && !config.editor.stablePeek" }, { "key": "esc

IDE Eclipse / Visual Studio / CodeBlocks 调试命令 step into / step over / step return 功能

step into:单步调试,就像它的名字 into 一样,遇到函数 / 方法会跳入函数内部执行.调试时如果不是想要了解函数内部的细节慎用这个功能. step over:这个也是单步调试,遇到函数 / 方法 不会进入该函数内部执行.可以用于了解程序的大概执行思路. step return: 当你使用 step into 不小心进入了不想进入的函数 / 方法内部,可以用 step return 来执行完这个函数剩下的所有部分并返回.

visual studio 中添加命令行参数

argc argv 原文地址:https://www.cnblogs.com/xpylovely/p/10981441.html

Visual Studio 命令提示

MSDN中介绍: ①Visual Studio 开发人员命令提示会自动设置环境变量,这些变量使你能够轻松使用 .NET Framework 工具.②开发人员命令提示将与 Visual Studio 一起安装. 从Visual Studio 2010 开始,你可看到多个命令提示,具体取决于你安装的 Visual Studio 和任何其他 SDK 的版本.例如,Visual Studio 的 64 位版本同时提供 32 位和 64 位命令提示.(大多数工具的 32 位和 64 位版本都相同:但少数工