-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet publish can't find resource files #10541
Comments
Sorry, turns out the file wasn't there, was in a side-by-side directory tree... Closing. |
hi @benmccallum |
Sorry @boris-tarasov-maersk , this was a long time ago! I think the path to the resource file in the csproj was probably wrong. Good luck! |
In a docker container I'm trying to do a
dotnet publish
on one of my projects, but the build says a resource file that needs to be embedded can't be found. I've confirmed it exists (docker COPY commanding my whole source root andls -alR
says it's there too.Works with a VS 2019 build, so seems to be an issue with
dotnet publish
/ MSBuild used bydotnet publish
in this context.I've taken a look at #8239 but not sure if it's 100% related.
Steps to reproduce
I may need to work up an isolated repro, but basically:
mcr.microsoft.com/dotnet/core/sdk:2.2
that should publish the appExpected behavior
Publish would complete.
Actual behavior
Publish fails.
Environment data
I'm inside a docker container based on the image:
mcr.microsoft.com/dotnet/core/sdk:2.2
dotnet --info
output:The text was updated successfully, but these errors were encountered: