You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updating past release 6.4.0, lose AddTestAuthorization & System.MissingFieldException: Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.
#29
Open
NTC-THSTO opened this issue
Sep 18, 2024
· 1 comment
ctx.Services.AddTestAuthorization(); // Cannot resolve symbol 'AddTestAuthorization'
trial and error shows that we lose that reference between 6.4.0 & 6.5.0.
Using 6.4.0 we get:
System.MissingFieldException: Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.
System.MissingFieldException
Field not found: 'Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame.FrameType'.
at Bunit.Rendering.TestRenderer.GetComponent[TComponent](Int32 rootComponentId)
at Bunit.Rendering.TestRenderer.FindComponent[TComponent](Int32 parentComponentId)
at Bunit.Rendering.TestRenderer.RenderComponent[TComponent](IEnumerable`1 parameters)
at Bunit.TestContext.RenderComponent[TComponent](Action`1 parameterBuilder)
at Tdt.Web.Tests.IndexTests.Index_UnauthorisedUser_ComponentRendersCorrectly() in C:\work\repos\DCC\New folder (3) - Copy\src\TestDataTool\Web\Tdt.Web.Tests\IndexTests.cs:line 45
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Which I have noticed has been reported before on this github section I am no C# wizard. If this is a developer error, I apologise though any suggestions would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
using Bunit
Trying to update the project to .net 8
Finding that with latest release:
makes our tests reference unresolvable:
trial and error shows that we lose that reference between
6.4.0
&6.5.0
.Using 6.4.0 we get:
using the following versioning:
Which I have noticed has been reported before on this github section I am no C# wizard. If this is a developer error, I apologise though any suggestions would be greatly appreciated.
The text was updated successfully, but these errors were encountered: