Skip to main content

How Do I Get a Listing Building in Visual Studio 2017

  • July 2, 2019
  • 1 reply
  • 0 views

I am getting some inexplicable compiler diagnostics in trying to build a suite of programs as part of an Enterprise 4.0 upgrade.  It would be really helpful to see the copybooks inline, like NetExpress used to.  Is there some sort of compiler directive - and how do I set it - environment variables?


#msbuild
#EnterpriseDeveloper
#MicroFocusCOBOL

1 reply

Gael Wilson
  • Rocketeer
  • 174 replies
  • August 2, 2019

I am getting some inexplicable compiler diagnostics in trying to build a suite of programs as part of an Enterprise 4.0 upgrade.  It would be really helpful to see the copybooks inline, like NetExpress used to.  Is there some sort of compiler directive - and how do I set it - environment variables?


#msbuild
#EnterpriseDeveloper
#MicroFocusCOBOL

seggerman,

Copybooks are automatically displayed inline in Visual Studio, similar to how they were in Net Express, unless you have specifically disabled the option via Tools -> Options -> Text Editor -> Micro Focus -> Advanced -> Enable expanded copybook view. Initially the copybooks will not be expanded, there will be a triangular item in the leftmost column of the text editor and if you click on it it will expand the copybook inline in the editor window. If you want to expand or hide all of the copybooks in a program there are items in the context menu in the editor accessible by right-clicking and the items are also available in the tool bar above the editor.

If you navigate to an error and the error is in a copybook the copybook will be expanded and the position of the text cursor will be set on the appropriate line.

I hope that helps.