如何解决MonoDevelop C# 上的“错误 MSB4186:无效的静态方法调用语法”
当我尝试做一个项目时,我得到:
Getting restore information for project /home/user/Projects/myApp/myApp/myApp.csproj
/usr/share/dotnet/sdk/5.0.203/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(54,5) : error MSB4186: Invalid static method invocation syntax: "[MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')". Method '[MSBuild]::GetTargetFrameworkIdentifier' not found. The invocation of the static method must be in the form: $([FullTypeName]::Method()),for example,$([System.IO.Path]::Combine(`a`,`b`)). Check that all parameters are defined,of the correct type,and specified in the proper order.
Unable to create package spec for project. '/home/user/Projects/myApp/myApp/myApp.csproj'
当我尝试编译时,我得到:
Error: NuGet packages need to be restored before compiling. The NuGet MSBuild targets,which are required for build,are missing. NuGet MSBuild targets are generated when restoring NuGet packages. (myApp)
我该如何编译它?或者我需要为这次跑步做什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。