Comments (18)
@petr-k are you getting a compilation error?
from dotnet-docker.
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.
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.
This looks related to dotnet/cli#531.
from dotnet-docker.
oh I'm sorry I confused this repo with my Docker.DotNet repo, apologies. Ignore my comment.
from dotnet-docker.
@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.
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.
@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.
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.
What do you mean by "mono debug files", exactly? Is it the reference assemblies?
from dotnet-docker.
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.
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.
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.
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.
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.
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.
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.
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)
- Add "New Linux Distro Release" checklist back to this repo HOT 1
- Remove Alpine 3.18 images for .NET 6 HOT 2
- Not all Alpine floating tags point to the correct Alpine versions HOT 4
- Debian Arm64 images are surpisingly big HOT 3
- Move .NET 8 Azure Linux 3.0 Images to main
- Create an HTTP/3 / QUIC sample HOT 1
- Proposal: Drop PowerShell from Alpine and Ubuntu SDK images for .NET 9+ HOT 2
- Latest Azure Linux 3.0 drop is getting TLS error during `dotnet restore` HOT 1
- Azure DevOps Pipelines test reporting shows incorrect test parameters
- Simplify AzureLinux 3.0 multi-stage build with non-root user HOT 1
- Automatic dependency update PRs should include version information HOT 3
- CVE-2024-32002 detected in sdk:8.0-alpine3.19-amd64 HOT 2
- Missing images for 28 May 2024 Release HOT 5
- Attach SBOMs to images in the container registry HOT 3
- 8.0.3-alpine3.19-amd64 , or 8.0.6-alpine3.19-amd64 uses 3.19 Alpine which is Vulnerable with CVE-2023-42363 HOT 3
- standard_init_linux.go:228: exec user process caused: exec format error after building docker image on MacBook M1 Max for linux/amd64 platform
- Remove Azure Linux 3.0 Symcrypt issue workaround
- New tag for alpine images HOT 6
- Consider adding OCI Image Annotations to .NET images HOT 2
- Link to the Container Vulnerability Workflow from the readmes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-docker.