How do I build a native binary on .NET Core using the current preview?

前端 未结 1 1304
花落未央
花落未央 2021-02-18 23:32

Using the current .NET Core preview, how do I compile (Publish ?) a native binary for a console application. I am on Mac OS 10.11.

I did the following:

d         


        
1条回答
  •  我在风中等你
    2021-02-18 23:53

    According to an MS dev on the Slack channel, native compilation was removed/disabled in RC2 since it wasn't deemed ready yet.

    There does seem to be a little bit of interest in it, so I've been debating whether to try to get it running myself, from the CLI source.

    Otherwise, we'll just have to wait, but I agree, huge disappointment.

    EDIT: just for completeness, I should add that .NET Core and .NET Native are available for UWP / Windows Store apps, though obviously this is not cross-platform.

    EDIT #2: since this seems to continue to be getting attention, the new way that this is planned on being done is CoreRT, currently in active development.

    0 讨论(0)
提交回复
热议问题