marcussacana / DirectPackageInstaller

Send Direct PKG URLs to your PS4
GNU General Public License v3.0
220 stars 23 forks source link

Doesn't build from Linux #20

Closed heph2 closed 2 years ago

heph2 commented 2 years ago

I'm trying to build it from Linux (NixOs), and got those errors while running dotnet restore

The SDK is installed correctly

dotnet --list-sdks                                                                                                9:59 :(
6.0.100 [/nix/store/1yr9ih9yy8j5prxdx725ma3w3grg8p2f-dotnet-sdk-6.0.100/sdk]

But still got those errors:

/nix/store/1yr9ih9yy8j5prxdx725ma3w3grg8p2f-dotnet-sdk-6.0.100/sdk/6.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To build this project, the following workloads must be installed: android [/tmp/DirectPackageInstaller/DirectPackageInstaller/DirectPackageInstaller.Android/DirectPackageInstaller.Android.csproj]
/nix/store/1yr9ih9yy8j5prxdx725ma3w3grg8p2f-dotnet-sdk-6.0.100/sdk/6.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload install android [/tmp/DirectPackageInstaller/DirectPackageInstaller/DirectPackageInstaller.Android/DirectPackageInstaller.Android.csproj

P.S: Don't pay attention to strange paths like /nix/store/<hash>/... it's a nix thing

marcussacana commented 2 years ago

run dotnet workload install android as sudo

marcussacana commented 2 years ago

You solved the problem?