Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

PEBuilder implementation - #5354

Merged
tmat merged 1 commit into
dotnet:masterfrom
tmat:PEBuilder
Jan 19, 2016
Merged

tmat merged 1 commit into
dotnet:masterfrom
tmat:PEBuilder

Conversation

@tmat

@tmat tmat commented Jan 12, 2016

Copy link
Copy Markdown
Member

An initial implementation taken from Roslyn (PR: dotnet/roslyn#7683)

The API is still very much in flux with known issues. Having it in System.Metadata.Reader beta build however allows partners to start building on top of it and provide feedback.

Usage sample (emitting "Hello world" .exe):
https://github.com/dotnet/roslyn/blob/1195fb186b67474edbc39baf40fdbcbaf667b892/src/Compilers/Core/CodeAnalysisTest/PEWriter/PEBuilderTests.cs

@tmat

tmat commented Jan 12, 2016

Copy link
Copy Markdown
Member Author

@nguerrera FYI

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The headers aren't right for corefx. I think these files should be relicensed to MIT. cc @richlander

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I guess I'll write a script to update them each time I sync between Roslyn and CoreFx.

@nguerrera

Copy link
Copy Markdown
Contributor

This is very cool! It's also huge so I will need considerably more time to review in detail. I only scanned so far.

I am conceptually OK merging early to unblock upstream work and feedback channel, but corefx leads should chime in: cc @joshfree, @weshaggard. I know we had broad agreement to approach this feature that way, but I want to make sure they're aware of the scope of this change.

Tests should be given high priority and I think it would be worth doing the API review ASAP (cc @terrajobst). Please file an issue to track the API review and follow-up.

@tmat

tmat commented Jan 13, 2016

Copy link
Copy Markdown
Member Author

Re Tests - yes, I'm definitely gonna move all relevant unit tests from Roslyn (and add more). I haven't done that yet since I need to keep the code in sync between Roslyn and CoreFx for now and doing so for tests as well is just more overhead. Once we pass the requirements for taking dependency on this new implementation in Roslyn master, we can finish the move and delete the code from Roslyn.

BTW, I run every change in this code thru Roslyn CI and everything has been passing so far. So this code is well covered (though indirectly).

@tmat
tmat force-pushed the PEBuilder branch 2 times, most recently from 67f6985 to 465e49d Compare January 15, 2016 19:05
@tmat

tmat commented Jan 19, 2016

Copy link
Copy Markdown
Member Author

OpenSUSE and Ubuntu failures are unrelated. Merging.
https://github.com/dotnet/corefx/issues/3748
https://github.com/dotnet/corefx/issues/5531.

tmat added a commit that referenced this pull request Jan 19, 2016
@tmat
tmat merged commit a433613 into dotnet:master Jan 19, 2016
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants