Reputation: 478
I'm facing a strange issue I have created a brand new xamarin forms project and i'm trying to adding Resource file in the shared project but when i add the Resource file then .resx extenshion file is created Like AppResources.resx creates but the code behind like AppResource.designer.cs not creating
Things that i have tried.
Upvotes: 1
Views: 698
Reputation: 21263
To manually fix the csproj, so it generates AppResources.designer.cs
from AppResources.resx
, follow these steps:
AppResources.designer.cs
or AppResources.resx
. <ItemGroup>
<Compile Update="Resx\AppResources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AppResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resx\AppResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>AppResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
Upvotes: 1