Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

[BUG] Getting unexpected error with example plugin

Open slimshader opened this issue 4 years ago • 1 comments
trafficstars

Hi, I don't actually think it is related to the specific plugin (was trying to make example from Hello World Plugin) but getting:

[Error] An unexpected error occurred during code generation.
System.InvalidOperationException: No instances of MSBuild could be detected.
Try calling RegisterInstance or RegisterMSBuildPath to manually register one.

after clicking [Generate] or pasting the command directly in the command console.

I have 2 VS installations used daily with Unity - 2019 and 2022 Preview so maybe that is causing the problem?

btw: plugin example code from the wiki has a bug:

public string Name => nameof(ExamplePlugin);

produces error as the actual class name is ExampleCodeGeneratorPlugin and not ExamplePlugin

slimshader avatar Aug 25 '21 18:08 slimshader

Hi @slimshader .

I'd make sure that the .Net Core 3.1 SDK is installed and that it can be found in your terminal path. See here for more info.

https://github.com/jeffcampbellmakesgames/Genesis/wiki/FAQ#im-getting-an-error-that-the-dotnet-file-does-not-exist-or-that-instances-of-msbuild-could-be-detected

btw: plugin example code from the wiki has a bug:

Thanks, I've updated the wiki to use the class name.

jeffcampbellmakesgames avatar Apr 18 '22 11:04 jeffcampbellmakesgames