Is there a way to query the _MSC_VER visual studio preprocessor variable while building a WiX project using Votive?
We changed the locations of some files when we went to VS2010, but we still have to build under vs2008, and I'd like to do some conditional fragment includes based on what version of VS is being used, and I want to use the same source code but with a test in there like this: <?if $(env._MSC_VER) = "15.00.30729.01" ?> <?include ..\Wix Source Common\defines.vs2008.wxi?> <?else ?> <?include ..\Wix Source Common\defines.vs2010.wxi?> <?endif ?> "15.00.30729.01" is the version number of the VS2008 compiler. Unfortunately _MSC_VER is not known, and it throws an error at compile time. I see there is a WiX extension to figure out some stuff in VS like project name and paths, etc., but not the VS version (AFIK). Any suggestions? Thanks GAP -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Visual-Studio-environment-variable-testing-tp5756945p5756945.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users