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 ()
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)

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


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

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!