philosowaffle/peloton-to-garmin

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

Opened this issue · 5 comments

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):

  • OS: Linux
  • Method: Source
  • Version: commit da5bc2c

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

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

dotnet workload install maui-tizen

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.

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.

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