-
Notifications
You must be signed in to change notification settings - Fork 586
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
MSBuild /p:OutputPath is not being set with a trailing backlash #869
Comments
@Cawifre Is this still an issue? |
@dsyme Yes. |
I'm also facing this issue with the XamarinBuildHelpers but I think they use MSBuild in the end. I see that the xbuild command that it generates misses a trailing backspace and adding one to the command fixes my problems. Is there any known workaround for this problem? |
@meidor this is the workaround I use:
I've not used the XamarinBuildHelpers, but you may be able to use a similar technique. |
can confirm this is still an issue Fody/Fody#290 |
Fixed with #1905 in rc011 thanks to @JarnoNijboer |
As of commit 5377573, the OutputPath parameter shifted from being guaranteed to always have a trailing backslash to being guaranteed to never have a trailing backslash.
Microsoft.Common.CurrentVersion.targets expects
$(OutputPath)
and$(OutDir)
to have trailing backslashes to allow for concatenation. It attempts to make sure that a trailing backslash is added, but setting a property on the command line circumvents these attempts.This causes issue when concatenation is done to build nested paths (for instance, the default path for publishing application manifests becomes a sibling of the output directory instead of a child of the output directory).
Simply adding a single trailing backslash (e.g.
/p:OutputPath="C:\MyApp\build\"
) causes a much more serious error in which the single backslash escapes the closing quote and pulls following command line arguments into the property value.The correct command line argument for setting
$(OutputPath)
should be/p:OutputPath="C:\MyApp\build\\"
The text was updated successfully, but these errors were encountered: