Open jbaehr opened 4 years ago
Had the same problem and found a different workaround:
Add nuget System.IO.FileSystem.Primitives
to paket.dependencies and add the following to the paket.references files:
System.IO.FileSystem.Primitives
exclude System.IO.FileSystem.Primitives.dll
Manually add the reference to the projects:
<Reference Include="System.IO.FileSystem.Primitives" />
@romerod Thanks, this workaround for https://github.com/dotnet/runtime/issues/31298 is indeed much better as it does not make Paket crash ;-)
As I only build for net472 I do not even need a reference to System.IO.FileSystem.Primitives
, so just the two lines to the paket.references
of the affected project are sufficient.
Description
I have a project file which contains the following target:
When I now perform a
paket update
everything works fine up to the point where paket touches the project files. There it crashes.Repro steps
Place the above msbuild snipped inside an arbitrary C#-Project (below the import of "Microsoft.CSharp.targets")
run
paket update
(orpaket install
, this doesn't matter)Expected behavior
The update should run through. Paket should ignore the "Reference" items inside targets.
Actual behavior
Tested with paket 5.181.1 as well as 5.242.1.
Known workarounds
paket update