An API to locate MSBuild assemblies from an installed Visual Studio location. Use this to ensure that calling the MSBuild API will use the same toolset that a build from Visual Studio or msbuild.exe would.
I got this mysterious error today, and there is not enough information to know how it occurred. It only happened once. Issue happened one other time since updating to Visual Studio 2019 16.9.4
Unhandled Exception: System.TypeLoadException: The signature is incorrect.
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
at Microsoft.Build.CommandLine.MSBuildApp.Main()
Microsoft (R) Build Engine version 16.9.0+5e4b48a27 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Here is also from the Windows Event Viewer log:
Event Source: .NET Runtime, EventID: 1026, Task Code: None, Date and Time: 4/29/2021 03:03:12 PM ET
Application: MsBuild.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeLoadException
at Microsoft.Build.CommandLine.MSBuildApp.Execute(System.String)
at Microsoft.Build.CommandLine.MSBuildApp.Main()
Event Source: Applicaiton Error, EventID: 1000, Task Code: (100), Date and Time: 4/29/2021 03:03:12 PM ET
I got this mysterious error today, and there is not enough information to know how it occurred. It only happened once. Issue happened one other time since updating to Visual Studio 2019 16.9.4
Output:
Here is also from the Windows Event Viewer log:
Event Source: .NET Runtime, EventID: 1026, Task Code: None, Date and Time: 4/29/2021 03:03:12 PM ET
Event Source: Applicaiton Error, EventID: 1000, Task Code: (100), Date and Time: 4/29/2021 03:03:12 PM ET