-
Notifications
You must be signed in to change notification settings - Fork 70
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
Package id as assembly name #404
base: main
Are you sure you want to change the base?
Conversation
@michael-hawker Looks like the issue goes away if you use |
@Arlodotexe was just thinking, is this an internal helper from another assembly or something? Did we miss an 'InternalsVisibleTo' somewhere with this change? |
This is an internal helper, though I'm not sure where the helper is coming from. We need to find that before we can continue. |
It looks from a search, that the helper is here (or in this file):
And shared with the animation package here: Windows/components/Extensions/src/CommunityToolkit.WinUI.Extensions.csproj Lines 32 to 35 in 967d6c4
According to the docs on |
Oddly looks like the same messages still, hmmm... |
I've been trying to pinpoint why these errors are still showing. Local repro setup Unfortunately, I've been unable to reproduce this error message locally building Wasm. I've tried variations of our build commands: .\tooling\Build-Toolkit-Gallery.ps1 -Head wasm -MultiTargets wasm -Components All -Release -WinUIMajorVersion 2 and .\tooling\Build-Toolkit-Gallery.ps1 -Head wasm -MultiTargets wasm -Components All -Release -WinUIMajorVersion 3 as well as just invoking msbuild directly, adding what's present in our build.yml. What's happening? My hunch is that this is still a misconfiguration with our tooling, as we've confirmed this is declared in an internal helper and not a polyfill or platform API. Checking the binlogs, the fixes in 6b54da1 seem to be working as intended, so it's not that. Until we can repro the issue locally, what's happening here is a mystery. A note on build times The build time for local wasm builds has been climbing as well. It can take 15-25 minutes for a wasm release build to fully complete. However, the CI is erroring in only 2 minutes. I've been running it to completion for posterity, but for local builds we might be able to cancel the build and assume no repro after at least 5 minutes of build time. |
Possible solution: #441 |
This PR updates our tooling to use the PackageId as the AssemblyName for components.
It required changes in both Tooling and any components with a custom PackageId due to the single-import. Hopefully this will get cleaner when we have nested components (CommunityToolkit/Tooling-Windows-Submodule#187).
Note that any components using a custom PackageId will need to be updated to define their
PackageId
before importingToolkitComponent.SourceProject.props
, which requires importing thePackageIdVariant
prop fromMultiTarget\WinUI.TargetVersion.props
first.Prerequisite PR CommunityToolkit/Tooling-Windows-Submodule#188