ligershark / WebOptimizer

A bundler and minifier for ASP.NET Core
Apache License 2.0
750 stars 113 forks source link

Does not work with --no-build #303

Open MeikelLP opened 3 months ago

MeikelLP commented 3 months ago

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.