Hi,
I'm using a custom template to add a resource file to a csproj. The resource files are simply
literal lpt templates - what is in the lpt is the file content.
So when I run the CodeGen I get 2 files output:
Resources\Messages.Designer.cs
Resource\Messages.resx
The issue I have it that the Compile entry in the csproj file does not produce the necessary Xml as shown below:
Required csproj entry
<ItemGroup>
<Compile Include="Resources\Messages.Designer.cs">
<DependentUpon>Messages.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Messages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Messages.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
Actual result in csproj file
<ItemGroup>
<Compile Include="Resources\Messages.resx">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="Resources\Messages.resx">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Messages.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Messages.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
How do you ensure the correct csproj file entry by excluding the <Compile Include="Resources\Messages.resx"> entry
? Thank you. Using LLBLGENPRO 3.5 Final version.