14
votes

When I Open my PackageManagerConsole. I have the problem

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

What is and as to solve this problem?

1

1 Answers

10
votes

Update to DotNetCompilerPlatform 1.0.1 here

And also make sure you run nuget 3.3 (it comes with update one of visual studio 2015, or you can go to the Tools-Extensions and Updates)