Created attachment 17726 [details]
Simple VB.NET project file
When trying to build a VB.NET project, I get the following output:
Building target "Build" in project "2.vbproj" ("2.vbproj").
Using task Vbc from Microsoft.Build.Tasks.Vbc, Microsoft.Build.Tasks.Core, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Task "Vbc" execution -- FAILED
Done building target "Build" in project "2.vbproj".-- FAILED
Done building target "Build" in project "2.vbproj" ("2.vbproj").
Done building project "2.vbproj".-- FAILED
Target performance summary:
19.095 ms Build 1 calls
Tasks performance summary:
10.267 ms Vbc 1 calls
This is on a very simple VB.NET project.
I added some debug output to xbuild and found that the ToolPath was not being generated correctly, which caused the failure. When I changed the Vbc task's GenerateFullPathToTool to be like the Csc task's GenerateFullPathToTool the project build correctly. I will submit a PR for this change.
I merged the PR, thank you!