gpt4 book ai didi

c# - 从命令行传递参数时 Devenv 崩溃

转载 作者:太空宇宙 更新时间:2023-11-03 13:55:25 31 4
gpt4 key购买 nike

我正在命令行中使用以下命令

"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"  C:\testlocation\testsolution.sln /Rebuild "Debug" /project "testproject" /projectconfig "Debug" /out C:\test.sln.log

然而,此命令会使 devenv 崩溃。没有任何内容写入 test.sln.log 文件。有人可以指出可能是什么情况吗?

[更新 1]

崩溃图像是 here .如果我单击查看问题详细信息,这就是我得到的信息

Problem signature: Problem Event Name: APPCRASH Application Name: devenv.exe Application Version: 10.0.30319.1 Application Timestamp: 4ba1fab3 Fault Module Name: msenv.dll Fault Module Version: 10.0.30319.1 Fault Module Timestamp: 4ba1fd94 Exception Code: c0000005 Exception Offset: 0030df30 OS Version: 6.0.6001.2.1.0.256.1 Locale ID: 1033 Additional information about the problem: LCID: 1033 Read our privacy statement: http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409

[更新 2]从解决方案文件中发现是这样配置的

  Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64

所以如果我只为调试(没有平台)构建它,devenv 是否应该像我一样崩溃?

谢谢

最佳答案

我遇到了同样的问题。看起来/projectconfig 需要“Debug|Win32”,所以配置的名称​​和是一个平台,用竖线分隔。

关于c# - 从命令行传递参数时 Devenv 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12399092/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com