fluentassertions.analyzers icon indicating copy to clipboard operation
fluentassertions.analyzers copied to clipboard

IOException when installing NuGet-package via paket

Open patrickweegen opened this issue 5 years ago • 6 comments

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

patrickweegen avatar Sep 28 '18 15:09 patrickweegen

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

Meir017 avatar Sep 29 '18 17:09 Meir017

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

patrickweegen avatar Oct 07 '18 16:10 patrickweegen

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

Meir017 avatar Oct 07 '18 18:10 Meir017

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

patrickweegen avatar Oct 08 '18 07:10 patrickweegen

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

Meir017 avatar Jan 21 '19 05:01 Meir017

I have successfully installed the FakeItEasy.Analyzer.Csharp.

patrickweegen avatar Jan 21 '19 14:01 patrickweegen