Using project environment variables

Jan 28 at 10:54 AM
Edited Jan 28 at 11:25 AM
Hi,

i want to say something like that:
new Project("MyProject",
                    new Dir(@"%ProgramFiles%\MyProject",
                        new File(
                            @"..\bin\$(var.MyProject.PlatformName)\$(var.MyProject.ConfigurationName)\MyProject.exe")));
I get : "error CNDL0150: Undefined preprocessor variable '$(var.MyProject.PlatformName)'" ?

Regards

PS: a reference to project "MyProject" was added!