c# - 错误包管理器控制台

标签 c# asp.net-mvc visual-studio powershell

当我打开我的PackageManagerConsole时。我有问题

Join-Path : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'ChildPath'. Specified method is not supported. At C:\Users\renan.carlos\Source\Repos\CodingCraft\ExerciciosCodingCraft\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\tools\init.ps1:13 char:57 + ... rPackageDirectory = Join-Path $packageDirectory $compilerPackage.Name + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Join-Path], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.JoinPathCommand

Join-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\Users\renan.carlos\Source\Repos\CodingCraft\ExerciciosCodingCraft\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\tools\init.ps1:14 char:44 + ... erPackageToolsDirectory = Join-Path $compilerPackageDirectory 'tools' + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand

解决这个问题的方法是什么?

最佳答案

更新到 DotNetCompilerPlatform 1.0.1 here

还要确保您运行 nuget 3.3(它附带了 Visual Studio 2015 的更新之一,或者您可以转到“工具”-“扩展和更新”)

关于c# - 错误包管理器控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41901031/

相关文章:

c# - 为什么 ToolStripMenuItems 会发生这种情况?

c# - 绑定(bind)到附加属性

c# - 部分方法是否被认为是有害的?

c# - Visual Studio : cannot access resources from code

c# - 使用 Prism - WPF 关闭动态添加的选项卡项

c# - ActionResult 可以打开服务器上的特定文件夹吗?

javascript - 在表行 JQuery 中添加和删除类

c# - 访问站点时 Windows 登录提示

visual-studio - XNA 框架导入器

c - 指针与引用与常规按值传递 C++