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

how to emit only metadata? #5324

Closed
roterdam opened this issue Sep 18, 2015 · 4 comments
Closed

how to emit only metadata? #5324

roterdam opened this issue Sep 18, 2015 · 4 comments
Assignees
Labels
Area-Compilers Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request Resolution-Answered The question has been answered Resolution-Duplicate The described behavior is tracked in another issue

Comments

@roterdam
Copy link

Is it possible to emit only metadata? Will it be cheaper if somehow possible? In a scenario I have I only care about metadata and not really the code.

Is it even possible? By that I mean is type-checking the only pre requisite for metadata?

@bkoelman
Copy link
Contributor

I believe you can.

See this file for an example; just pass in " " (string with a single space) as source code, and it creates an assembly on disk for you.

@MrJul
Copy link
Contributor

MrJul commented Sep 18, 2015

I think you're looking for #2184, yet to be implemented.

@gafter gafter added Resolution-Duplicate The described behavior is tracked in another issue Concept-API This issue involves adding, removing, clarification, or modification of an API. Area-Compilers Feature Request labels Sep 20, 2015
@gafter gafter added this to the 1.2 milestone Sep 20, 2015
@gafter gafter closed this as completed Sep 20, 2015
@gafter gafter modified the milestones: 1.1, 1.2 Sep 20, 2015
@gafter gafter self-assigned this Sep 20, 2015
@gafter gafter reopened this Sep 20, 2015
@gafter
Copy link
Member

gafter commented Sep 20, 2015

There is an API to do this, but it is not possible from the command-line yet. More details to follow...

@jaredpar jaredpar modified the milestones: 2.0, 1.1 Sep 22, 2015
@gafter
Copy link
Member

gafter commented Oct 7, 2015

See

/// <summary>
/// True to emit an assembly excluding executable code such as method bodies.
/// </summary>
public bool EmitMetadataOnly { get; private set; }

Closing as answered (for the API) and dup of #2184 (for the command-line).

@gafter gafter closed this as completed Oct 7, 2015
@gafter gafter added the Resolution-Answered The question has been answered label Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request Resolution-Answered The question has been answered Resolution-Duplicate The described behavior is tracked in another issue
Projects
None yet
Development

No branches or pull requests

5 participants