A coworker just found a problem in our build scripts, our ItemGroups were not getting evaluated at the time they were actually used. After a little digging my coworker found that ItemGroups and Properties are evaluated when the msbuild file loads. So our issue was our ItemGroup referred to a directory structure that was not created until later in the msbuild file, so the ItemGroup was empty when evaluated. To get the newly created directory structure and files use the CreateItem task.
Example:
<!-- Evaluate the contents of the ClientPublishDir now --> <CreateItem Include="$(ClientPublishDir)\**\*"> <Output TaskParameter="Include" ItemName="ClickOnceFiles"/> </CreateItem>
More on this here.
Remember Me
Powered by: newtelligence dasBlog 2.1.8102.813
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
E-mail
Theme design by Jelle Druyts