Skip to content

Conversation

@EgorBo
Copy link
Member

@EgorBo EgorBo commented Jan 30, 2020

  1. Delete src/mono/netcore/corerun/ folder, we can build/use coreclr's corerun (it has --clr-path)
  2. Add RunSample to build & run HelloWorld with mono runtime.

@steveisok
Copy link
Member

@EgorBo Can we add makefile targets in order to make it easier for some of us to use?

Copy link
Member

@akoeplinger akoeplinger left a 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 :)

@EgorBo EgorBo marked this pull request as ready for review February 3, 2020 11:04
@akoeplinger akoeplinger dismissed their stale review February 3, 2020 13:17

outdated review

SkipUnchangedFiles="true"/>
</Target>

<!-- Run netcore\sample\HelloWorld sample using Mono Runtime -->
Copy link
Contributor

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

Copy link
Member Author

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?

Copy link
Contributor

@marek-safar marek-safar Feb 3, 2020

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

Copy link
Member

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.

Copy link
Contributor

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

Copy link
Member

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.

Copy link
Member Author

@EgorBo EgorBo Feb 3, 2020

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)

Copy link
Contributor

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)

Copy link
Member Author

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.

@steveisok steveisok mentioned this pull request Feb 4, 2020
24 tasks
Copy link
Member

@akoeplinger akoeplinger left a 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 :)

Copy link
Member

@akoeplinger akoeplinger left a 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

EgorBo and others added 2 commits February 4, 2020 18:06
Co-Authored-By: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-Authored-By: Alexander Köplinger <alex.koeplinger@outlook.com>
@EgorBo EgorBo merged commit 4f0c7da into dotnet:master Feb 4, 2020
@EgorBo
Copy link
Member Author

EgorBo commented Feb 4, 2020

Sorry, forgot to squash it 😢 (it used to be a default behavior in mono/mono)

@EgorBo EgorBo deleted the fix-mono-sample branch May 25, 2020 11:57
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants