0
Fixed

Documentation generation fails for Bolt binaries

Reality.Stop() 2 years ago updated by Lazlo Bonin (Lead Developer) 1 year ago 5
Probably harmless, but unnecessarily pollutes the console.   These could probably be filtered out.


Bolt Version:
2.0 alpha 2
Unity Version:
2018.3
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2
Pending Review

What's the full log below that?

Sorry!  I hadn't realized I missed that:

I'm rocking the Community edition of visual studio on this box, so the path to msbuild.exe is here:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
Fixed in Alpha

Darn Microsoft is making this hard!

MSBuild no longers registers its path in the Registry as of MSBuild 15:

https://docs.microsoft.com/en-us/visualstudio/msbuild/what-s-new-in-msbuild-15-0?view=vs-2017

And all the solutions on StackOverflow are therefore outdated:

https://stackoverflow.com/questions/328017/path-to-msbuild

Except this one!

https://stackoverflow.com/a/43623213/154502

So Bolt will now query this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7

And append this string:

MSBuild\15.0\Bin\MSBuild.exe

Hi,

I'm currently running Bolt v.1.4.3f2 on Unity 2018.3.14f1 and VS 2017 Community and running into the above problem. I just checked the registry key you mention and that points to the correct ...\Community\... location. Bolt still tries to use the wrong path though.


System.IO.FileNotFoundException: Project builder not found: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe'.
You can download the latest MSBuild from: https://aka.ms/vs/15/release/vs_buildtools.exe
at Ludiq.DocumentationGenerator.GenerateDocumentation (System.String projectPath) [0x00040] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Documentation\DocumentationGenerator.cs:27
at Ludiq.GenerateDocumentationPage+DocumentationGenerationStep.Update () [0x00028] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Windows\GenerateDocumentationWindow\GenerateDocumentationPage.cs:277

Thanks,

Mikael