dsyme / guido-learns-fsharp

101 stars 20 forks source link

dotnet paket restore fails MSB3073 #5

Open surfmuggle opened 1 year ago

surfmuggle commented 1 year ago

After following these steps

  1. Clone: git clone https://github.com/dsyme/guido-learns-fsharp and cd guido-learns-fsharp
  2. Install dotnet "local tools" with: dotnet tool restore
  3. Build and run in watch mode use the following command: dotnet run

I did run into this issue

image

the output below is translated by me and may not be the exact error message.

PS C:\dev\fsharp\guido-learns-fsharp> dotnet run
C:\dev\fsharp\guido-learns-fsharp\.paket\Paket.Restore.targets(171,5): error MSB3073: 
         Command "dotnet paket restore" returned code 1. 
         [C:\dev\fsharp\guido-learns-fsharp\Build.fsproj]
The build failed. Fix the build errors and run again.

The line 171 contains this

<Exec Command='$(PaketCommand) 
                               restore' Condition=" '$(PaketRestoreRequired)' == 'true' 
                               AND '$(PaketDisableGlobalRestore)' != 'true' " 
ContinueOnError="false" />

Any ideas?

daveyostcom commented 1 year ago

Having the same problem.