philosowaffle / peloton-to-garmin

Convert workout data from Peloton into JSON/TCX/FIT files and automatically upload to Garmin Connect
https://philosowaffle.github.io/peloton-to-garmin/
GNU General Public License v3.0
278 stars 369 forks source link

/usr/lib64/dotnet/sdk/7.0.114/NuGet.targets(132,5): error : Invalid framework identifier ''. [/home/spikeh/bin/p2g/PelotonToGarmin.sln] #577

Open spikeh opened 10 months ago

spikeh commented 10 months ago

Describe the bug Cannot build on Linux from clean checkout, fails with error:

$ dotnet restore
  Determining projects to restore...
/usr/lib64/dotnet/sdk/7.0.114/NuGet.targets(132,5): error : Invalid framework identifier ''. [/home/spikeh/bin/p2g/PelotonToGarmin.sln]

To Reproduce Steps to reproduce the behavior:

  1. git clone
  2. dotnet restore

Expected behavior Should succeed

Installation (please complete the following information):

philosowaffle commented 10 months ago

Could you try using the below modified commands and see if it works?

> dotnet restore ./src/ConsoleClient/ConsoleClient.csproj
> dotnet build ./src/ConsoleClient/ConsoleClient.csproj
> dotnet run --project ./src/ConsoleClient/ConsoleClient.csproj
DadArcade commented 10 months ago

Worked for me, except I had to install maui-tizen first for some reason.

dotnet workload install maui-tizen

philosowaffle commented 10 months ago

hmmm that's surprising, I would only expect you to need that dependency if trying to build the desktop ClientUI project (which I believe will only work on Windows). For reference, the dockerfile doesn't need any additional dependencies beyond .net7 to build the console or web apps.

spikeh commented 9 months ago

Could you try using the below modified commands and see if it works?

> dotnet restore ./src/ConsoleClient/ConsoleClient.csproj
> dotnet build ./src/ConsoleClient/ConsoleClient.csproj
> dotnet run --project ./src/ConsoleClient/ConsoleClient.csproj

Thanks, this worked for me.

NateEverden commented 8 months ago

FYI - I'm having the same issue on macOS. I got it to work by using the suggested commands.