.net core 2.0 issue with PublishDir

johnhilts's Avatar

johnhilts

12 Nov, 2017 08:59 AM

I don't seem to be able to deploy my .net core 2.0 web app unless I add the PublishDir tag to the .csproj file as follows:

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <PublishDir>$(OutDir)_PublishedWebsites\NetCoreWebApp\</PublishDir>
  </PropertyGroup>

The problem, though, is that in my local environment, everytime I use dotnet run a _PublishedWebsites folder is recursively added to the root of my site, and then over and over again inside of each _PublishedWebsites\NetCoreWebApp sub-folder set.

Is there a different setting that will avoid the recursive publishing plus allow me to deploy my .net core 2 web apps?

The app in question is this one:
http://ez7zu6.apphb.com

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac