-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[browser] Library mode without workload #122607
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
base: main
Are you sure you want to change the base?
Conversation
|
@copilot This test variant |
This comment was marked as resolved.
This comment was marked as resolved.
) # Description The `LibraryMode` test variant with `useWasmSdk: False, isPublish: True` is expected to fail, but the test was asserting success for all variants. Updated test to set `ExpectSuccess: false` when publishing without WASM SDK, verifying the operation exits with code 1 as expected. ```csharp // Publishing without WASM SDK is expected to fail bool expectSuccess = useWasmSdk || !isPublish; if (isPublish) PublishProject(info, config, new PublishOptions(AssertAppBundle: useWasmSdk, ExpectSuccess: expectSuccess)); else BuildProject(info, config, new BuildOptions(AssertAppBundle: useWasmSdk, ExpectSuccess: expectSuccess)); ``` # Customer Impact No customer impact - test-only change. # Regression No. Test was incomplete, not validating the expected failure scenario. # Testing Test compiles successfully. The updated test will properly validate all four variants: - Build without SDK: succeeds - Build with SDK: succeeds - Publish with SDK: succeeds - Publish without SDK: **fails** (now correctly validated) # Risk Minimal - test-only change with no production code impact. <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/dotnet/runtime/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: maraf <10020471+maraf@users.noreply.github.com>
|
The problem is when a library has |
Building
OutputType=libraryas WebAssembly application doesn't need a workload to be installed.This PR moves the target that configures ILLink from workload to Wasm SDK.