Compile & Package .NET Core

msellers's Avatar

msellers

03 Apr, 2017 10:36 PM

Do you have any suggested tutorials, or instructions on how to get an ASP.NET Core project to compile & package?

  1. 1 Posted by Ilya Finkelshte... on 03 Apr, 2017 11:44 PM

    Ilya Finkelshteyn's Avatar

    Our ultimate goal is to adjust AppVeyor for .NET Core and ASP.NET Core so it works without any scripting (GH issue we working on). But for now you have to manually call at least dotnet restore and dotnet publish. Please check this sample configuration.
    Sorry for inconvenience, please ping us with any specific problem you hit while tuning it.

    Ilya.

  2. 2 Posted by msellers on 04 Apr, 2017 04:46 AM

    msellers's Avatar

    Been playing with this a bit tonight, but have a few issues.

    1.) Getting it to run my unit tests.

    2.) Getting a proper publish package for artifacts.

    Using project "

    FlightFiles .NET Core" in my account

    Mitchel Sellers
    Microsoft MVP, ASPInsider, DNN MVP
    CEO/Director of Development
    IowaComputerGurus, Inc.

    Office: (515) 270-7063
    Cell: (515) 707-3629
    Fax: (866) 591-3679
    ________________________________

  3. 3 Posted by Ilya Finkelshte... on 04 Apr, 2017 05:30 AM

    Ilya Finkelshteyn's Avatar

    1.) Use dotnet test and upload xml results. Here you need to ensure that test results are uploaded even when tests failed, but build still fails if tests failed. This was discussed today in this thread.

    2.) As you see in this sample I set %appveyor_build_folder%\dist as output for dotnet publish and then package it as artifact.

  4. 4 Posted by msellers on 04 Apr, 2017 06:22 AM

    msellers's Avatar

    This is getting me closer.

    It looks like I am going to have to add something similar to the following to run tests for each project?

    dotnet test %appveyor_build_folder%\FlightFiles.Data.Tests\FlightFiles.Data.Tests.csproj

    The only issue I'm having right now, is I cannot get a true "Web Ready" publish working.

    Mitchel Sellers
    Microsoft MVP, ASPInsider, DNN MVP
    CEO/Director of Development
    IowaComputerGurus, Inc.

    Office: (515) 270-7063
    Cell: (515) 707-3629
    Fax: (866) 591-3679
    ________________________________

  5. 5 Posted by Ilya Finkelshte... on 04 Apr, 2017 06:39 AM

    Ilya Finkelshteyn's Avatar

    What specific problem do you have? Does deployment process fails?

  6. 6 Posted by msellers on 04 Apr, 2017 07:26 AM

    msellers's Avatar

    I think I have it figured out now.

    There were multiple problems, the root cause being that the artifact packaging process I was using made it look like it wasn't successful, when in fact it was successful.

    ________________________________

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:16 AM.

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

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