Bug 44714

Summary: xbuild fails to find VB.NET compiler
Product: [Mono] Tools Reporter: Alex Earl <slide.o.mix>
Component: xbuildAssignee: Bugzilla <bugzilla>
Status: RESOLVED FIXED    
Severity: normal CC: alkpli, mono-bugs+tools
Priority: ---    
Version: 4.6.0 (C8)   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Simple VB.NET project file

Description Alex Earl 2016-09-24 15:41:54 UTC
Created attachment 17726 [details]
Simple VB.NET project file

When trying to build a VB.NET project, I get the following output:

Initial Items:
Input
	test.vb
Output
	test.exe
Building target "Build" in project "2.vbproj" ("2.vbproj").
	Target Build:
	Task "Vbc"
		Using task Vbc from Microsoft.Build.Tasks.Vbc, Microsoft.Build.Tasks.Core, Version=14.0.0.0, 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

Build FAILED.
	 0 Warning(s)



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.
Comment 1 Alex Earl 2016-09-24 19:07:22 UTC
Submitted https://github.com/mono/mono/pull/3631
Comment 2 Alexander Köplinger [MSFT] 2016-09-24 23:55:50 UTC
I merged the PR, thank you!