Having been wanting to learn about VB.NET I decided to code a project to help me learn. The project is a Interactive Fiction game, formally known as text adventures, in which the player enters commands, such as north, take lamp or i (shows objects that are held).
I have included the source code in an attachment, without the executable compiled file. The program needs four .xml files to run, which are in the folder containing the code. I have coded a path that compiles and runs for these four files, in the file program.vb . There is a solution file which works ok on my version of Visual Studio. It may be necessary to modify program.vb to put in the correct paths to the .xml files so that they can load.
Features of the code are the use of .xml files to hold data, LINQ to query the xml files, and a simple version of the singleton design pattern. I have not coded any error handling.
Used to get this a lot, these days I tend to just use LF, rather than CRLF, and after adding a .editorconfig file to set the line ending the problem mostly went away. In the end I think I also needed to adjust some git configuration to stop it constantly converting files back to CRLF