VStudio 2015 Vcobol 2.2 IDE Settings

Visual Cobol 2.3 for Visual Studio 2015
To set environment variables at runtime we have to use Properties/Application/Environment/IDE settings

How to use environment variable in IDE settings ?

I've checked this sample COBPATH=D:\ws_mycommon\cbl;%COBPATH%;C:\temp;$COBPATH;$(COBPATH);${COBPATH} in IDE setting

But at runtime I have : COBPATH=D:\ws_mycommon\cbl;%COBPATH%;C:\temp;$COBPATH;$(COBPATH);${COBPATH}

No variables expanded.
My subroutine was found only because I have hard a coded path (d:\ws_mycommon\cbl)

Another test At runtime
COBPATH178=D:\ws_mycommon\cbl;D:\ws_mycommon\cbl; // set before to start VStudio 2015
COBPATH=D:\ws_mycommon\cbl;%COBPATH%;C:\temp;$COBPATH;$(COBPATH);${COBPATH}
COBPATHXX=%COBPATH178%;%COBPATH%

TIA.

Parents
  • There does appear to be a problem with environment variable expansion when set within the Properties-->Application-->Environment section.

    I will create a bug report for that. If you would like to open a new support incident and reference my name in the description I will ensure that the bug report is added to your incident so that you will be notified when it is fixed.

    As a workaround you could add an application.config file to the project and set the environment variables there. These appear to expand correctly. When setting them within application.config they will be set both when running the application within the IDE and outside of it.

    Thanks

Reply
  • There does appear to be a problem with environment variable expansion when set within the Properties-->Application-->Environment section.

    I will create a bug report for that. If you would like to open a new support incident and reference my name in the description I will ensure that the bug report is added to your incident so that you will be notified when it is fixed.

    As a workaround you could add an application.config file to the project and set the environment variables there. These appear to expand correctly. When setting them within application.config they will be set both when running the application within the IDE and outside of it.

    Thanks

Children
No Data