diff --git a/reference/tools/env/virtualbuildenv.rst b/reference/tools/env/virtualbuildenv.rst index 75f9c3ab73bd..26318c503dda 100644 --- a/reference/tools/env/virtualbuildenv.rst +++ b/reference/tools/env/virtualbuildenv.rst @@ -67,6 +67,12 @@ will create the following files: To create ``.ps1`` files required for Powershell it is necessary to set to True the following conf: ``tools.env.virtualenv:powershell``. +.. note:: + + Disabling the automatic generation of these files for consumers can be achieved by passing ``--env-generation=false`` to the ``conan install`` command. + **This feature is experimental and subject to change**, and disabling this file can lead to unexpected build errors, + if for example ``tool_requires`` are used. Ensure they are not needed if the generation is disabled. + Reference --------- diff --git a/reference/tools/env/virtualrunenv.rst b/reference/tools/env/virtualrunenv.rst index 17882ccc6e72..54dcaa85a9a9 100644 --- a/reference/tools/env/virtualrunenv.rst +++ b/reference/tools/env/virtualrunenv.rst @@ -64,6 +64,11 @@ current active configuration, like ``deactivate_conanrunenv-release-x86_64.bat`` To create ``.ps1`` files required for Powershell it is necessary to set to True the following conf: ``tools.env.virtualenv:powershell``. +.. note:: + + Disabling the automatic generation of these files for consumers can be achieved by passing ``--env-generation=false`` to the ``conan install`` command. + **This feature is experimental and subject to change**, and disabling this file can lead to unexpected runtime errors. + Reference ---------