KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
It's possible to create properties using either of these methods: <Target Name="A"> <PropertyGroup> <DogSound>Bark</DogSound> </PropertyGroup> </Target> <Target Name="B"> <CreateProperty Value="Bark"> <Output TaskParameter="Value" PropertyName="DogSound"/> </CreateProperty> </Target> But, what's the difference between the semantics of targets A and B, if anything? Thanks. Note: I'm using msbuild 3.5. I believe the PropertyGroup syntax didn't work inside a target in earlier versions of msbuild, but that was also the same with ItemGroups. CreateItem got deprecated, but CreateProperty didn't, so I'm wondering if CreateProperty still has something over using PropertyGroup, and if so, what.
Tags (comma-separated)
Save Edits
Cancel