Questions tagged [dotnet-publish]

70 questions
0
votes
1 answer

build or publish via"dotnet" command with arguments/parmaters specifying windows Authentication=true and anonymous Authentication=false

Here are the details about our development environment: DevExpress 20.2.3 (we are using DevExtreme) Microsoft Visual Studio Enterprise 2019 (Version 16.4.6) ASP.NET Core 3.1.0 AspNetCore.Mvc 3.1.0.0 Microsoft SQL Server 2008 R2 (RTM) – dotnet…
0
votes
0 answers

How to run "dotnet publish" without creating web.config / .exe file?

I run "dotnet publish" command on my app, and it does create a web.config file and an exe file. I am not going to run the application behind IIS server, so I assume that these files are not really required then. I cannot figure out how to make the…
Ilya Chernomordik
  • 27,817
  • 27
  • 121
  • 207
0
votes
1 answer

MSBUILD : error MSB1008: Only one project can be specified. Switch: Release

I am trying to publish my code onto a linux server by using dotnet publish –-configuration Release in the terminal command line. This should create a folder in bin/release/publish with all of the files ready to be deployed onto the server. however,…
GolfBravo
  • 837
  • 2
  • 12
  • 23
0
votes
0 answers

Seperate appsettings.json and all other files to different directories when publishing

I need to separate my appsettings.json file and one other .json file which i use for app configuration from all other files when i publish the app. The out put should be that all files will be at .bin folder which is now the folder destination of…
ATT
  • 921
  • 3
  • 13
  • 30
0
votes
0 answers

dotnet publish compiles Microsoft.AspNetCore.JsonPatch.dll with wrong version

I have an interesting problem. When I use dotnet publis on my desktop PC it compile my project without errors on Linux run. When I compile the same project on my laptop there are one error on the Linux run, that complaining on…
Wasyster
  • 2,279
  • 4
  • 26
  • 58
0
votes
2 answers

dotnet publish -o published is created nested directories with each publish

I have an ASP Core project named MyProject that I'm trying to publish to the directory MyProject\published. I run dotnet publish -o published. This works correctly the first time. However, the second time that I run this, the files get published…
Ben Rubin
  • 6,909
  • 7
  • 35
  • 82
0
votes
0 answers

Error is saying the dotnetcore 3.0 SDK does not support netstandard 2.1

I am doing a docker build with a RUN step that does a dotnet publish. The error appears to indicate that dotnetcore 3.0 does not support netstandard2.1 (which is incorrect according to…
Joe Phillips
  • 49,743
  • 32
  • 103
  • 159
0
votes
0 answers

dotnet publish does not use version restored by dotnet restore

I'm trying to build a .NET Core application that references a NuGet package from a custom feed (I gave up on authentication so it has anonymous access enabled). I have a local Teamcity instance that runs a dotnet publish command. I added the…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
-1
votes
2 answers

Use external dependency from artifact repository with dotnet build

We are using dotnet publish command to perform the building the project as well as publishing the binaries. The following command is used for that? dotnet publish |]--force -o ] We also want to use the some…
mystack
  • 4,910
  • 10
  • 44
  • 75
-2
votes
1 answer

Publishing limitations when using Microsoft.NET.Sdk.Web as library project

When I create an ASP.NET Core hosted Blazor app from the .NET template I get something like this: WebHost project (Microsoft.NET.Sdk.Web, Exe output type) BlazorApp project (Microsoft.NET.Sdk.BlazorWebAssembly, Exe output type) I can easily run…
Michael Dietrich
  • 451
  • 1
  • 5
  • 17
1 2 3 4
5