当我打开我的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/