C#C
C#3y ago
adc90

❔ Issues separating build artifacts in dev ops

I'm having trouble packaging some artificats in dev ops, I have an IO and an Presntation project. The presentation layer keeps being coppied into the API collateral as well as separately

MainProject.sln
  • Model_Library.csproj
  • StaticUtilities.csproj
  • BlazorServerApp.csproj
  • APIWorkerForBlazorServerApp.csproj
Desired goal
  • Artifacts
    Presentation/
    BlazorServerApp.dll
    Resources
    wwwwroot, etc
    API/
    APIWorkerForBlazorServerApp.dll
    Resources
Actual Outcome
  • Artifacts
    Presentation/
    BlazorServerApp.dll
    Resources
    wwwwroot, etc
    API/
    APIWorkerForBlazorServerApp.dll
    Resources
    Presentation/
    BlazorServerApp.dll
    Resources
    wwwwroot, etc
Build steps are
.NET CORE: Restore

Build API
.NET CORE: Publish to artificat directory
ASP Publish to file location
rx/API

Build Presentation
.NET CORE: Publish to artificat directory
ASP Publish to file location
rx/Presentation

I'm thinking maybe the deploy web app step on I think publish is looking for appsettings.json so it grabs presentation collateral and shoves in inside my io collateral
Was this page helpful?