olegsych / T4Toolbox

http://olegsych.github.io/T4Toolbox
MIT License
257 stars 111 forks source link

'T4Toolbox.OutputItem' does not contain a definition for 'BuildAction' & 'BuildProperties' #22

Closed jhermoso closed 8 years ago

jhermoso commented 8 years ago

Hi, I'm migrating some templates from vs2010 to vs 2015 but now I get some errors when I try to use the old OutputInfo properties BuildAction and BuildProperties. Can you suggest me a workaround to get this function? Thanks Javier

olegsych commented 8 years ago

In T4Toolbox for VS 2015, the BuildAction property (named consistently with the Visual Studio UX terminology) was replaced with the ItemType property (named consistently with the MSBuild terminology). You can set it to any string or use the constants defined in the ItemType class, such as the ItemType.Compile or ItemType.Content. Similarly, the BuildProperties was replaced by the Metadata property. For complete details, see the OutputItem class definition.