Lenon
Lenon
CC#
Created by Lenon on 5/20/2024 in #help
.resx does not properly generate Design-File
My .csproj looks like:
<ItemGroup>
<EmbeddedResource Update="Resources\ErrorResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources\ErrorResources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>ErrorResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
But the generated code is just
/// <summary>
/// Looks up a localized string similar to Failed to update the database {0}.
/// </summary>
internal static string DatabaseUpdateFailure {
get {
return ResourceManager.GetString("DatabaseUpdateFailure", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to update the database {0}.
/// </summary>
internal static string DatabaseUpdateFailure {
get {
return ResourceManager.GetString("DatabaseUpdateFailure", resourceCulture);
}
}
2 replies