Skip to content

[Bug]: NRE in at Microsoft.Build.BackEnd.TargetEntry.<ExecuteTarget>d__44.MoveNext() #10180

@Evangelink

Description

@Evangelink

Issue Description

MSBUILD : error : This is an unhandled exception in MSBuild -- PLEASE UPVOTE AN EXISTING ISSUE OR FILE A NEW ONE AT https://aka.ms/msbuild/unhandled [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices
.UnitTests\MSTestAdapter.PlatformServices.UnitTests.csproj]
MSBUILD : error : System.NullReferenceException: Object reference not set to an instance of an object. [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.
UnitTests.csproj]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetEntry.d__44.MoveNext() [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.cspro
j]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.cs
proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests
.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.Platf
ormServices.UnitTests.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.csproj
]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetBuilder.d__23.MoveNext() [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTest
s.csproj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.cs
proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests
.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.Platf
ormServices.UnitTests.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.csproj
]
MSBUILD : error : at Microsoft.Build.BackEnd.TargetBuilder.d__10.MoveNext() [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.cspr
oj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.cs
proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests
.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.Platf
ormServices.UnitTests.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.csproj
]
MSBUILD : error : at Microsoft.Build.BackEnd.RequestBuilder.d__67.MoveNext() [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.csp
roj]
MSBUILD : error : --- End of stack trace from previous location where exception was thrown --- [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests.cs
proj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTests
.csproj]
MSBUILD : error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.Platf
ormServices.UnitTests.csproj]
MSBUILD : error : at Microsoft.Build.BackEnd.RequestBuilder.d__58.MoveNext() [C:\src\testfx\test\UnitTests\MSTestAdapter.PlatformServices.UnitTests\MSTestAdapter.PlatformServices.UnitTest
s.csproj]

Steps to Reproduce

Checkout microsoft/testfx#2973 and run .\Build.cmd /p:NuGetInteractive=true -pack -test -integrationTest

Expected Behavior

No error

Actual Behavior

NRE

Analysis

No response

Versions & Configurations

No response

Metadata

Metadata

Assignees

Labels

Priority:1Work that is critical for the release, but we could probably ship withoutbugtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions