You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MSBuildDeps generates the conan_xxx_vars_debug_x64.props and conan_xxx_vars_release_x64.props files. The paths in these files are normalized and all \ are replaced with /. This works in most cases. There is one case where it does't work as expected. If there is an executable in the <ConanxxxBinaryDirectories> directory and I would like to open the application with the ShellExecuteEx an error occurred.
If I replace the / with \ in the props file, the application starts properly.
Why do you replace the \ with / in the first place? is it really needed? In all my other files, I use the \ for paths and I never faced any issue.
How to reproduce it
Drop an executable to the binary folder of any dependencies. Start the program with the following code snippet:
The paths are normalized, because they are traditionally more problematic with the \\ than with /, and most build systems like CMake actually needs / in different places.
So it is possible that the MSBuild integrations have inherited that from those other integrations.
I have tried today to avoid the replacement, and it seems most of the tests work.
I am still a bit concerned this might be breaking unexpectedly some other users, I think I'll open the PR and discuss over it.
Describe the bug
Hi All
The MSBuildDeps generates the conan_xxx_vars_debug_x64.props and conan_xxx_vars_release_x64.props files. The paths in these files are normalized and all
\
are replaced with/
. This works in most cases. There is one case where it does't work as expected. If there is an executable in the<ConanxxxBinaryDirectories>
directory and I would like to open the application with theShellExecuteEx
an error occurred.If I replace the
/
with\
in the props file, the application starts properly.Why do you replace the
\
with/
in the first place? is it really needed? In all my other files, I use the\
for paths and I never faced any issue.How to reproduce it
Drop an executable to the binary folder of any dependencies. Start the program with the following code snippet:
The text was updated successfully, but these errors were encountered: