Skip to content

Use System.Reflection.Metadata to generate BootConfig #17156

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

Merged
merged 3 commits into from
Nov 19, 2019

Conversation

pranavkm
Copy link
Contributor

  • Remove reference to Mono.Cecil
  • Remove support for auto embedded css \ js

@Pilchie Pilchie added the area-blazor Includes: Blazor, Razor Components label Nov 18, 2019

return referencedAssemblyCandidate;
return Bcl.FirstOrDefault(c => c.Name == assemblyName) ??
Dependencies.FirstOrDefault(c => c.Name == assemblyName);
Copy link
Member

Choose a reason for hiding this comment

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

Do you think the O(N^2)-ness of this could become an issue if there's a really large number of dependencies? Is it work making Bcl and Dependencies into a dictionary mapping name to AssemblyEntry?

I'm not insisting this should be done; just asking what you think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could turn these in to dictionary lookups. We're generally optimizing for CPU in these processes \ tasks, not memory, so allocating an additional pair of dictionaries should be fine. I'll make the change in an update.

Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

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

Excellent!

* Remove reference to Mono.Cecil
* Remove support for auto embedded css \ js
* Rename some contract types
* Remove blazor.webassembly.js
@pranavkm pranavkm force-pushed the prkrishn/more-cleanup branch from f8dd670 to 632f8f3 Compare November 19, 2019 01:03
@pranavkm pranavkm requested review from ryanbrandenburg and a team as code owners November 19, 2019 01:03
@pranavkm pranavkm changed the base branch from prkrishn/entry-point to blazor-wasm November 19, 2019 01:05
@@ -1,2 +1,3 @@
node_modules/
dist/Debug/
dist/Release/blazor.webassembly.js
Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK this isn't part of the shared framework \ source build, so it doesn't need to be checked in. Correct me if I'm wrong.

@@ -623,28 +623,20 @@
Inputs="$(BlazorBuildBootJsonInputsCache);@(_BlazorDependencyInput)"
Outputs="$(BlazorBootJsonIntermediateOutputPath)">
<ItemGroup>
<_UnlinkedAppReferencesPaths Include="@(_BlazorDependencyInput)" />
<_AppReferences Include="@(BlazorItemOutput->WithMetadataValue('Type','Assembly')->WithMetadataValue('PrimaryOutput','')->'%(FileName)%(Extension)')" />
<_AppReferences Include="@(BlazorItemOutput->WithMetadataValue('Type','Assembly')->'%(FileName)%(Extension)')" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These names get better in the next PR when it turns in to a Task. I'm leaving this as-is for now.

@ryanbrandenburg ryanbrandenburg removed their request for review November 19, 2019 18:05
@pranavkm pranavkm merged commit 5bdf75f into blazor-wasm Nov 19, 2019
@dougbu dougbu deleted the prkrishn/more-cleanup branch May 18, 2020 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants