错误PackageManager控制台

Ren*_*los 10 c# asp.net-mvc powershell visual-studio

当我打开我的PackageManagerConsole.我有问题

Join-Path:无法将'System.Object []'转换为参数'ChildPath'所需的'System.String'类型.不支持指定的方法.在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:无法将参数绑定到参数'Path',因为它为null.在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

什么是解决这个问题?

par*_*ter 8

点击此处更新到DotNetCompilerPlatform 1.0.1

并且还要确保你运行nuget 3.3(它附带了visual studio 2015的更新版,或者你可以使用工具扩展和更新)