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

Notification

Icon
Error

Maui blazor hybrid tests issue
Anish
#1 Posted : Tuesday, April 2, 2024 1:23:39 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/2/2024(UTC)
Posts: 5
Location: Russia

Thanks: 1 times
I'm working on Maui blazor hybrid app, nrucnh can't build maui project and see following trace:

Quote:
Shared\BiometricLogin.razor.css (0, 0): The scoped css file 'Shared\BiometricLogin.razor.css' was defined but no associated razor component or view was found for it.
Shared\MainLayout.razor.css (0, 0): The scoped css file 'Shared\MainLayout.razor.css' was defined but no associated razor component or view was found for it.
Shared\RedirectToLogin.razor.css (0, 0): The scoped css file 'Shared\RedirectToLogin.razor.css' was defined but no associated razor component or view was found for it.

WARNING - ..\..\..\..\..\program files\microsoft visual studio\2022\community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets (2382, 5): MSB3277: Found conflicts between different versions of "WindowsBase" that could not be resolved.
There was a conflict between "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "WindowsBase, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".
"WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" was chosen because it was primary and "WindowsBase, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" was not.
References which depend on "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" [C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.14\ref\net7.0\WindowsBase.dll].
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.14\ref\net7.0\WindowsBase.dll
Project file item includes which caused reference "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.14\ref\net7.0\WindowsBase.dll".
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\7.0.14\ref/net7.0/WindowsBase.dll
References which depend on "WindowsBase, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" [].
C:\Users\пк\.nuget\packages\microsoft.web.webview2\1.0.864.35\lib\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll
Project file item includes which caused reference "C:\Users\пк\.nuget\packages\microsoft.web.webview2\1.0.864.35\lib\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll".
C:\Users\пк\.nuget\packages\microsoft.web.webview2\1.0.864.35\lib\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll
C:\Users\пк\.nuget\packages\syncfusion.licensing\21.2.10\lib\net7.0-windows7.0\Syncfusion.Licensing.dll
Project file item includes which caused reference "C:\Users\пк\.nuget\packages\syncfusion.licensing\21.2.10\lib\net7.0-windows7.0\Syncfusion.Licensing.dll".
C:\Users\пк\.nuget\packages\syncfusion.licensing\21.2.10\lib\net7.0-windows7.0\Syncfusion.Licensing.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.core\21.2.10\lib\net7.0\Syncfusion.Blazor.Core.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.buttons\21.2.10\lib\net7.0\Syncfusion.Blazor.Buttons.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.calendars\21.2.10\lib\net7.0\Syncfusion.Blazor.Calendars.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.cards\21.2.10\lib\net7.0\Syncfusion.Blazor.Cards.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.charts\21.2.10\lib\net7.0\Syncfusion.Blazor.Charts.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.data\21.2.10\lib\net7.0\Syncfusion.Blazor.Data.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.datavizcommon\21.2.10\lib\net7.0\Syncfusion.Blazor.DataVizCommon.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.dropdowns\21.2.10\lib\net7.0\Syncfusion.Blazor.DropDowns.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.grid\21.2.10\lib\net7.0\Syncfusion.Blazor.Grids.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.inputs\21.2.10\lib\net7.0\Syncfusion.Blazor.Inputs.dll
C:\Users\пк\AppData\Local\NCrunch\30572\6\App.UI.Components\bin\Debug\net7.0\App.UI.Components.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.layouts\21.2.10\lib\net7.0\Syncfusion.Blazor.Layouts.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.lists\21.2.10\lib\net7.0\Syncfusion.Blazor.Lists.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.navigations\21.2.10\lib\net7.0\Syncfusion.Blazor.Navigations.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.notifications\21.2.10\lib\net7.0\Syncfusion.Blazor.Notifications.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.pivottable\21.2.10\lib\net7.0\Syncfusion.Blazor.PivotView.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.popups\21.2.10\lib\net7.0\Syncfusion.Blazor.Popups.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.spinner\21.2.10\lib\net7.0\Syncfusion.Blazor.Spinner.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.splitbuttons\21.2.10\lib\net7.0\Syncfusion.Blazor.SplitButtons.dll
C:\Users\пк\.nuget\packages\syncfusion.blazor.treegrid\21.2.10\lib\net7.0\Syncfusion.Blazor.TreeGrid.dll


