-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[VS / MSBuild 17.13]: Files with build action None and CopyToOutputDirectory are no longer copied #11442
Comments
Possibly related? #11052 |
Whatever value I try for |
Yes, this is completely broken. I also updated and ran into the same issue. None of the appsettings files or other static files are copied to output. I had to change from "none" to "content" for it to work. |
Would anyone here be able to provide binlogs of their case? Details on sharing binary logs More information on binary logs |
I've attached an example / a repo above. Isn't that enough already? |
@JanKrivanek I've provided the msbuild binlogs through report a problem, but it hardly looks to be privately with MS. Was I supposed to select something I missed? Also, I do not have a parentheses in my path as reported in the original issue but I am still impacted. I do have an @ sign, not sure if that matters or not. |
I can confirm my (To clarify, failing as in the file was silently not copying to output with no error message) |
@YuliiaKovalova Nice :) Thanks for letting me know. I'm going to try it once it's available |
Issue Description
I updated my local visual studio from
17.12.4
to17.13.0
. Since then my local build inside visual studio or directly using msbuild is broken. Files with build actionNone
andCopyToOutputDirectory=Always
are no longer copied to it's target path. They are simply missing. I was already able to see whats causing all this. It's a simple brace in my path. I made a sample app for this. Take a look at this:https://github.com/Mik4sa/msbuild-brace-in-path-error
Steps to Reproduce
To reproduce open the
Developer Command Prompt for VS 2022
for example and execute the following command inside the cloned repo:MSBuild.exe ConsoleApp2.sln -t:Build -p:Configuration=Release -v:quiet -m /restore
Check this file for the diagnostic output of that command (in german): diag-log.txt
Expected Behavior
The files should be copied to the output directory.
Actual Behavior
No file is copied to the output directory.
Analysis
As noted above the brace
(
in the path is causing this.Versions & Configurations
17.13.9.7704
The text was updated successfully, but these errors were encountered: