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

Notification

Icon
Error

NCrunch build fails when WPF project has a SplashScreen image.
moosey
#1 Posted : Friday, November 25, 2011 10:41:31 AM(UTC)
Rank: Member

Groups: Registered
Joined: 9/6/2011(UTC)
Posts: 12

Was thanked: 2 time(s) in 2 post(s)
When an image is added to a WPF project and its BuildAction is set to "SplashScreen", NCrunch fails to build. See steps below for how to repeat the problem. (Present in 1.35.0.16b).

1. Create a WPF application project.
2. Create a test project for it.
3. Enable NCrunch for the solution - verify that NCrunch builds and marks everything as "OK".
4. Add an image to the WPF application project and set the BuildAction to "SplashScreen".
5. NCrunch will have a build error, saying something like the following:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFX.targets (711): File 'SplashScreen.png' cannot be found.
Remco
#2 Posted : Friday, November 25, 2011 7:16:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Moosey,

It looks like the image file is included in your project file implicitly or using a syntax that NCrunch isn't familiar with.

Would you be able to copy/paste the part of the .proj file that specifies the image? I'll then ensure the next NCrunch build picks it up automatically.

Meanwhile, you can solve this problem by adding the file to the AdditionalFilesToInclude configuration option. Have a look at https://www.ncrunch.net/documentation/troubleshooting_project-build-issues.
moosey
#3 Posted : Friday, November 25, 2011 7:47:23 PM(UTC)
Rank: Member

Groups: Registered
Joined: 9/6/2011(UTC)
Posts: 12

Was thanked: 2 time(s) in 2 post(s)
Sure, I'm away from my typewriter this weekend, but I'll give you the details when I'm back.
moosey
#4 Posted : Saturday, November 26, 2011 9:04:11 AM(UTC)
Rank: Member

Groups: Registered
Joined: 9/6/2011(UTC)
Posts: 12

Was thanked: 2 time(s) in 2 post(s)
Hi Remco,

Here's the part from the .csproj file:

Code:
  <ItemGroup>
    <SplashScreen Include="SplashScreen.png" />
  </ItemGroup>
moosey
#5 Posted : Saturday, November 26, 2011 9:08:19 AM(UTC)
Rank: Member

Groups: Registered
Joined: 9/6/2011(UTC)
Posts: 12

Was thanked: 2 time(s) in 2 post(s)
Adding the file to the AdditionalFilesToInclude setting has provided a good workaround.

Thanks for your help.
1 user thanked moosey for this useful post.
Remco on 11/26/2011(UTC)
Remco
#6 Posted : Monday, December 19, 2011 8:11:36 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
The fix for the above problem has now been released as part of 1.36b.
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.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download