I'm trying to pull from mcr.microsoft.com/dotnet/framework/sdk:4.5 but get the following output: manifesto for mcr.microsoft.com/dotnet/framework/sdk:4.5 not found: manifest unknown.
I am new to docker and can't find this answer anywhere online. I've tried switching to a windows container and that didn't help.
So I solved this by using the latest .NET Framework 4.8 version. I then had to switch to windows containers through the Docker App.
Related
I'm trying to build a docker image with .NET Framework 4.8.
The Docker Windows image that I'm using is servercore:ltsc2019 (it has .NET Framework 4.7.2 preinstalled).
I've tried using:
ndp48-x86-x64-allos-enu.exe
chocolatey netfx-4.8-devpack
In every case, it gives the error 3010, which means it requires restart.
Suppressing error is failing docker build with error:
Encountered an error during Shutdown: failure in a Windows system call: The interface is unknown. (0x6b5)
or it's building with a broken .NET Framework installation.
What should be my approach here to update .NET Framework to 4.8?
I deduce that you have something which needs both 4.7.2 and 4.8?
Have you tried to do it the other way around?
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019
ADD http://go.microsoft.com/fwlink/?linkid=863265 /ndp472-kb4054530-x86-x64-allos-enu.exe
RUN C:\ndp472-kb4054530-x86-x64-allos-enu.exe /quiet /install
I have a .NET (Core) 5.0 solution with a global.json because I want to keep a specific SDK version:
{
"sdk": {
"version": "5.0.302"
}
}
5.0.302 is installed on my machine, and the solution opens in Visual Studio (for Mac) and builds just fine, but when I try to build with Docker from the command line I get:
A compatible installed .NET SDK for global.json version [5.0.302] from [/src/global.json] was not found.
The image used in my Dockerfile is:
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
I don't think I understand the global.json docs. I tried changing the version in global to 5.0.0 and adding rollforward: latestFeature. Now Docker will build, but Visual Studio won't build when I open the project:
.NET Core 5.0.0 SDK is required to build this application, and is not installed.
I expected VS to use the installed 5.0.302 in this case, but it doesn't.
While a 5.0.302 SDK isn't listed in the Microsoft registry, it was available when I tried to pull it.
Try changing your Dockerfile to
FROM mcr.microsoft.com/dotnet/sdk:5.0.302 AS build
I don't know how often Microsoft clean their registry, but you should probably be prepared for the image to disappear at some point.
If you can, I'd advise you to not rely on a specific version of the SDK.
I have created a sample .NETCORE web API, and I'm trying to deploy to docker, I get below errors, could some one help on how to resolve this.
Below screenshot of docker file and error from Visual Studio code
docker file
docker file content1
List of asp.net core runtimes Installed in my local machine
From the screenshot, we can see you have installed the Asp.net Core 5.0.2 and 5.0.5 version runtime and SDK, without the Asp.net Core 5.0.0 Version.
So, to fix this issue, you could install the Asp.net Core 5.0.0 version SDK and runtime. Or you could use the existing Asp.net core version to create docker image.
Maybe you need to pull a new version for the dotnet image .
check these:
link1
Link2
My case was with docker because the message was always: the framework 'microsoft aspnetcore app version '5.0 0 was not found at runtime so in the document .Dockerfile add
=> FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
and
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
was working with workerservice and it worked.
I Created a ASP CORE 1.1 project with docker support. it runs.
Now when i downgrade it to asp core 1.0 and run the docker mode i got
The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use
Microsoft.NETCoreapp 1.0.0 or newer [..]
When downgrading the solution the docker file doesn't get updated.
Update in docker file
FROM microsoft/aspnetcore:1.1
to
FROM microsoft/aspnetcore:1.0
After setting up VS Code, I'm trying to run an ASP.NET 5 project using Visual studio code's command palette on Ubuntu Linux 14.4.
The DNVM installed is for Mono. Following the steps given on VS code's official docs, the project is created with Yeoman scaffolder.
Whenever trying to start the project, I get the following error:
OmniSharp server is not running.
I found some posts when trying to solve this but most seems to be addressing either Console project or are given for OS x:
For a Console App
This is for debugging not running
The output of mono --version shows that it is >3.12:
My dnvm is already the latest
I can run the project by using dnx web command from Terminal.
However, my simple question:
How do I run ASP.NET 5 on Ubuntu using VS Code?
Side question : Not sure by when the debugging will be supported. Any rumours about the extension will be appreciated.
This seems to be a bug with OmniSharp and not specifically with VSCode