dotnet / dotnet/msbuild

MsBuild node problem

Open
#3,671 10 comments 1 reaction 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

### Steps to reproduce

Add following nuget feed: https://ci.appveyor.com/nuget/gitversion-8nigugxjftrw

Project file
```xml


net461





```

Building from command line (msbuild, or dotnet cli) both work.
Building from VS results in an exception in the output windows:

>MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\Users\Administrator\AppData\Local\Temp\" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

The content of the MSBuild_*.failure.txt is:

> UNHANDLED EXCEPTIONS FROM PROCESS 7924:
=====================
29/08/2018 14:21:13
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.IO.BinaryWriter.Write(String value)
at Microsoft.Build.Framework.LazyFormattedBuildEventArgs.WriteToStream(BinaryWriter writer)
at Microsoft.Build.Framework.BuildWarningEventArgs.WriteToStream(BinaryWriter writer)
at Microsoft.Build.Shared.LogMessagePacketBase.WriteToStream(INodePacketTranslator translator)
at Microsoft.Build.Shared.LogMessagePacketBase.Translate(INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================

### Expected behavior

Was expecting building from VS to work, because both `dotnet build` and `msbuild` from command line works. Looking at the failure.txt file it's very hard for me to equate that to any problem with my own project, or the nuget package involved - it seems like an msbuild issue.

### Actual behavior

Error shown above.

### Environment data
`msbuild /version` output: 15.7.180.61344

OS info:

If applicable, version of the tool that invokes MSBuild (Visual Studio, dotnet CLI, etc):

Tried with VS 15.8.2, 15.8.1, 15.7.6

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.