there is everything fine with files it works on all devices, but not with ncrunch, is there any workaround this issue?
Remco
#2 Posted : Tuesday, April 2, 2024 10:55:20 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Hi, thanks for sharing this issue.

My first guess here is that there is a type of file that is required for NCrunch to build this project, and NCrunch isn't automatically copying it to the workspace when it runs the build.

Most likely it's a .razor file or something similar. If you can identify the missing files, you can use the additional files to include setting to let NCrunch know about them so that they can be included in the workspace.

Also, if you're able to let me know which file it is, I can see about adding a fix to NCrunch so it will do this automatically in future.
Anish
#3 Posted : Thursday, April 4, 2024 10:53:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/2/2024(UTC)
Posts: 5
Location: Russia

Thanks: 1 times
Remco, thanks for your reply!

I tried to add files as you adviced (see screenshot https://imgur.com/a/chPwQg9 ) but it did not help.

if i remove css files trace does not contain any errors about those files anymore but there appears new one

Quote:
MainPage.xaml (10, 44): Cannot resolve type "clr-namespace:Malue.App.UI.MAUI:Main".


is there anything else i can do?
Remco
#4 Posted : Thursday, April 4, 2024 11:02:50 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
I think there must be a range of files missing from the workspace.

Try this:
1. Wait until NCrunch has failed to build the project
2. Right click on the failed build, then choose Advanced->Browse to workspace
3. Use a diff tool (like Kdiff3) to compare this directory with the project one in your normal solution directory
4. This should highlight differences and may help to indicate which files are missing and may need to be included.
Anish
#5 Posted : Thursday, April 4, 2024 11:38:20 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/2/2024(UTC)
Posts: 5
Location: Russia

Thanks: 1 times
There are missed all razor files ( additional files does not affect at all).
Could it be related with maui project targets? if ncrunch rely on it.

And absolutly not clear what is wrong with MainPage.xaml page (
Remco
#6 Posted : Thursday, April 4, 2024 11:40:10 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Could you try the following for me?

Open your NCrunch configuration and select the MAUI project in the config tree.

Go to the 'Additional files to include' setting. Choose to edit the setting. Click the button 'Add Manually', then enter in the value: **.razor

I've managed to reproduce the issue with missing Razor files on my side and this seems to resolve it. I think the MainPage.xaml issue is related (as it doesn't occur for me when the Razor imports are fixed).

I'm also submitting a fix for NCrunch so that for future versions you won't need to include these files manually.
1 user thanked Remco for this useful post.
Anish on 4/5/2024(UTC)
Anish
#7 Posted : Friday, April 5, 2024 9:34:14 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/2/2024(UTC)
Posts: 5
Location: Russia

Thanks: 1 times
I tried it but unfortunatly it does not work for me (still shows the same trace). I added this to each target https://imgur.com/a/HQtZKFP

Thanks for including fix to future versions, when i should excpect release with this changes?
It's not critical for me don't having maui test in short term, but i need it in long term.
Remco
#8 Posted : Friday, April 5, 2024 11:31:33 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Anish
#9 Posted : Monday, April 8, 2024 11:52:43 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/2/2024(UTC)
Posts: 5
Location: Russia

Thanks: 1 times
hey, i have an issue with updating ncrunch licence key, as soon as i do it i test version that you sent me
Remco
#10 Posted : Monday, April 8, 2024 12:16:57 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Anish;17233 wrote:
hey, i have an issue with updating ncrunch licence key, as soon as i do it i test version that you sent me


Could you contact me directly through the contact form? We usually try to deal directly with people for licensing issues.
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.084 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download