Skip to content

Conversation

@radical
Copy link
Member

@radical radical commented Feb 8, 2024

WorkloadBuildTasks project uses source generated regex, which requires
the corresponding analyzer to be used. But for net8.0, in source build
the prebuilt package does not have the analyzers which causes the build
to fail like:

/__w/1/s/artifacts/sb/src/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs(61,38): error CS8795: Partial method 'InstallWorkloadFromArtifacts.bandVersionRegex()' must have an implementation part because it has accessibility modifiers. [/__w/1/s/artifacts/sb/src/src/tasks/WorkloadBuildTasks/WorkloadBuildTasks.csproj::TargetFramework=net8.0]

Since the net8.0 build for the task is needed only for the internal
nuget being produced, we can skip the net8.0 build for source builds.

Also, build WorkloadTest.Internal nuget only when building wasm.

Fixes #98130 .

@radical radical added the arch-wasm WebAssembly architecture label Feb 8, 2024
@ghost
Copy link

ghost commented Feb 8, 2024

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

This avoids trying to build the target for unrelated linux/sourcebuild
jobs.

/__w/1/s/artifacts/sb/src/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs(61,38): error CS8795: Partial method 'InstallWorkloadFromArtifacts.bandVersionRegex()' must have an implementation part because it has accessibility modifiers. [/__w/1/s/artifacts/sb/src/src/tasks/WorkloadBuildTasks/WorkloadBuildTasks.csproj::TargetFramework=net8.0]

Author: radical
Assignees: -
Labels:

arch-wasm

Milestone: -

@ghost ghost added the area-Build-mono label Feb 8, 2024
@ghost ghost assigned radical Feb 8, 2024
@radical
Copy link
Member Author

radical commented Feb 8, 2024

Started a build on the internal pipeline to confirm the fix.

`WorkloadBuildTasks` project uses source generated regex, which requires
the corresponding analyzer to be used. But for net8.0, in source build
the prebuilt package does not have the analyzers which causes the build
to fail like:

`/__w/1/s/artifacts/sb/src/src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs(61,38): error CS8795: Partial method 'InstallWorkloadFromArtifacts.bandVersionRegex()' must have an implementation part because it has accessibility modifiers. [/__w/1/s/artifacts/sb/src/src/tasks/WorkloadBuildTasks/WorkloadBuildTasks.csproj::TargetFramework=net8.0]`

Since the net8.0 build for the task is needed only for the internal
nuget being produced, we can skip the net8.0 build for source builds.

Also, build WorkloadTest.Internal nuget only when building wasm
@radical radical changed the title Build WorkloadTest.Internal nuget only when building wasm WorkloadBuildTasks: fix sourcebuild Feb 8, 2024
@radical radical marked this pull request as ready for review February 8, 2024 01:23
@radical radical requested a review from marek-safar as a code owner February 8, 2024 01:23
@radical radical requested a review from lewing February 8, 2024 02:05
@radical
Copy link
Member Author

radical commented Feb 8, 2024

Copy link
Member

@ilonatommy ilonatommy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the definition of internal build vs. source build?

@radical
Copy link
Member Author

radical commented Feb 8, 2024

What is the definition of internal build vs. source build?

By "internal build" I meant build on an internal pipeline. And sourcebuild is a special build done completely from source for dotnet.

@radical radical merged commit edf4ae8 into dotnet:main Feb 8, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Build-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runtime-official build broken for linux/sourcebuild

3 participants