gpt4 book ai didi

c# - Cake-Experimental Switch 编译错误

转载 作者:行者123 更新时间:2023-11-30 13:54:50 26 4
gpt4 key购买 nike

我正在尝试使用 Cake-Plist 插件,但收到一个错误消息,指出动态尚未在正在使用的 Roslyn 版本中实现。然后从别人的建议中我被告知尝试 -Experimental 开关。使用开关时,我在尝试编译构建脚本时收到以下错误。

Error: Microsoft.CodeAnalysis.Scripting.CompilationErrorException: (2,1): error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'
at Microsoft.CodeAnalysis.Scripting.Script.CompilationError(DiagnosticBag diagnostics)
at Microsoft.CodeAnalysis.Scripting.Script.GetExecutor(CancellationToken cancellationToken)
at Microsoft.CodeAnalysis.Scripting.Script.Run(Object globals)
at Microsoft.CodeAnalysis.Scripting.Script.Run(Object globals)
at Cake.Scripting.Roslyn.Nightly.DefaultRoslynNightlyScriptSession.Execute(Script script)
at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary`2 arguments)
at Cake.Commands.BuildCommand.Execute(CakeOptions options)
at Cake.CakeApplication.Run(CakeOptions options)
at Cake.Program.Main()

有谁知道是什么导致了这个错误?

最佳答案

需要将引用添加到 Microsoft.CSharp.dll。

#reference "Microsoft.CSharp.dll"

https://gitter.im/cake-build/cake?at=57add5a3364ad7fc5acdb660

关于c# - Cake-Experimental Switch 编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38920373/

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