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

dotnet build --native #2803

Closed
jeff-wu opened this Issue May 2, 2016 · 16 comments

Comments

Projects
None yet
@jeff-wu

jeff-wu commented May 2, 2016

Steps to reproduce

when i run the command dotnet build --native, i got the message

Specify --help for a list of available options and commands.
Unrecognized option '--native'

was the --native option removed?

dotnet --info output:

.NET Command Line Tools (1.0.0-rc2-002543)

Product Information:
 Version:     1.0.0-rc2-002543
 Commit Sha:  38d0c28a1e

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64
@717009629

This comment has been minimized.

Show comment
Hide comment
@717009629

717009629 May 2, 2016

1.0版本应该不会支持了,后续版本应该会加入。

717009629 commented May 2, 2016

1.0版本应该不会支持了,后续版本应该会加入。

@dasMulli

This comment has been minimized.

Show comment
Hide comment
@dasMulli

dasMulli May 2, 2016

Contributor

If you clone and build CoreRT, it will put a version of the CLI into Tools/dotnetcli that supports build --native.

Contributor

dasMulli commented May 2, 2016

If you clone and build CoreRT, it will put a version of the CLI into Tools/dotnetcli that supports build --native.

@gitchomik

This comment has been minimized.

Show comment
Hide comment

gitchomik commented May 2, 2016

@jeff-wu

This comment has been minimized.

Show comment
Hide comment
@jeff-wu

jeff-wu May 2, 2016

i has konwn it, thanks.

jeff-wu commented May 2, 2016

i has konwn it, thanks.

@brthor brthor added this to the Backlog milestone May 2, 2016

@brthor

This comment has been minimized.

Show comment
Hide comment
@brthor

brthor May 2, 2016

Contributor

native support has been removed from build for the current release.

Contributor

brthor commented May 2, 2016

native support has been removed from build for the current release.

@justinyoo

This comment has been minimized.

Show comment
Hide comment
@justinyoo

justinyoo May 16, 2016

@brthor Thanks for the clarification. Could you tell us a rough timeline when the --native option comes back?

justinyoo commented May 16, 2016

@brthor Thanks for the clarification. Could you tell us a rough timeline when the --native option comes back?

@maxfridbe

This comment has been minimized.

Show comment
Hide comment
@maxfridbe

maxfridbe Oct 14, 2016

I agree when do you think it will be back in? This being missing is the number one reason we are not jumping on the full build system.

maxfridbe commented Oct 14, 2016

I agree when do you think it will be back in? This being missing is the number one reason we are not jumping on the full build system.

@Genbox

This comment has been minimized.

Show comment
Hide comment
@Genbox

Genbox Oct 19, 2016

We are currently in the process of determining if .NET Native is viable in our situation. Is there a workaround for this issue? I tried building CoreRT from source as mentioned by @dasMulli, but it is also missing the native argument.

Genbox commented Oct 19, 2016

We are currently in the process of determining if .NET Native is viable in our situation. Is there a workaround for this issue? I tried building CoreRT from source as mentioned by @dasMulli, but it is also missing the native argument.

@dasMulli

This comment has been minimized.

Show comment
Hide comment
@dasMulli

dasMulli Oct 19, 2016

Contributor

@Genbox: The instructions for CoreRT habe been updated for use with CI / nightly -preview3 cli builds: https://github.com/dotnet/corert/blob/master/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md

Contributor

dasMulli commented Oct 19, 2016

@Genbox: The instructions for CoreRT habe been updated for use with CI / nightly -preview3 cli builds: https://github.com/dotnet/corert/blob/master/Documentation/how-to-build-and-run-ilcompiler-in-console-shell-prompt.md

@Genbox

This comment has been minimized.

Show comment
Hide comment
@Genbox

Genbox Oct 19, 2016

@dasMulli That is the documentation I was following. The part about "dotnet new --type MSBuild" threw an error about MSBuild not being supported. I used the dotnet.exe file generated by the build process and not the one from PATH, just to be sure.

