I have an application where I would like to have two releases, one releases will have everything enabled, in the other release certain menu items will be disabled. I tried creating a new solution configuration where certain menuitems are disabled. My code is the following:
#if (SMART == true)
Download_Menu.IsEnabled = false;
ChangeLayout_Menu.IsEnabled = false;
#endif
This however breaks the program.
Given error:
An unhandled exception of type 'System.BadImageFormatException' occurred in WindowsBase.dll Additional information: Could not load file or assembly 'VirtiumStorAPIWindowsManaged, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format
This is my first time trying this so any suggestions would be great.
so if I use the following code it works in Debug mode:
#if DEBUG
Download_Menu.IsEnabled = false;
ChangeLayout_Menu.IsEnabled = false;
#endif
how would I get this working in a custom solution configuration?