Questions tagged [dotnet-publish]
70 questions
0
votes
1 answer
Azure DevOps publish zip remove hidden folder
I'm configuring an azure devops pipeline and want to zip the package for the publish.
When I choose to zip, a directory that I have in the code (/wwwroot/.well-known) is not included in the zip.
Is there an option that exclude hidden folders?

Dreeco
- 290
- 4
- 10
0
votes
1 answer
dotnet publish with new implicit dockerfile feature using NuGet Microsoft.NET.Build.Containers fails in GitLab cicd
I am trying out the new NuGet package Microsoft.NET.Build.Containers which allows building docker image with dotnet publish.
Microsoft Docs: https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container?view=vs-2022
It works fine on…

dev01
- 97
- 1
- 1
- 9
0
votes
1 answer
How can I specify a custom APK filename when publishing a MAUI app?
When publishing a MAUI app for iOS, I can either use
IPA.ipa
in the project file or add -p:IpaPackageName=IPA.ipa to the dotnet publish command to change the filename of the distribution package. I didn't find much…

Glorfindel
- 21,988
- 13
- 81
- 109
0
votes
1 answer
Nuget packages & Dotnet publish taking forever
Anybody is familiar with Nuget Packages in IIS server?
I'm stuck with a serious issue from 3 days.
I tried installing and pushing .nupkg file I have to nuget.org by making source as my local server by adding it as local feed.
After this problem I…

Manoj Mandala
- 1
- 1
0
votes
1 answer
"dotnet publish" doesn't publish nuget packages when it's older than the current published version?
I'm using Asp.net core 6.0. When I upgrade nuget package to the new version and publish it, it replaces the old .dll file with the new one in the "publish" and "release" folders. But when I want to undo this, downgrade the version of nuget package…

Saidnazar Saidnazarov
- 13
- 1
- 2
0
votes
0 answers
Publishing hosted Blazor Wasm from cmdline: browser-wasm and palaformtarget x64 incompatible
I'm trying to publish an ASP.NET hosted Blazor wasm app, but I'm having some issues with the publishing. I'd like to publish a x64 self-contained app and I'm using the following command from within the server project:
dotnet publish…

Luis Abreu
- 4,008
- 9
- 34
- 63
0
votes
1 answer
How to run "dotnet publish" with the runtime flag in a multi arch Dockerfile?
I have a set of ASP.NET Core 6.0 services hosted on AWS ECS Fargate. Currently they are running on x64 but I want to experiment using the ARM architecture. Also, I want to produce multi-arch images because developers might need to pull those images…

Kralizek
- 1,999
- 1
- 28
- 47
0
votes
1 answer
Docker dotnet publish output not found
I am trying to successfully build/publish a project using a dockerfile. However, for some reason it cannot find the output folder that it should of created. From the other posts, everything looks correct in my docker file.
Dockerfile
FROM…

TheProgrammer
- 1,314
- 5
- 22
- 44
0
votes
0 answers
Default Port for Dot Net 6 not running Angular application
I am working on a Dot Net 6 and Angular 13 based application. When I run application from Visual Studio, it works fine and open the desired port for API and Front-End but when I publish this application using DotNet command from Visual Studio Code,…

Anil C
- 1,045
- 3
- 16
- 38
0
votes
0 answers
Why dynamically loaded .NET 6 plugins are no longer IsAssignableFrom the plugin interface when publishing with trim unused assemblies turned on?
I have created a small .NET 6 console application (GPU Offers on GitHub), which is using a plugin system to dynamically (at runtime) load plugins (DLL files).
When I dotnet publish the console app (not the plugins) with the option to trim unused…

burnersk
- 3,320
- 4
- 33
- 56
0
votes
2 answers
dotnet publish --self-contained option on Linux container
There are two ways to run a dot .net core application on a Linux based container.
Getting a base image which has .net core framework install (on top of Linux image) & then copy code using dotnet publish.
Use a Linux base image and then copy the…

SharpCoder
- 18,279
- 43
- 153
- 249
0
votes
1 answer
What is setting stdoutLogFile location during ASP.NET Core publish to Azure App Service?
I am publishing an ASP.NET Core web API to an Azure App Service. I've published from Visual Studio 2022 and from an Azure DevOps pipeline. I'm trying to understand why the Visual Studio publish process is resulting in a different web.config file…

IamMike
- 111
- 1
- 4
0
votes
0 answers
dotnet publish, Core project with framework references, fails with release configuration
Publishing in release configuration gives this error:
Microsoft.Bcl.Build.targets(97,5): error MSB4062: The
"EnsureBindingRedirects" task could not be loaded from the…

Don Chambers
- 3,798
- 9
- 33
- 74
0
votes
2 answers
dotnet publish fails intermittently because DLL is in use, even after recycling the app pool
I am working on an ASP.NET Core 3.1 web app project and I noticed that the one-click web deploy (for which I have a folder profile setup) does not work because the DLLs in my website folder are in use by another process (probably w3wp.exe). I am…

Paul
- 1,375
- 2
- 21
- 55
0
votes
1 answer
What does out in dotnet publish mean?
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…

alekoo73
- 779
- 2
- 10
- 18