Code generation not working
No edit summary
(Automatically adding template at the end of the page.)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
See also: [[Codegen failed]], [[Codegen Issues .net standard]]
See also: [[Codegen failed]], [[Codegen Issues .net standard]]
[[Category:Error messages]]
[[Category:Error messages]]
{{Edited|July|12|2024}}

Latest revision as of 15:28, 10 February 2024

Code Generation Not Working for One or Several Classes

The project file in Visual Studio should have dependencies defined:

<Compile Include="EcoProject1\Class1.cs" />
   <Compile Include="EcoProject1\Class1.eco.cs">
     <DependentUpon>Class1.cs</DependentUpon>
</Compile>

If this structure isn't correct, for example, due to a merge error in source control, do this to correct it:

  1. Exclude (not delete!) all the generated class code files, both the .cs and the .eco.cs files.
  2. Code generate everything again with "Ctrl + <the C# button>"

No files will be overwritten, but the correct VS structure will be regenerated.

See also: Codegen failedCodegen Issues .net standard

This page was edited 91 days ago on 02/10/2024. What links here