-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Handle satellite assemblies in the Blazor build targets #18207
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
Conversation
--> | ||
<ItemGroup> | ||
<!-- Assemblies from packages --> | ||
<_BlazorManagedRuntimeAssemby Include="@(RuntimeCopyLocalItems)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/cc @nguerrera in case you have suggestions on a better way of doing this.
|
||
var bootJsonPath = Path.Combine(buildOutputDirectory, "dist", "_framework", "blazor.boot.json"); | ||
Assert.FileContains(result, bootJsonPath, "\"Microsoft.CodeAnalysis.CSharp.dll\""); | ||
Assert.FileContains(result, bootJsonPath, "\"fr\\/Microsoft.CodeAnalysis.CSharp.resources.dll\""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Satellite assemblies get listed in the boot json. I verified that they get downloaded and loaded. But localization itself didn't seem to be working. At this point, I've only made sure that having satellite assemblies doesn't cause things to fail.
9643b72
to
80a6787
Compare
<UsingTask TaskName="GenerateTypeGranularityLinkingConfig" AssemblyFile="$(BlazorTasksPath)" /> | ||
<Target Name="_GenerateTypeGranularLinkerDescriptor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SteveSandersonMS this is now incremental:
My guess is that for BlazorCreateRootDescriptorFile
, the inputs doesn't need to be @(IntermediateAssembly)
- we don't need to recreate the file, if the contents of the file changes,only it's name which is almost never true, but I guess we can figure that out later.
Ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've taken a look and things seem reasonable.
I'm not an expert on this area, but I think the change is correct and an improvement to the current situation. I'm trusting the test covers and validates the scenario appropriately.
Fixes #17644
Fixes #17754