G
Guest
I have read in one article that when we compile the application in release
mode, all the debug classes and properties will be automatically removed from
the code. I tried to implement this thing by using the following code in
Page_Load event handler.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim intcount As Integer
intcount = 0
For intcount = 0 To 4
Response.Write(intcount)
Debug.Assert(intcount = 3, "Yes it is 3.")
Next
End Sub
I have selected "Release" in the solution cofiguartions dropdown list and
compiled the application. The statement " Debug.Assert(intcount = 3, "Yes it
is 3.") " is not removed from the code. I have closed the solution and opened
the solution. Even then also the statement is not removed. What we have to do
if the statement has to be removed automatically?
Any help most welcome.
Regards
G.V.Srinivasa Rao.
mode, all the debug classes and properties will be automatically removed from
the code. I tried to implement this thing by using the following code in
Page_Load event handler.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim intcount As Integer
intcount = 0
For intcount = 0 To 4
Response.Write(intcount)
Debug.Assert(intcount = 3, "Yes it is 3.")
Next
End Sub
I have selected "Release" in the solution cofiguartions dropdown list and
compiled the application. The statement " Debug.Assert(intcount = 3, "Yes it
is 3.") " is not removed from the code. I have closed the solution and opened
the solution. Even then also the statement is not removed. What we have to do
if the statement has to be removed automatically?
Any help most welcome.
Regards
G.V.Srinivasa Rao.