-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add RunSample target to mono.proj #2393
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
Conversation
|
@EgorBo Can we add makefile targets in order to make it easier for some of us to use? |
akoeplinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start but we should move more of the logic into msbuild :)
| SkipUnchangedFiles="true"/> | ||
| </Target> | ||
|
|
||
| <!-- Run netcore\sample\HelloWorld sample using Mono Runtime --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure it's worth it. I'd prefer to have better documentation for this instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marek-safar um.. what exactly is not worth it? -- having the RunSample target?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I'd much rather see documentation with working steps for dotnet new .... to run on MonoVM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this have temporary value until we figure that part out? I know some people like to use RunSample as an easy way to test their stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we figure it out already if we can run the sample which is form of dotnet new console
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean. Yeah, I agree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems most of us use HelloWorld for experiments/fixes/improvements. Do you suggest to remove it and let everybody do:
dotnet new console
dotnet publish -c Release -r osx-x64
copy libcoreclr.dylib & SPC.dll by hands to the publish directory
instead of make run-sample ?
Currently run-sample doesn't require patching local .dotnet (which imo should be avoided if possible). Also there is a rule make run-sample-coreclr which does use local .dotnet (useful to compare results between both runtimes)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I think having this document something is more valuable than having it in Makefile (although you can keep sample of this example if you think it's valuable)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've simplified all the things so now runsample uses local dotnet. But I personally would prefer to keep it at least for a while.
akoeplinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks almost perfect, just needs a few little fixes :)
akoeplinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing parenthesis but looks good otherwise
Co-Authored-By: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-Authored-By: Alexander Köplinger <alex.koeplinger@outlook.com>
|
Sorry, forgot to squash it 😢 (it used to be a default behavior in mono/mono) |
src/mono/netcore/corerun/folder, we can build/use coreclr's corerun (it has--clr-path)RunSampleto build & run HelloWorld with mono runtime.