Skip to content

Fix Pipeline failing on Windows / .NET Framework #2729

Description

@thomhurst

Unhandled exception: ModularPipelines.Exceptions.ModuleFailedException: The module RunAssertionsTestsModule has failed.

The Sub-Module net472 has failed.
---> ModularPipelines.Exceptions.SubModuleFailedException: The Sub-Module net472 has failed.
---> ModularPipelines.Exceptions.CommandException:
Input: dotnet run --configuration Release --framework net472 --no-build --fail-fast

Error: Unobserved task exception: System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> TUnit.Assertions.Exceptions.AssertionException: Expected to not be null

but it was

at Assert.That(UNKNOWN)
at TUnit.Assertions.AssertionBuilders.AssertionBuilder.d__22.MoveNext() in //TUnit.Assertions/AssertionBuilders/AssertionBuilder.cs:line 175
--- 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 TUnit.Assertions.AssertionBuilders.InvokableAssertionBuilder1.<ProcessAssertionsAsync>d__21.MoveNext() in /
/TUnit.Assertions/AssertionBuilders/InvokableAssertionBuilder.cs:line 25
--- 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 TUnit.Assertions.AssertConditions.Interfaces.ConvertedValueSource`2.d__15.MoveNext() in /_/TUnit.Assertions/AssertConditions/Interfaces/ConvertedValueSource.cs:line 44
--- End of inner exception stack trace ---
---> (Inner Exception #0) TUnit.Assertions.Exceptions.AssertionException: Expected to not be null

but it was

at Assert.That(UNKNOWN)
at TUnit.Assertions.AssertionBuilders.AssertionBuilder.d__22.MoveNext() in //TUnit.Assertions/AssertionBuilders/AssertionBuilder.cs:line 175
--- 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 TUnit.Assertions.AssertionBuilders.InvokableAssertionBuilder1.<ProcessAssertionsAsync>d__21.MoveNext() in /
/TUnit.Assertions/AssertionBuilders/InvokableAssertionBuilder.cs:line 25
--- 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 TUnit.Assertions.AssertConditions.Interfaces.ConvertedValueSource`2.d__15.MoveNext() in /_/TUnit.Assertions/AssertConditions/Interfaces/ConvertedValueSource.cs:line 44<---

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions