-
Notifications
You must be signed in to change notification settings - Fork 979
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
[question] MSBuild helper and conanbuildinfo.props versus conan_build.props #7805
Comments
HI, Michael. A) The information about the Visual Studio integration was moved: https://docs.conan.io/en/latest/integrations/build_system/msbuild.html#msbuild-integration |
Thanks for your responses!
I know they're separate, but I guess I assumed there might be a little integration, e.g. if I use the
Is there no way to use something like:
to properly utilize Conan for both in- and out-of-cache builds? |
Note that I consider |
Ah, good point. Strangely, it turns out
and here's the error for
In both cases I can confirm it's setting the right directory for |
Very well could be. Unfortunately, right now I can't try to reproduce the behaviour on different VS versions. If the behaviour doesn't work on older versions of Visual Studio - Conan at the very least should detect it and print a better error. |
Closing this ticket as outdated, this |
Apologies for the newb questions (A) through (E) below -- usually I use the
cmake
generator, but recently I've had to work on a project which uses thevisual_studio
generator.(A) Can I confirm the
MSBuild
Conan helper does not automagically inject the generatedconanbuildinfo.props
for you?Older documentation such as https://docs.conan.io/en/1.8/integrations/visual_studio.html provides steps for how to explicitly add the generated
conanbuildinfo.props
using the Visual Studio GUI, but the latest version https://docs.conan.io/en/latest/integrations/ide/visual_studio.html of the docs no longer shows this.The documentation in https://docs.conan.io/en/latest/reference/build_helpers/visual_studio.html doesn't seem explicitly clear that I must do this myself.
(B) If I must add
conanbuildinfo.props
manually to my VS build config, is there a best practice for which kind of file to importconanbuildinfo.props
into, e.g. which of.sln
,.vcxproj
or some associated.props
file?In some cases I've seen stuff like:
(C) What is the best practice way to reference possible
conanbuildinfo.props
locations to work with both amkdir build && cd build && conan install .. && conan build ..
local build workflow as well as aconan create .
workflow?It seems like the
MSBuild
Conan helper does automatically injectconan_build.props
into my build:(D) Why does
MSBuild
injectconan_build.props
but notconanbuildinfo.props
?Finally, (E) can I use something like
user_property_file_name
to pass in the generatedconanbuildinfo.props
explicitly in myMSBuild.build()
command, instead of modifying my VS config files?The text was updated successfully, but these errors were encountered: