Skip to content
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

Support .NET Core 2.0 #39

Closed
colemickens opened this issue Nov 12, 2016 · 8 comments
Closed

Support .NET Core 2.0 #39

colemickens opened this issue Nov 12, 2016 · 8 comments

Comments

@colemickens
Copy link

This seems to be full .NET Framework with Mono.

The future of .NET seems to be .NET Core. Is there an intent to support .NET Core?

@zaphar
Copy link
Collaborator

zaphar commented Nov 12, 2016

There is. Just as soon as I free time up to work on it. Or someone beats me
to it. :-)

On Nov 11, 2016 23:57, "Cole Mickens" notifications@github.com wrote:

This seems to be full .NET Framework with Mono.

The future of .NET seems to be .NET Core. Is there an intent to support
.NET Core?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#39, or mute the thread
https://github.com/notifications/unsubscribe-auth/AACetxk9-xdMqla6xHn6eWBvP2cJMu9Wks5q9VVJgaJpZM4KwVlb
.

@zaphar
Copy link
Collaborator

zaphar commented Dec 2, 2016

I'll also note that currently the .Net Core tooling is in a considerable state of flux so I'm also sort of waiting for it to settle down a bit so the target isn't moving so much.

@salrashid123
Copy link

coreclr has settled down a bit (w'ere at 2.x.x+ releases now )

Wanted to gauge if anyone is working on this now (or plan to). If there's a branch on this or work in progress, i can help with that too.

@zaphar
Copy link
Collaborator

zaphar commented Jul 8, 2017 via email

@salrashid123
Copy link

hi-
i've only started using bazel last 2 weeks (for python_rules, which is easy)...writing a new language binding is really daunting but i'll try to make progress (there's a lot of bazel internals i need to account for; its not just using the prepackaged python_rules!

I'll spend sometime reading up on this more and also post a question to the bazel users googegroup for assistance as i fear i'm missing fundamentals too.

for what its worth, i've started off here...at the moment, it just downloads the dotnet cli and runs a restore command...but the lock files goes somewhere else. If anyone has any comments, pls add it there and i'll work through it.

once the bazel rules are done and i can generate a .dll, i've got the 'distroless' baszel-based docker images for coreclr working though.

here's the scratchpad i'm working with
-https://github.com/salrashid123/rules_dotnet

@colemickens colemickens changed the title Support .NET Core Support .NET Core 2.0 Aug 15, 2017
@colemickens
Copy link
Author

I suppose it makes sense to target .NET Core 2.0 now that it is out. @salrashid123 have you had much success so far?

@salrashid123
Copy link

I had mixed success (mostly failure) and got a basic build working (just the helloworld, no project-references)...

...but I can't run it because the coreCLR binary requires me to declare a lot of dependencies (eg. libhostfxr.so ) and I don't know how to do that in a general way (thats principally stems from me not knowing bazel beyond beginner level and time to devote to this, really)

if you want to try out whatever bit i've done so far,

git clone https://github.com/salrashid123/rules_dotnet.git
$ bazel build examples/example_binary:publish/example_binary

you'll see the binary is actually generated within the sandbox, but you can't do anything with it:

  example_binary -> /home/srashid/.cache/bazel/_bazel_srashid/3e0b54fd87078f9987a49c0c2b6eb538/bazel-sandbox/2090235503543648286/execroot/io_bazel_rules_dotnet/bazel-out/local-fastbuild/bin/examples/example_binary/example_binary.dll
  example_binary -> /home/srashid/.cache/bazel/_bazel_srashid/3e0b54fd87078f9987a49c0c2b6eb538/bazel-sandbox/2090235503543648286/execroot/io_bazel_rules_dotnet/bazel-out/local-fastbuild/bin/examples/example_binary/publish/

just FYI, I'll file an issue against docker distroless builds...I was able to make a distroless docker image built and running...but i had to generate the binary by hand...if coreCLR bazel rules actually work, then a proper distroless support is really easy.

@tomaszstrejczek
Copy link
Collaborator

The new toolchain-based implementation supports .NET core.

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

No branches or pull requests

4 participants