Do you know if the daily builds can be downloaded from Travis? I clicked around a bit and it did not seem to have a download button.

Genbox commented Oct 19, 2016

@dasMulli That is the documentation I was following. The part about "dotnet new --type MSBuild" threw an error about MSBuild not being supported. I used the dotnet.exe file generated by the build process and not the one from PATH, just to be sure.

Do you know if the daily builds can be downloaded from Travis? I clicked around a bit and it did not seem to have a download button.

@dasMulli

This comment has been minimized.

Show comment
Hide comment
@dasMulli

dasMulli Oct 19, 2016

Contributor

@Genbox use the links in the README.md of the rel/1.0.0 branch to get new CI builds of the CLI. the --type msbuild has been dropped very recently because now all C# templates are msbuild-based and you can just use dotnet new.

Contributor

dasMulli commented Oct 19, 2016

@Genbox use the links in the README.md of the rel/1.0.0 branch to get new CI builds of the CLI. the --type msbuild has been dropped very recently because now all C# templates are msbuild-based and you can just use dotnet new.

@Genbox

This comment has been minimized.

Show comment
Hide comment
@Genbox

Genbox Oct 19, 2016

@dasMulli Oh, I see! Thanks, I'll try it again with the new CLI builds.

Genbox commented Oct 19, 2016

@dasMulli Oh, I see! Thanks, I'll try it again with the new CLI builds.

@shahid-pk

This comment has been minimized.

Show comment
Hide comment
@shahid-pk

shahid-pk Oct 20, 2016

Contributor

@Genbox dotnet native for anything other than UWP apps is not supported as of yet as far as i know.

Contributor

shahid-pk commented Oct 20, 2016

@Genbox dotnet native for anything other than UWP apps is not supported as of yet as far as i know.

@Genbox

This comment has been minimized.

Show comment
Hide comment
@Genbox

Genbox Oct 20, 2016

@dasMulli there are some unquoted path problems as well as issues with the commands. I'll try again on Monday and see if I can track down the issues.

@shahid-pk Yeah, that is the same thing the .NET Native team told me about 1½ year back when we mailed back and forth. However, "dotnet new", "dotnet restore" and finally "dotnet build --native" resulted in a native console application that ran without .NET on Windows 7, which is what I'm looking for.

Genbox commented Oct 20, 2016

@dasMulli there are some unquoted path problems as well as issues with the commands. I'll try again on Monday and see if I can track down the issues.

@shahid-pk Yeah, that is the same thing the .NET Native team told me about 1½ year back when we mailed back and forth. However, "dotnet new", "dotnet restore" and finally "dotnet build --native" resulted in a native console application that ran without .NET on Windows 7, which is what I'm looking for.

@sylnsr

This comment has been minimized.

Show comment
Hide comment
@sylnsr

sylnsr Oct 30, 2016

As long as Microsoft actively kills a feature for one platform that is supported in another, they are working counter to the idea of their purported claims of cross platform functionality. This is why I looked into dotnet, but ultimately decided it was not a good for genuine cross platform solution development.

sylnsr commented Oct 30, 2016

As long as Microsoft actively kills a feature for one platform that is supported in another, they are working counter to the idea of their purported claims of cross platform functionality. This is why I looked into dotnet, but ultimately decided it was not a good for genuine cross platform solution development.

@blackdwarf

This comment has been minimized.

Show comment
Hide comment
@blackdwarf

blackdwarf Jan 14, 2017

Contributor

As was specified in this thread, the --native option has been removed at one point during development of the CLI. You can find the CoreRT bits on https://github.com/dotnet/corert which should have all the info you need to start using it. Will close this issue. Thanks!

Contributor

blackdwarf commented Jan 14, 2017

As was specified in this thread, the --native option has been removed at one point during development of the CLI. You can find the CoreRT bits on https://github.com/dotnet/corert which should have all the info you need to start using it. Will close this issue. Thanks!

@blackdwarf blackdwarf closed this Jan 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment