WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

Does not work with --no-build

Open MeikelLP opened this issue 1 year ago • 0 comments

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. 

MeikelLP avatar Apr 05 '24 23:04 MeikelLP