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
The latest version of dotnet moved the razor source generators to Microsoft.CodeAnalysis.Razor.Compiler.dll. Due to this razor file analysis is not supported by the test framework.
Directory: C:\Program Files\dotnet\sdk\8.0.300\Sdks\Microsoft.NET.Sdk.Razor\source-generators
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 4/16/2024 9:43 AM 81448 Microsoft.AspNetCore.Razor.Utilities.Shared.dll
-a---- 4/16/2024 9:43 AM 46717 Microsoft.AspNetCore.Razor.Utilities.Shared.xml
-a---- 4/16/2024 9:43 AM 18321 Microsoft.CodeAnalysis.Razor.Compiler.deps.json
-a---- 4/16/2024 9:43 AM 1352744 Microsoft.CodeAnalysis.Razor.Compiler.dll
-a---- 11/1/2023 12:07 AM 25376 Microsoft.Extensions.ObjectPool.dll
-a---- 4/16/2024 9:39 AM 71 RazorSourceGenerator.razorencconfig
-a---- 10/31/2023 2:01 PM 252680 System.Collections.Immutable.dll
Now the test fail with:
Expected compilation.Compilation.SyntaxTrees to contain a single item, but the collection is empty.
at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message)
at FluentAssertions.Collections.GenericCollectionAssertions`3.ContainSingle(String because, Object[] becauseArgs)
at SonarAnalyzer.Test.TestFramework.Tests.Verification.VerifierTest.Compile_Cshtml_Snippet() in C:\src\work\sonar-dotnet\analyzers\tests\SonarAnalyzer.TestFramework.Test\Verification\VerifierTest.cs:line 295
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
The text was updated successfully, but these errors were encountered:
Description
The latest version of dotnet moved the razor source generators to
Microsoft.CodeAnalysis.Razor.Compiler.dll
. Due to this razor file analysis is not supported by the test framework.Before:
after:
Now the test fail with:
The text was updated successfully, but these errors were encountered: