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

Notification

Icon
Error

Avalonia Build Failure -- InitializeComponent
kpspence
#1 Posted : Thursday, September 7, 2023 1:59:18 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/18/2022(UTC)
Posts: 5
Location: United States of America

Was thanked: 2 time(s) in 2 post(s)
I cannot figure out why this project builds and runs fine in visual studio but fails to build in ncrunch. Below are the only logs:

NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/d...ng_project-build-issues

Views\MainView.axaml.cs (9, 9): The name 'InitializeComponent' does not exist in the current context
Remco
#2 Posted : Thursday, September 7, 2023 7:31:24 AM(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.

We haven't put in place any integration with Avalonia. My best guess would be that this is being caused by a malfunctioning build step or a file that isn't being picked up by NCrunch.

Could you try compatibility mode and let me know if this makes any difference for you?

kpspence
#3 Posted : Thursday, September 7, 2023 1:17:08 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/18/2022(UTC)
Posts: 5
Location: United States of America

Was thanked: 2 time(s) in 2 post(s)
Unfortunately, the compatibility mode settings did not make any difference.

However, I did find that the root cause is that the .axaml files are not being copied to the ncrunch build folder. I manually added **.axaml files it works.
1 user thanked kpspence for this useful post.
Remco on 9/7/2023(UTC)
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.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download