This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 44714 - xbuild fails to find VB.NET compiler
Summary: xbuild fails to find VB.NET compiler
Status: RESOLVED FIXED
Alias: None
Product: Tools
Classification: Mono
Component: xbuild (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-24 15:41 UTC by Alex Earl
Modified: 2016-09-24 23:55 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Simple VB.NET project file (265 bytes, text/plain)
2016-09-24 15:41 UTC, Alex Earl
Details

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!

Note You need to log in before you can comment on or make changes to this bug.