fluentassertions.analyzers
fluentassertions.analyzers copied to clipboard
IOException when installing NuGet-package via paket
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.
does packet execute the tool/install.ps1 script and then fail?
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
looks like this error is out of the scope of this project
I don't think so, @Meir017 If the package gets created in a different way it would work.
@patrickweegen, Do you have an example of an Analyzers nuget package that can be installed using packet?
I have successfully installed the FakeItEasy.Analyzer.Csharp.