#If DEBUG is ignored (VB.net or C#)

前端 未结 8 1025
青春惊慌失措
青春惊慌失措 2021-02-05 13:33

I have several of these in my code which have been working fine so far:

#If DEBUG Then    
   ... some code here       
#End If     

Now, i am

8条回答
  •  北海茫月
    2021-02-05 14:13

    Did you, by any chance, tick the "Define DEBUG constant" for the Release configuration, while you were in the Project Properties / Build?

    Also make sure you are not building the project-level Debug configuration within the solution-level Release configuration (see the Configuration Manager).

提交回复
热议问题