I am trying to pass an extra conditional compilation symbol through devenv (vs2010) on the command line to a C # compiler.
I know that this can be done for the C ++ compiler via environment variables. Is there something similar for C #?
Since this build run should run Code Analysis, I'm stuck using devenv to run the build, as far as I know.
You cannot specify compilation characters using the command line on devenv.exe, but you can create a separate solution configuration and access it on the command line:
devenv.exe
devenv.exe SolutionName /build SolnConfigName
" ", , vs2008, , vs2010 wilkl .
Source: https://habr.com/ru/post/1770308/More articles:Using a simple build tool for tests - scalaGetopt :: Long Pressing multiple values ββin a hash option - perlΠΠ½ΠΎΠ³ΠΎΠΌΠ΅ΡΠ½ΡΠΉ ΠΌΠ°ΡΡΠΈΠ² PHP-ΡΠΎΡΡΠΈΡΠΎΠ²ΠΊΠΈ Ρ ΠΏΠ΅ΡΠ²ΠΈΡΠ½ΡΠΌΠΈ ΠΈ Π²ΡΠΎΡΠΈΡΠ½ΡΠΌΠΈ ΠΊΠ»ΡΡΠ°ΠΌΠΈ - sortingSubquery returned more than 1 value. This does not resolve the error in AFTER INSERT, UPDATE trigger - sql-serverva_list extension portable - cAccess Requests Slower - sql-server-2008MS SQL - Uses a geometry data type to find distance significantly faster? - sql-serverPHP call forward frequency is inevitable? - pass-by-referenceΠΠ°ΠΊ Π½Π°ΡΡΡΠΎΠΈΡΡ ΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΠ΅Π»ΡΡΠΊΡΡ ΡΠ΅ΠΌΡ Π΄Π»Ρ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ .NET? - c#ΠΠ°ΠΊ ΠΏΡΠΎΡΠ»ΡΡΠΈΠ²Π°ΡΡ COM-ΡΠΎΠ±ΡΡΠΈΡ ΠΈΠ· ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ Office, ΠΊΠΎΡΠΎΡΡΠ΅ Π·Π°ΠΏΡΡΠΊΠ°Π»ΠΈΡΡ Π½Π΅Π·Π°Π²ΠΈΡΠΈΠΌΠΎ? - c++All Articles