|
The UIHeirarchy isn't modeled in StudioShell yet. Not sure it will be.
However, project items and their properties are. You can get the equivalent of the ProjectItem reference using the get-item cmdlet:
$item = get-item dte:\solution\projects\<projectname>\<filename>
$item.Properties | where{ $_.name -match 'buildaction' } | set-itemproperty -name "Value" -value $action
A little cumbersome at the moment. I'd like to model these project item properties as paths, the way that the general visual studio properties are available under dte:/properties. Something like:
set-item -path dte:/solution/projects/myproject/program.cs/properties/buildaction -value $action
Just haven't gotten to it.
|