H
holtry4
Guest
My code fails to compile using both command line and in VS 2017 itself. I've reinstalled VS and MSBuild, and rebooted the PC.
Curiously, I've also sent a copy of the project to my peer, and it copmpiles without error.
The errors don't tell me much:
Task host node exited prematurely. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt
The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.
Within the MSBuild*.failure.txt:
UNHANDLED EXCEPTIONS FROM PROCESS 10488:
=====================
5/29/2019 11:29:47 AM
System.TypeInitializationException: The type initializer for 'Microsoft.Build.OpportunisticIntern' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance()
at Microsoft.Build.Utilities.Traits.get_Instance()
at Microsoft.Build.OpportunisticIntern..cctor()
--- End of inner exception stack trace ---
at Microsoft.Build.OpportunisticIntern.CharArrayToString(Char[] candidate, Int32 count)
at Microsoft.Build.InterningBinaryReader.ReadString()
at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketReadTranslator.Translate(String& value)
at Microsoft.Build.BackEnd.TaskHostConfiguration.Translate(INodePacketTranslator translator)
at Microsoft.Build.BackEnd.TaskHostConfiguration.FactoryForDeserialization(INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodePacketFactory.PacketFactoryRecord.DeserializeAndRoutePacket(Int32 nodeId, INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodePacketFactory.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator translator)
at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================
5/29/2019 11:29:47 AM
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance()
at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.HandleShutdown()
at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.Run(Exception& shutdownException)
at Microsoft.Build.CommandLine.OutOfProcTaskHost.Execute()
at Microsoft.Build.CommandLine.OutOfProcTaskHost.Main()
===================
PLEASE HELP! I have no idea what to do here, or even where to begin looking. Searches didn't help either... Thanks.
Continue reading...
Curiously, I've also sent a copy of the project to my peer, and it copmpiles without error.
The errors don't tell me much:
Task host node exited prematurely. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt
The "GenerateResource" task's outputs could not be retrieved from the "FilesWritten" parameter. Object does not match target type.
Within the MSBuild*.failure.txt:
UNHANDLED EXCEPTIONS FROM PROCESS 10488:
=====================
5/29/2019 11:29:47 AM
System.TypeInitializationException: The type initializer for 'Microsoft.Build.OpportunisticIntern' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance()
at Microsoft.Build.Utilities.Traits.get_Instance()
at Microsoft.Build.OpportunisticIntern..cctor()
--- End of inner exception stack trace ---
at Microsoft.Build.OpportunisticIntern.CharArrayToString(Char[] candidate, Int32 count)
at Microsoft.Build.InterningBinaryReader.ReadString()
at Microsoft.Build.BackEnd.NodePacketTranslator.NodePacketReadTranslator.Translate(String& value)
at Microsoft.Build.BackEnd.TaskHostConfiguration.Translate(INodePacketTranslator translator)
at Microsoft.Build.BackEnd.TaskHostConfiguration.FactoryForDeserialization(INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodePacketFactory.PacketFactoryRecord.DeserializeAndRoutePacket(Int32 nodeId, INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodePacketFactory.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator translator)
at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.DeserializeAndRoutePacket(Int32 nodeId, NodePacketType packetType, INodePacketTranslator translator)
at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
===================
5/29/2019 11:29:47 AM
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance()
at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.HandleShutdown()
at Microsoft.Build.CommandLine.OutOfProcTaskHostNode.Run(Exception& shutdownException)
at Microsoft.Build.CommandLine.OutOfProcTaskHost.Execute()
at Microsoft.Build.CommandLine.OutOfProcTaskHost.Main()
===================
PLEASE HELP! I have no idea what to do here, or even where to begin looking. Searches didn't help either... Thanks.
Continue reading...