dotnet / Scaffolding

Code generators to speed up development.
MIT License
640 stars 228 forks source link

Scaffolding fails with partial methods and lang version 9.0 #1552

Open mtutynina opened 3 years ago

mtutynina commented 3 years ago

Describe the bug

We have a project that uses a source code generator. We are trying to scaffold Identity pages with VS UI. Scaffolding interface give following error:

Error

There was an error running the selected code generator:
'Failed to compile the project in memory
C:\Users\user\project\project.Web\Managers\AccountManager.cs(64,44): error CS0752: A partial method cannot have out parameters
C:\Users\user\project\project.Web\Managers\AccountManager.cs(64,44): error CS0766: Partial methods must have a void return type

Lang Version 9.0

Further technical details

vijayrkn commented 2 years ago

@mtutynina - Can you please confirm if this is still an issue with the latest scaffolders?