I have a project in Xamarin, and my .designer.cs file is no longer nested under its .cs file which is causing compilation errors. Is there a way of associating them again so that I can compile my project? See below picture (ListHeader vs ListTableView).
Edit your project file and try this:
<Compile Include="ListHeader.cs" />
<Compile Include="ListHeader.designer.cs">
<DependentUpon>ListHeader.cs</DependentUpon>
</Compile>
Both files should be flagged as Build Action / Compile
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With