Z
Z
Zakharov Alexander2015-04-20 08:39:08
visual studio
Zakharov Alexander, 2015-04-20 08:39:08

Application menu change (C#, VS) depending on Configuration Manager?

There is a form in the application. The form has a menu. There is an item on the menu. Is it possible to disable this menu item when building in production version by selecting a different build configuration (usually debug/release)? Or in some other way, so as not to manually change the application code? (While I give away the application, just making the test menu item invisible).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Arxont, 2015-04-20
@AlexZaharow

#if DEBUG
// Debug work here
#else
// Release work here
#endif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question