Code Monkey home page Code Monkey logo

Comments (18)

ahmetb avatar ahmetb commented on June 10, 2024

@petr-k are you getting a compilation error?

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

On dotnet pack, I am getting:
DOTNET1012: The reference assemblies directory was not specified. You can set the location using the DOTNET_REFERENCE_ASSEMBLIES_PATH environment variable.

I ran bash and tried installing mono-complete package and pointing the environment variable above to mono's xbuild-frameworks folder, but to no avail.

from dotnet-docker.

ahmetb avatar ahmetb commented on June 10, 2024

I haven't used dotnet CLI before. I've only built with MonoDevelop in the past. Any ideas what might be causing that? I am planning to refresh bits on NuGet today or tomorrow, if you could find what is wrong, I really appreciate any fixes. Other than that I'm afraid I don't have a solution here.

from dotnet-docker.

MichaelSimons avatar MichaelSimons commented on June 10, 2024

This looks related to dotnet/cli#531.

from dotnet-docker.

ahmetb avatar ahmetb commented on June 10, 2024

oh I'm sorry I confused this repo with my Docker.DotNet repo, apologies. Ignore my comment.

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

@MichaelSimons Yes, it's slightly related. Actually, the issue you're linking to led me to the idea to specify the variable myself, one of the comments there also says which paths should be taken into account. I think the primary issue is that the Mono bits are just not included in the image in the first place.

from dotnet-docker.

borgdylan avatar borgdylan commented on June 10, 2024

The CLI does not support mono at all. If you need a variant/fork that does check out the deb package at https://github.com/borgdylan/dotnet-cli.

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

@borgdylan How does the statement of CLI not supporting mono at all relate, e.g., to the issue @MichaelSimons linked above? It seems that CLI aims to support Mono as well..

from dotnet-docker.

borgdylan avatar borgdylan commented on June 10, 2024

I meant that the stock CLI requires .net core to run plus it ignores the existence of mono debug files while publishing.

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

What do you mean by "mono debug files", exactly? Is it the reference assemblies?

from dotnet-docker.

borgdylan avatar borgdylan commented on June 10, 2024

mono "pdbs" i.e mdb files are not supported. I will consider patching my fork of the cli that runs on mono so that publish does not fail when no pdbs are present when compiling in debug mode..

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

The issue I described has nothing to do with the unavailability of runtime debugging information during publishing, but merely the fact that the image lacks the required reference assemblies to target .NET 4.5.x. Can you explain how that relates to your fork? I should not need any forked version of CLI since it does support mono.

from dotnet-docker.

borgdylan avatar borgdylan commented on June 10, 2024

My fork uses mono as the CLR (targeting net461) instead of CoreCLR. It also pre sets the reference assemblies env var in the bootup scripts.

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

Running the CLI on mono is not needed for it to target net461, though, or is it? PDBs/MDBs do not play any role here.

from dotnet-docker.

borgdylan avatar borgdylan commented on June 10, 2024

No it does not. But not all machines can run CoreCLR as things stand currently. Also on Linux to run net461 apps mono is needed which supports portable pdb and mdb files only for debugging. Do remember that not all compilers support portable pdb output and still output regular pdb on windows and mdb on Linux/mac.

from dotnet-docker.

petr-k avatar petr-k commented on June 10, 2024

Just to be perfectly clear - I do not intend to run the output artifacts on Linux. The scenario I am after is to build on Linux, target NET461, run the output on Windows.

from dotnet-docker.

borgdylan avatar borgdylan commented on June 10, 2024

Remember that you will not be able to debug them on windows i.e. the debug symbols will not load due to the path differences and teh differences between portable and regular pdb.

from dotnet-docker.

MichaelSimons avatar MichaelSimons commented on June 10, 2024

There are no plans to create a supported Mono based image at this time. If there is a strong demand for it we would reconsider but there isn't at this point. Closing Issue.

from dotnet-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.