Code generation not working
(Created page with " ==== Code generation not working for one or several classes ==== The project file in Visual Studio should have dependencies defined. <Compile Include="EcoProject1\Class1.cs...")
 
No edit summary
Line 5: Line 5:
     <Compile Include="EcoProject1\Class1.eco.cs">
     <Compile Include="EcoProject1\Class1.eco.cs">
       <DependentUpon>Class1.cs</DependentUpon>
       <DependentUpon>Class1.cs</DependentUpon>
  </Compile>
  </Compile>
If this structure isn't correct, for example due to a merge error in source control, do this to correct it.
If this structure isn't correct, for example due to a merge error in source control, do this to correct it.

Revision as of 19:27, 18 October 2019

This page was created by Lars.olofsson@mdriven.net on 2019-10-18. Last edited by Edgar on 2025-01-20.

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.