I have a set of files in a project that have a custom build action ("AspGenFile"). I need NCrunch to copy these files to the workspace it creates for the project, but I can't figure out how best to do this. My current solution follows, but it feels hacky.
<ItemGroup Condition="'$(NCrunch)' == '1'">
<Content Include="@(AspGenFile)" />
</ItemGroup>
Any alternatives?
Thanks,
David
Remco NCrunch Developer
#4185
28 May 2013 22:33 UTC
Hi David,
The approach you have above is one of two ways you can solve this problem. The other option is to use the additional files to include configuration option. This would probably be easier as it means you don't need to modify the project file. You can also apply this configuration at solution level if you need the files accessible from all projects.
Cheers,
Remco
The approach you have above is one of two ways you can solve this problem. The other option is to use the additional files to include configuration option. This would probably be easier as it means you don't need to modify the project file. You can also apply this configuration at solution level if you need the files accessible from all projects.
Cheers,
Remco
Post a reply
Log in to reply.