Category : dotnet-publish

In this article I’ve found a way to speed up docker build command https://www.softwaredeveloper.blog/optimize-building-net-core-docker-image This command caches nuget dependencies RUN dotnet publish -c Release -o out I just can’t catch what does out mean ,it should be a path , but running such command fails , because COPY –from=publish out . does not work.How can ..

Read more

The publish is being done via docker. DockerFile FROM mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1809 AS build // restore … // build .. // publish RUN dotnet publish –no-build -c Release /p:PublishSingleFile=true -r win-x64 –self-contained true -o C:/dist .csproj <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> <UseWPF>true</UseWPF> <ApplicationIcon>CommonImagesfavicon.ico</ApplicationIcon> <StartupObject>Dtail.Platform.Launcher.App.App</StartupObject> </PropertyGroup> … </Project> Expected behavior: Since the OutputType is set to WinExe, it ..

Read more