Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Adding property sheet to new project with custom wizard

$
0
0

Hello,

I'm trying to build a custom wizard for new Visual Studio 2010 projects. The custom wizard will essentially create a new VC++ project and add a few of my property sheets to each configuration.

I have this working well in Visual Studio 2008. In the default.js's AddConfig I simply referenced selProj.Object.Configurations("Debug|Win32"), then set the InheritedPropertySheets field to the property sheet. I did the same for Configurations("Release|Win32").

With 2010, however, the InheritedPropertySheets field is deprecated. Trying to get or set this field results in an exception. It appears the new way is to call AddPropertySheet method on the VCConfiguration object I get back when I use selProject.Object.Configurations("Debug|Win32"). However, when I try to do that I get the error "Variable uses an Automation type not supported in JScript".

One thing I've noticed is that if I look at the VCConfiguration's PropertySheets property (there are 3 items, which are the standard property sheets VS includes), I can call AddPropertySheet on those. Doing so would add the property sheet reference to the standard property sheets that VS includes, not to the project configuration.

Any ideas?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>