Skip to content
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

Generate API on STDOUT when single target framework given #181

Merged
merged 3 commits into from
Jan 31, 2020

Conversation

danielmarbach
Copy link
Member

This PR addresses #173.
Replaces #180

Notable Changes

The worker project's Program.Main takes two parameters only: the source assembly path and the output API file path. If the latter is - then the API is generated to standard output. It also logs unhandled exceptions to standard error and sets an exit code on success or failure. It is no longer the responsibility of the worker project to do any file operations like deleting and moving. This is done by PublicApiGenerator.

If dotnet run times out (after 10 seconds, which seems short to be honest) then an exception is thrown. Previously, PublicApiGenerator continue silently.

@danielmarbach danielmarbach changed the title Api on stdout Generate API on STDOUT when single target framework given Jan 31, 2020
@danielmarbach danielmarbach modified the milestones: 11.0.0, 10.1.0 Jan 31, 2020
@danielmarbach danielmarbach added the enhancement New feature or request label Jan 31, 2020
@danielmarbach danielmarbach merged commit b29bfcb into master Jan 31, 2020
@danielmarbach danielmarbach deleted the api-on-stdout branch January 31, 2020 11:45
@sungam3r
Copy link
Member

sungam3r commented Feb 1, 2020

If dotnet run times out (after 10 seconds, which seems short to be honest) then an exception is thrown.

Just one note. I have one project (assembly) for which public API is generated in more than 50 seconds.

@danielmarbach
Copy link
Member Author

danielmarbach commented Feb 1, 2020 via email

@danielmarbach
Copy link
Member Author

@sungam3r what do you think about #185 ?

@sungam3r
Copy link
Member

sungam3r commented Feb 3, 2020

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants