Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/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 this issue Dec 20, 2023 · 5 comments
Labels

Comments

@spikeh
Copy link

spikeh commented Dec 20, 2023

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
@spikeh spikeh added the bug label Dec 20, 2023
@philosowaffle
Copy link
Owner

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
Copy link

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

dotnet workload install maui-tizen

@philosowaffle
Copy link
Owner

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
Copy link
Author

spikeh commented Feb 1, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants