Where can I define compilation conditional constants for Delphi Prism?

I just ported a web service from Delphi.NET 2006 to Delphi Prism 2009 (works in Visual Studio 2008 IDE). But I cannot find where I should set (or cancel) the compilation conditional constants!

Am I blind, was this parameter missing or is it simply not supported in VS?

[edit: thanks Mohammed Nasman for the link] MSDN tells me to install them using Project Designer. Firstly, it took me a while to realize that the Project menu only appears when a solution is selected (and not a web service project). Then there is still no way to set compilation conditional constants in Designer Design!

I just can't find a way to get to Project Settings in an ASP.NET project ... Is this really not possible?

+4
source share
2 answers

If you right-click on the project node (any project, not just Delphi Prism) in the solution explorer, and then click the "Properties" button in the context menu, the "Project Settings" tab should appear in the text editor panel, click the build tab, it should be the third tab down on the left side. The first text block that appears on this page should be marked as "Conditional compilation characters." It should already contain the characters: "DEBUG; TRACE". You can add your own characters.

You can also go to the “Project Properties” tab by selecting the project node in the solution explorer, and then clicking on the left button of the toolbar in the solution explorer window.

+2
source

All Articles