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)
- Docker Hub nightly readmes missing link to dotnet product family
- Git package installation failing for Azure Linux 3.0 on Arm64 HOT 3
- BlazorWasm test failure on Azure Linux 3.0
- Unable to find package Microsoft.NET.Sdk.WebAssembly.Pack with version (>= 9.0.0-preview.6.24307.2)
- [dnceng-bot] Branch `dotnet-docker/nightly` can't be mirrored to Azdo fast forward branch HOT 1
- Add support for Server 2025 HOT 1
- Is there any vulnerability or security issues in Chiseled images build with multistage docker file. HOT 1
- Re-enable PowerShell Arm32 tests for 9.0 HOT 1
- Azure Linux 3.0 and CBL Mariner 2.0 distroless images have hardcoded USER declaration with name instead of UID HOT 2
- Please display image sizes in MiB on the mcr.microsoft.com HOT 1
- Alpine based sdk,runtime-deps with alpine-3.19 and alpine-3.20 ar affected by CVE-2024-5535 HOT 1
- Consider using Docker custom build outputs (`--output`) for generated Dockerfiles and Readmes
- Re-enable aspnet app scenario test HOT 1
- Define common implementation for skipping tests HOT 2
- Clean up diffs in samples between main and nightly branches HOT 1
- Consider using Microsoft-built Golang images for Ubuntu Chisel infrastructure HOT 3
- Install Chisel tool from binaries instead of compiling from source HOT 1
- Re-enable .NET 9 Windows ASP.NET scenario tests that were crashing due to Terminal Logger
- Family "ARM64v8" (only) pointing to "noble-arm64v8" HOT 4
- `zlib` statically linked for .NET 9; We need .NET 9-specific `runtime-deps` HOT 8
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.