Skip to content

Exception when running tests via Test Explorer #502

@marcus-cellavision

Description

@marcus-cellavision

When trying to run tests in a solution that contains C++ projects, C++ CLI projects and C# projects targeting both Core and .NET Framework, I cannot run unit tests if the extension is enabled. I can see the following stacktrace:

=====================
31/03/2025 12:16:00
Recoverable
System.AggregateException: One or more errors occurred.
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at FineCodeCoverage.Core.MsTestPlatform.TestingPlatform.DisableTestingPlatformServerCapabilityGlobalPropertiesProvider.<IsTUnitAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at FineCodeCoverage.Core.MsTestPlatform.TestingPlatform.DisableTestingPlatformServerCapabilityGlobalPropertiesProvider.<GetGlobalPropertiesAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.Build.StaticGlobalPropertiesProviderBase.<<Initialize>b__10_0>d.MoveNext()
<--- (Inner Exception #0) 
===================
31/03/2025 12:16:02
Recoverable
System.AggregateException: One or more errors occurred.
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at FineCodeCoverage.Core.MsTestPlatform.TestingPlatform.DisableTestingPlatformServerCapabilityGlobalPropertiesProvider.<IsTUnitAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at FineCodeCoverage.Core.MsTestPlatform.TestingPlatform.DisableTestingPlatformServerCapabilityGlobalPropertiesProvider.<GetGlobalPropertiesAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.Build.StaticGlobalPropertiesProviderBase.<<Initialize>b__10_0>d.MoveNext()
<--- (Inner Exception #0) 
===================
31/03/2025 12:16:02
LimitedFunctionality
System.AggregateException: Project system data flow 'DynamicOrderPrecedenceDataSourceImporter`3: 19328787' closed because of an exception.
Object reference not set to an instance of an object.
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at FineCodeCoverage.Core.MsTestPlatform.TestingPlatform.DisableTestingPlatformServerCapabilityGlobalPropertiesProvider.<IsTUnitAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at FineCodeCoverage.Core.MsTestPlatform.TestingPlatform.DisableTestingPlatformServerCapabilityGlobalPropertiesProvider.<GetGlobalPropertiesAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.ProjectSystem.Build.StaticGlobalPropertiesProviderBase.<<Initialize>b__10_0>d.MoveNext()
<--- (Inner Exception #0) 
===================

I'm using Visual Studio 2022 Enterprise v 17.13.4. If I can do something to get more info let me know. I'm using FCC version 1.1.239.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions