VB.NET 调试错误:“当前项目设置指定将调试项目...”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39173645/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
VB.NET debug error: "The current project settings specify that the project will be debugged..."
提问by spinjector
It seems I've inadvertently converted a VB.NET 2012 project to the type "Publish Online". I was exploring the IDE and started the Publish Wizard, but I cancelled it without doing anything. The project does have command line arguments defined in the project properties, and the error seems related to that.
我似乎无意中将 VB.NET 2012 项目转换为“在线发布”类型。我正在探索 IDE 并启动了发布向导,但我什么也没做就取消了它。该项目确实在项目属性中定义了命令行参数,错误似乎与此有关。
How do I revert the project back to "normal mode" from "publish online"...?
如何将项目从“在线发布”恢复到“正常模式”...?
The error occurs whenever debugging is started (F5), as follows:
每次启动调试 (F5) 时都会发生错误,如下所示:
The current project settings specify that the project will be debugged with specific security permissions. In this mode, command line arguments will not be passed to the executable. Do you want to continue debugging anyway? Yes/No.
当前项目设置指定将使用特定安全权限调试项目。在这种模式下,命令行参数不会传递给可执行文件。是否仍要继续调试?是/否。
回答by spinjector
Go to the Project properties → Security, and then uncheck "Enable ClickOnce Security Settings". Now it debugs and runs again without the error.
转到项目属性 → 安全,然后取消选中“启用 ClickOnce 安全设置”。现在它可以调试并再次运行而没有错误。


