Questions tagged [dotnet-publish]
70 questions
1
vote
0 answers
Publish Windows Service on Linux .NET Core
I develop .NET Core Console Application (which is prepared to run as Windows Service on server with Windows 10) in Visual Studio 2019 on Windows and my continuous devlivery tool is on CentOS 8 (GoCD).
When I'm publishing that application on Windows…

krystian_sputo
- 51
- 4
1
vote
0 answers
dotnet publish for ASP.NET Core project doesn't publish on FileSystem
When using the command
dotnet build /p:DeployOnBuild=true /p:PublishProfile=CustomProfile
my ASP.NET Core project builds and gets published using the FileSystem publishing method.
When I use the
dotnet publish…

R4cOOn
- 2,340
- 2
- 30
- 41
1
vote
0 answers
How do I select between appsettings.json and appsettings.Development.json when pushing to dev server and prod server?
How do I make my application use appsettings.json on a production server, and appsettings.Development.json on a development server?

chuckd
- 13,460
- 29
- 152
- 331
1
vote
0 answers
After building and publishing to IIS I always see production build when debug is used in publish commands
I'm having a problem installing a dev version of my Angular/Dotnet app to IIS.
It seems like even when building the project as a dev/debug version and running it in IIS, the app informs me via a startup email I've created that it's always in…

chuckd
- 13,460
- 29
- 152
- 331
1
vote
0 answers
ASP.Net Core 3.0 "dotnet bundle" exited with code 150
$ dn publish -f netcoreapp3.0 -c Release --no-restore --no-build src/Biz4x.Frontend.Web/
Microsoft (R) Build Engine version 16.3.0+0f4c62fea for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
bower font-awesome …

Kok How Teh
- 3,298
- 6
- 47
- 85
1
vote
1 answer
Aspnet Core Self-Contained deploy's web.config missing file extension
I'm using Aspnet core (2.1) with Full framework (4.7, we have some WCF WS-* Services that we want to use) and whenever I use publish , the generated web.config does not work. Starting the website (using IIS 7.5, on my Windows 7 machine) and trying…

Carl Quirion
- 765
- 5
- 25
0
votes
0 answers
Exclude dependee ASP.NET Core web project assets from publish
I have three ASP.NET Core 7 projects:
Common: library project. Other projects depend upon it.
Web: razor pages project. Depends on Common.
Migrator: console project. Depends on Common, and Web (via ProjectReference) for db contexts, etc. It is used…

lonix
- 14,255
- 23
- 85
- 176
0
votes
2 answers
Dockerise ASP.NET Core app with Alpine image
I want my dockerised ASP.NET Core 7 app based on Alpine (not ASP.NET Core Runtime).
MyApp.csproj contains:
true
linux-musl-x64
Dockerfile contains:
FROM alpine
But when…

lonix
- 14,255
- 23
- 85
- 176
0
votes
1 answer
Azure Pipelines with dotnet publish fails finding apphost.exe
While publishing an application on azure pipelines, I encounter the following problem.
/opt/hostedtoolcache/dotnet/sdk/6.0.412/Microsoft.Common.CurrentVersion.targets(5097,5): error MSB3030: Could not copy the file…

Nicolas Pierre
- 1,174
- 1
- 21
- 39
0
votes
0 answers
Where does runtimeconfig.json take includedFrameworks's version setting from?
I am investigating why my deployed dotnet core worker service app's runtimeconfig.json's includedFrameworks's version setting has changed from 3.1.31 to 3.1.32 for both
Microsoft.NETCore.App and Microsoft.AspNetCore.App entries.
What are the factors…

Veverke
- 9,208
- 4
- 51
- 95
0
votes
0 answers
Using a .NET7 project how to pass in ContainerEnvironmentVariable parameter via command line for the donet publish command?
With .NET7 we can use the dotnet publish command to build a docker container. How do you pass in environment variables via the command line?
You can use the following to build the container and specify a container image name but how to specify the…

lymberazo
- 453
- 6
- 13
0
votes
2 answers
App crashes on AppService with Could not load file or assembly, but works locally
I have an ASP.NET Core 6 app deployed in Azure AppService. After I updated Serilog.AspNetCore to 7th version it started crashing with:
Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=7.0.0.0
(issue occurs only in…

maxc137
- 2,291
- 3
- 20
- 32
0
votes
0 answers
Publish nuGet package as single file
I am not sure if I am rightly thinking or not, but I was trying to create a nuget package which can be published as a single file, so that dependent nuget libraries must be bundled in single nuget package and when we add it as reference, it should…

azhar rahi
- 331
- 4
- 16
0
votes
1 answer
GitHub Actions dotnet publish Specify a project with a Dot in the name
I am setting up my CICD for a MAUI app using GitHub actions. I'm using the dotnet publish command to publish the application but if I have a "." in the name of the project it can't find the project.
- name: Build
run: dotnet publish…

Kyle Fuller
- 117
- 2
- 13
0
votes
0 answers
dotnet publish generate multiple files only when using -c Release
I need to publish single file application. Technology: winforms (.NET 6)
When I'm using this command:
dotnet publish "C:\sample.csproj" -r win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true
everything works fine, it…

guidempty
- 1
- 2