December 13, 2017

ED the Generated C#

MV# code transpiles to C# before turning into MSIL for running in the .NET CLR (a jargon-laden sentence). Typically that C# code is not even stored to disk unless the developer wants to look at it for educational or debugging purposes.

When the C# code is saved to the disk, then it is typical for a developer to look at it with Visual Studio, for example. However, in the case of an MVON# Azure sandbox where the TCL prompt is available, but not Windows Explorer, for example, a developer might wish to look at the C# code through TCL.

The below example shows how to create a pointer to the .cs file in the file system so that it can be opened with ED.

>ED TEST.BP TEST.SENT
2 lines long.
----: P
 
Top.
0001: TCL = @SENTENCE
0002: CRT TCL
>BASIC TEST.BP TEST.SENT (G
TEST.SENT Compiled
Source code generated in TEST.BP.Lib/src/TEST.SENT.cs

Now edit a file pointer in the VOC file as follows

>ED VOC TEST.BP.SRC
4 lines long.
----: P
 
Top.
0001: File
0002: TEST.BP.Lib\src
0003: D_TEST.BP
0004: Directory
 
>ED TEST.BP.SRC TEST.SENT.cs
77 lines long.
----: L10

Top.

0001: using System;
0002: using System.Collections.Generic;
0003: using System.Collections;
0004:
0005: using System.Text;
0006: using BasicRuntime;
0007: using HashedFile;
0008: using ExtensionMethods;
0009: using DynArray;

About dwolthuis

https://www.linkedin.com/in/dawnwolthuis

Category

Documentation, MV#, MVON#