Posts

Showing posts from January 27, 2019

XML Literals in VB.NET Code don't seem work with #if statements

Image
up vote -1 down vote favorite I have a vb.net project that uses an XML literal to configure the user interface navigation bar. The code looks something like this and has been working for many years. Private ReadOnly _actionTreeXml As XElement = <nodes> <node key="any" name="Top"> <node key="log" name="***LOGIN***" type="everybody"></node> <node key="op" name="Home" ctrl="uiHomePage" type="mfg"></node> <node key="barcode" name="Barcode Entry" ctrl="EditMfgEntry" type="mfg"></node> <node key="wip" name="Work in Progress" ctrl="QueryWIP" type="mfg"></node>