Build/Test Issues

Avalonia Build Failure -- InitializeComponent

Started by kpspence on 1,742 views

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/documentation/troubleshooting_project-build-issues

Views\MainView.axaml.cs (9, 9): The name 'InitializeComponent' does not exist in the current context
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?

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.

Post a reply

Log in to reply.