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

Notification

Icon
Error

How do I include generated source code?
sd0000
#1 Posted : Monday, May 6, 2013 3:27:39 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/6/2013(UTC)
Posts: 1

My project relies on some source files that it generates from an included .xml file.

My project lives in MySolution\MyProject\ The generated files appear in source under ..\MySolution\Intermediate\Debug\MyProject\foo.generated.cs

In the “Additional Files To Include” settings I’ve added: ..\Intermediate\Debug\MyProject\foo.generated.cs

(I also tried adding the whole directory : ..\Intermediate\Debug\MyProject*.*)

NCrunch can’t build my project because it says one of the classes in foo.generated.cs doesn’t exist.

So what am I missing?
Remco
#2 Posted : Monday, May 6, 2013 11:07:36 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

The solution to this will depend upon the timing and manner of the generation. How are these files generated? Is this done via an automated test, or special build step? Is there a 3rd party framework involved?


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