Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path issue in init.ps1 (line 10) in Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.0.0 nuget package on VS2015 / .Net 4.6 #4352

Closed
todthomson opened this issue Aug 5, 2015 · 11 comments
Labels
Area-External Resolution-External The behavior lies outside the functionality covered by this repository

Comments

@todthomson
Copy link

Just wanted to loop you in on (what seems like) a bug / path issue in init.ps1 (line 10) in Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.0.0 nuget package on VS2015 / .Net 4.6 / NuGet Package Manager 3.1.1.0.

On opening the package manger console window I get the following error:

Copy-Item : Cannot find path 'C:\Development\GitHub\pd-tech-demo\backend\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\tools\lib\net45' because it does not exist.
At C:\Development\GitHub\pd-tech-demo\backend\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\tools\init.ps1:23 char:1
+ Copy-Item $libDirectory\* $binDirectory | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (C:\Development\...tools\lib\net45:String) [Copy-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

I changed line 10 of init.ps1 from:

$libDirectory = Join-Path $installPath 'lib\net45'

to:

$libDirectory = Join-Path $installPath '..\lib\net45'

which fixes the problem (only until you restore the package again and you get the broken version).

Original on Stack Overflow: http://stackoverflow.com/questions/31770339/nuget-package-manager-update-3-1-1-0-broken/31826795

@Pilchie
Copy link
Member

Pilchie commented Aug 5, 2015

This package is not owned by the Roslyn team, but the Web tools team. If you want to be able to track it, you should file a bug on http://connect.microsoft.com/. If you don't want to track, I'll be happy to file it internally for you.

@todthomson
Copy link
Author

If you don't want to track, I'll be happy to file it internally for you.

That would be great 👍 thanks.

@tkirill
Copy link

tkirill commented Aug 7, 2015

+1 encounter this issue today too.

@yishaigalatzer
Copy link

Tracking a potential issue in NuGet here - NuGet/Home#1125, and working directly with the package owner on dropping init.ps1

@DrLeh
Copy link

DrLeh commented Aug 20, 2015

+1 I also encountered this, cannot install this package.

@yishaigalatzer
Copy link

The issue is now fixed in nuget. This is not a Roslyn issue. Will be available in 3.2

@MaximeKoitsalu
Copy link

+1

@yishaigalatzer
Copy link

@maxkoi nuget 3.2 is available, please update your nuget extension

@todthomson
Copy link
Author

The issue is now fixed in nuget. This is not a Roslyn issue. Will be available in 3.2

If someone can confirm this is fixed then please close this issues as "fixed" :shipit:

@9gix
Copy link

9gix commented Oct 24, 2015

Upgrading to nuget 3.2 solve my problem. 👍

@jmarolf
Copy link
Contributor

jmarolf commented Oct 24, 2015

Closing as this is not Roslyn specific

@jmarolf jmarolf closed this as completed Oct 24, 2015
@jmarolf jmarolf added the Resolution-External The behavior lies outside the functionality covered by this repository label Oct 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-External Resolution-External The behavior lies outside the functionality covered by this repository
Projects
None yet
Development

No branches or pull requests

8 participants