Skip to content

Issue building locally on Linux #10215

@jonathanpeppers

Description

@jonathanpeppers

Android framework version

net10.0-android (Preview)

Affected platform version

.NET 10

Description

We are seeing an issue such as:

/tmp/tapp$ ./dotnet-local.sh new android
The template "Android Application" was created successfully.

/tmp/tapp$ ./dotnet-local.sh build ./tapp.csproj -t:Install -c Release -bl:msbuild-Install.binlog -f net10.0-android -p:AppendRuntimeIdentifierToOutputPath=true -p:PublishTrimmed=true
  Determining projects to restore...
.../bin/Release/dotnet/sdk/10.0.100-preview.6.25304.106/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/tapp/tapp.csproj]
.../bin/Release/dotnet/sdk/10.0.100-preview.6.25304.106/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(38,5): error NETSDK1147: To install these workloads, run the following command: dotnet workload restore [/tmp/tapp/tapp.csproj]

This was introduced in:

Revert the changes in that commit to:

  • build-tools\create-packs\ConfigureLocalWorkload.targets

See if things work with that reverted and consider a different approach.

Steps to Reproduce

  1. ./dotnet-local.sh new android on Linux, with a local build
  2. ./dotnet-local.sh build

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

needs-triageIssues that need to be assigned.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions