Package ASP.NET Core projects does not create artifacts

Ben Liebert's Avatar

Ben Liebert

30 Oct, 2018 01:48 AM

Hi, I've read the forums about artifacts not being created for ASP.Net Core projects, and they mention using "dotnet publish" in a post-build command. I've actually got this working and my artifacts are generating. However I'm having problems with locked files on the Azure server and anyway, I just want to go back to basics because I'm afraid I'm overcomplicating things.

My questions arises because none of the forum articles mention what appears to be a new flag in the UI:

Settings -> Build -> Automatic packaging -> Package ASP.Net Core projects.

I've included a screenshot. You can see I've included the Web Applications as well - this is because I will eventually have regular .Net projects in the solution too. I don't believe it should impact my issue though.

So, my question is - why does selecting this new option not result in artifacts being created after my build?

I'm using ASP.Net Core 2.1

Thanks very much,

  1. Support Staff 1 Posted by Ilya Finkelshte... on 30 Oct, 2018 10:33 PM

    Ilya Finkelshteyn's Avatar

    Hi Ben,

    Apparently we regressed this functionality. Filed this issue. Will deploy fix asap, by the end of the week or so (cannot give exact date right now).

    However the way you package artifacts should not affect problems with locked files on the Azure server. Let us try to understand this problem. I assume you are deploying to Azure App Service. How do you deploy? With Web Deploy or Zip push? Your build configuration in YAML format will not hurt too.


  2. 2 Posted by Ben Liebert on 30 Oct, 2018 10:41 PM

    Ben Liebert's Avatar

    Thanks Ilya, please keep me posted as to when the fix is in place.

    I started with YAML, but the simplicity of your UI is more attractive :)

    Yes, the locked files will be unrelated - definitely an Azure thing I'm
    sure. I'm using Web Deploy. It's all just new so I'll wait until I've got
    AV going with your update and then I'll work on the locked files if they
    still persist.

    Appreciate the quick feedback - Ben

  3. Support Staff 3 Posted by Ilya Finkelshte... on 30 Oct, 2018 11:15 PM

    Ilya Finkelshteyn's Avatar

    Welcome :) You can send configuration in YAML format, by exporting UI config with Export YAML button. But this maybe not needed now, because I strongly recommend using Zip Push deploy, It was designed to address most of Web Deploy issues with Azure App Service. If you do not have strict dependency on it like particularization, nothing should stop you from switching to Zip Push.

  4. Ilya Finkelshteyn closed this discussion on 31 Dec, 2018 09:00 PM.

  5. Ilya Finkelshteyn re-opened this discussion on 08 Mar, 2019 02:26 AM

  6. Support Staff 4 Posted by Ilya Finkelshte... on 08 Mar, 2019 02:26 AM

    Ilya Finkelshteyn's Avatar
  7. Ilya Finkelshteyn closed this discussion on 08 Mar, 2019 02:26 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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