Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with --no-build #303

Open
MeikelLP opened this issue Apr 5, 2024 · 0 comments
Open

Does not work with --no-build #303

MeikelLP opened this issue Apr 5, 2024 · 0 comments

Comments

@MeikelLP
Copy link
Contributor

MeikelLP commented Apr 5, 2024

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. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant