Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Copying files with custom build action
ddewinter
#1 Posted : Tuesday, May 28, 2013 4:11:06 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/6/2012(UTC)
Posts: 2

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
#2 Posted : Tuesday, May 28, 2013 10:33:28 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download