【发布时间】:2018-04-11 20:14:37
【问题描述】:
当使用 Mono 框架 5.10.0.16(无论 IDE:VS for Mac、JetBrains Rider 和 MonoDevelop)时,都会出现同样的错误,我无法理解:
Microsoft.VisualBasic.Core.targets(73, 5): [MSB3883] Unexpected exception:
Microsoft.VisualBasic.Core.targets(73, 5): [null] System.ComponentModel.Win32Exception (0x80004005): ApplicationName='vbnc.exe', CommandLine=' /noconfig @"/var/folders/sj/sblgn2q93b1084nm213419f80000gn/T/tmp54fb2d36c21545118516981a1817b134.rsp"', CurrentDirectory='', Native error= Cannot find the specified file
at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <f8bb3922e51744d9ace1aa6aedc374ea>:0
at System.Diagnostics.Process.Start () [0x0003a] in <f8bb3922e51744d9ace1aa6aedc374ea>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at Microsoft.Build.Utilities.ToolTask.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x000c9] in <0027e94ddd2948b0b937f5e2d51fcfe1>:0
at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool (System.String pathToTool, System.String responseFileCommands, System.String commandLineCommands) [0x00066] in <896b154c97654cea80889fd96e18abdc>:0
我尝试安装不同的版本,错误仍然存在,我不知道该怎么做,但我注意到vnbc.exe
我使用的是 MacOSX 版本 10.13.4
【问题讨论】:
-
vbnc.exe位于{MonoFrameworkLocation}/lib/mono/4.5/而不是Commands目录中,因此不在任何默认路径中。您可以尝试符号链接到/usr/local/bin。 -
@SushiHangover 我不熟悉这个概念?请帮忙
-
你可能会等到 5.12 登陆,mono-project.com/docs/about-mono/releases/5.12.0 Mono 上的 Visual Basic 是最低优先级(在 C# 和 F# 之后),所以此时你最好切换到 Windows 和 Visual Studio。
标签: vb.net mono jetbrains-ide visual-studio-mac rider