Open
Description
Description
A simple .Net Core 2.2 console app fails to run when paket is added. The failure is:
Unhandled Exception:
Cannot print exception string because Exception.ToString() failed.
Repro steps
mkdir solution
andcd solution
.mkdir demo
andcd demo
.dotnet new console -lang F#
. At this moment if I rundotnet run
everything goes fine.cd ..\
to the solution directory andmkdir .paket
. Download and copypaket.bootstrap.exe
and rename it topaket.exe
as the official tutorial instructs.- Create
paket.dependencies
and add the following:
source https://api.nuget.org/v3/index.json
nuget log4net
cd demo
to the project directory and createpaket.references
with contentlog4net
. In factlog4net
is only referenced in the project but never ever used not even opened.cd ..
to the solution directory and run.paket\paket install
.cd demo
anddotnet restore
.dotnet run
and see the exception pops up.
Restarting from the very first step, create a new project with dotnet new console -lang F#
, dotnet add package log4net
, and dotnet run
, it runs with no problem and prints the "Hello world" message.
Environment
- Windows 10 64bit
dotnet --list-sdks: 2.2.104 [C:\Program Files\dotnet\sdk]
- When running
.paket\paket install
, it showsPaket version 5.198.0
Expected behavior
Prints "Hello world" message.
Actual behavior
Throw an exception.
Known workarounds
N/A
Metadata
Metadata
Assignees
Labels
No labels