Questions tagged [visual-studio-publish]

Questions about publish tool from Visual Studio UI and dotnet cli -publish command.

Publish has many targets and options:

  1. to file system
  2. to web package
  3. to IIS directly
  4. to clouds

More on the vendor's page: https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-to-azure?view=vs-2017

19 questions
232
votes
31 answers

Visual Studio 2012 Web Publish doesn't copy files

I have a Web Application project in VS 2012 and when I use the web publishing tool it builds successfully but doesn't copy any files to the publish target (File System in this case). If I look at the build output I can see everything gets copied…
166
votes
5 answers

Use Visual Studio web.config transform for debugging

Possible Duplicate: How can I use Web.debug.config in the built-in visual studio debugger server? I want to use the Web.config transformation that works fine for publish also for debugging. When I publish a web app, Visual Studio automatically…
Cutter
  • 1,661
  • 2
  • 11
  • 3
6
votes
3 answers

Visual studio publish button disabled?

I created a Node.js project in visual studio and I now wanted to publish it to azure, so I followed the following guide: https://github.com/Microsoft/nodejstools/wiki/Publish-to-Azure-Website-using-Web-Deploy#converting-to-an-azure-project-type But…
3
votes
2 answers

Different Newtonsoft.Json.dll dotnet publish vs publish with Visual Studio

I have a .NET Core Web Application with target framework .netcoreapp2.0. If i publish my application via Visual Studio (folder profile) I get a different Newtonsoft.Json.dll then with the command dotnet publish --configuration Release --output…
2
votes
0 answers

Why visual studio publish app.runtimeconfig.json with empty parameters?

Why visual studio publish empty app.runtimeconfig.json? Steps to reproduce Publish .net core app 2.2 project. Profile Settings: Configuration: Release|x64 TargetFramework: netcoreapp2.2 Deployment…
Admiral Land
  • 2,304
  • 7
  • 43
  • 81
2
votes
1 answer

IIS error because ASPNETCORE_ENVIRONMENT set to development but its not

ASP.Net Core 2.2 web app being published to a dev/test server. In my publish profile, I have this Test When I publish to the destination, I look at the web.config file,…
bitshift
  • 6,026
  • 11
  • 44
  • 108
2
votes
1 answer

IIS Application Pool Identity permissions reset on every Visual Studio app Publish

Following the instructions in this questions I can successfully change the permissions for the application pool identity However, after I publish the web app... The application pool identity's has been reset to just Read How can I give the…
1
vote
0 answers

Where is a container's ServicePort defined when publishing a container from Visual Studio 2022?

I have published a Linux container to an Azure Container App using the publishing UI embedded within Visual Studio 2022. This seems to work and a new container image is uploaded into my Azure container registry and then loaded into the Azure…
camelCase
  • 1,549
  • 2
  • 16
  • 28
1
vote
1 answer

Why does Visual Studio skip some directories like Controllers, Classes, and App_Start when publishing to Azure?

I have a classic ASP.Net forms based website where I have added s set of API hits based on the OAuthAuthorizationServerProvider class. It works great locally, now I trying to publish it to an Azure App Service. The ASP.Net portion of the website…
1
vote
1 answer

Visual Studio Publish/Deployment using File System with Power Shell Script

I have a Visual Studio 2019 project that I want to locally deploy to a network folder. \\api\c$\inetpub\wwwroot The path requires a user name and password. Which The default visual studio publish does not prompt I simply get this error. Severity …
user1730289
  • 273
  • 4
  • 15
1
vote
0 answers

Visual Studio only publishes hostingstart.html to Azure

I have two ASP.Net Project. Project A is an earlier/older version of Project B. I used the publish functionality of Visual Studio to publish the .web project to Azure. Project A seems to get published successfully, and I can go to its Azure website…
pnizzle
  • 6,243
  • 4
  • 52
  • 81
0
votes
0 answers

Could not publish a .NET application using Visual Studio 2022

I created a .NET Framework 4.8 solution for more than 5 years now. I have always published it to Azure platform. For the last 2 weeks, I have tried to publish it from Visual Studio Community, 2022 to Azure platform but unable to complete the…
0
votes
0 answers

Publish and Deploy Blazor Server app to Linux machine

Good day, Using Visual Studio Publish, I would like to automate deployment of a Blazor Server app to my Ubuntu Linux VM. Currently, when I click Publish, my app is built and pushed via FTP to my VM. Unfortunately, this is only half the battle. In…
0
votes
0 answers

Error log contains source code path in Release Candidates

I'm using nlog as the log provider in my windows service. I'm publishing the application using Visual Studio 2019 with following settings. here, nlog configurations
Aruna
  • 1,962
  • 4
  • 25
  • 50
0
votes
2 answers

c# publish exe of windows form application with folder data

I have tu publish a windows form application in c#. The problem is that I have a folder named "dati" in project folder In code, when I try to read from folder I use this instruction string projectDirectory =…
Martina
  • 1,852
  • 8
  • 41
  • 78
1
2