Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Getting unexpected error with example plugin #20

Open
slimshader opened this issue Aug 25, 2021 · 1 comment
Open

[BUG] Getting unexpected error with example plugin #20

slimshader opened this issue Aug 25, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@slimshader
Copy link

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 slimshader added the bug Something isn't working label Aug 25, 2021
@jeffcampbellmakesgames
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants