fluentassertions / fluentassertions.analyzers

Analyzers based on the FluentAssertions best practices docs
https://www.fluentassertions.com/tips
MIT License
135 stars 21 forks source link

IOException when installing NuGet-package via paket #81

Open patrickweegen opened 5 years ago

patrickweegen commented 5 years ago

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

Additional Information

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

Meir017 commented 5 years ago

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

patrickweegen commented 5 years ago

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 commented 5 years ago

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

patrickweegen commented 5 years ago

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

Meir017 commented 5 years ago

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

patrickweegen commented 5 years ago

I have successfully installed the FakeItEasy.Analyzer.Csharp.