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

IOException when installing NuGet-package via paket #81

Open
patrickweegen opened this issue Sep 28, 2018 · 6 comments
Open

IOException when installing NuGet-package via paket #81

patrickweegen opened this issue Sep 28, 2018 · 6 comments

Comments

@patrickweegen
Copy link

Description

When installing the NuGet-package using paket, an IOException is thrown:

Paket failed with                                                                                                                                                       
-> Error during extraction of D:\projects\...\packages\FluentAssertions.Analyzers\fluentassertions.analyzers.0.11.4.nupkg.                               
                                                                                                                                                                        
    In rare cases a firewall might have blocked the download. Please look into the file and see if it contains text with further information.                           
-> IOException: Die Datei "D:\projects\...\packages\FluentAssertions.Analyzers\analyzers\dotnet\cs\FluentAssertions.Analyzers.dll" ist bereits vorhanden.

Expected behavior:

The package should be installed like using any other package manager

Actual behavior:

An IOException (see above) is thrown and the package cannot be installed.

Versions

  • Which version of Fluent Assertions Analyzers are you using? --> 0.11.4
  • Which .NET runtime and version are you targeting? --> .NET Core 2.1

Additional Information

When inspecting the pacakge I noticed that there are two files with the same name conatined in the same folder.
image

@Meir017
Copy link
Member

Meir017 commented Sep 29, 2018

does packet execute the tool/install.ps1 script and then fail?

@patrickweegen
Copy link
Author

As far as I can see when I run paket install --verbose the install.ps1 gets not executed.

Bit this looks correct after reading those Issues:
VS 2017 doesn't execute install.ps1 from packages if used as PackageReference
Come up with a strategy for packages that have install.ps1/uninstall.ps1

@Meir017
Copy link
Member

Meir017 commented Oct 7, 2018

looks like this error is out of the scope of this project

@patrickweegen
Copy link
Author

I don't think so, @Meir017
If the package gets created in a different way it would work.

@Meir017
Copy link
Member

Meir017 commented Jan 21, 2019

@patrickweegen, Do you have an example of an Analyzers nuget package that can be installed using packet?

@patrickweegen
Copy link
Author

I have successfully installed the FakeItEasy.Analyzer.Csharp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants