Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Add support for producing ecma compliant "exe" #2754

Closed
davidfowl opened this issue Sep 19, 2015 · 12 comments
Closed

Add support for producing ecma compliant "exe" #2754

davidfowl opened this issue Sep 19, 2015 · 12 comments

Comments

@davidfowl
Copy link
Member

This will allow us to use dnx to produce the host as well.

https://github.com/aspnet/dnx/blob/dev/src/Microsoft.Dnx.Host.Mono/EntryPoint.cs

@davidfowl davidfowl added this to the 1.0.0-beta8 milestone Sep 20, 2015
@davidfowl davidfowl self-assigned this Sep 20, 2015
davidfowl added a commit that referenced this issue Sep 20, 2015
- Exe in this sense doesn't make the output file
an exe, it's about being able to create things that
have an ECMA compliant entrypoint. This will allow us
to use dnu to build the mono host.

#2754
davidfowl added a commit that referenced this issue Sep 20, 2015
- Exe in this sense doesn't make the output file
an exe, it's about being able to create things that
have an ECMA compliant entrypoint. This will allow us
to use dnu to build the mono host.

#2754
@akoeplinger
Copy link
Contributor

I presume this fixes #1997 as well?

@borgdylan
Copy link

With this option, a compiler will still have to use the ".dll" extension when ordered to spit out files to disk?

@davidfowl
Copy link
Member Author

@akoeplinger Hah, didn't even see that.

@davidfowl
Copy link
Member Author

@bojanrajkovic You can do what you want to really. We're not changing the .dll extension.

@davidfowl
Copy link
Member Author

Makes me wonder if we should call it emitEntryPoint so we don't confuse people when the output isn't an exe.

davidfowl added a commit that referenced this issue Sep 21, 2015
- It will remove the confusion about not actually outputting a .exe

#2754
@davidfowl
Copy link
Member Author

Done, the compiler option is emitEntryPoint

@akoeplinger
Copy link
Contributor

Great 👏

@bojanrajkovic
Copy link

@davidfowl Heh, I think you meant @borgdylan. Was wondering what I'd gotten myself into this time.

@davidfowl
Copy link
Member Author

Oops! 😀

@borgdylan
Copy link

@davidfowl I thought the answer was not meant for me. Thanks for clearing this. Now I can implement the right behaviour in my provider.

@xanather
Copy link

Will it ever be possible for DNX to produce a native binary for a target platform (replaces dnx.exe) as a static app-specific bootstrapper (would contain managed .dll program nearby or within it, or could be completely native if NGEN'd)? I think that would be pretty cool.

@borgdylan
Copy link

I found it easy to implement this for my own language support. Would this have any application apart from writing DNX hosts or command line tools to have no dependencies that are external to the BCL?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants