Skip to content

Does not work with --no-build #303

Open
@MeikelLP

Description

In my Dockerfile I doing a final build after

  1. restoring dependencies
  2. building the project (without restore)
  3. publishing the project (without build)

Sadly this does not work (for whatever reason) when using the WebOptimizer Build target (default)

Workaround:
Do not use --no-build

Error:

/usr/share/dotnet/sdk/7.0.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(254,5): error MSB3030: Could not copy the file "/build/src/WebApp/bin/Release/net7.0/WebApp.runtimeconfig.json" because it was not found. 

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions