Fix resx generator config

This commit is contained in:
Ben Olden-Cooligan 2022-07-17 12:25:44 -07:00
parent d0854fa4cc
commit 87d231a3cc
10 changed files with 82 additions and 53 deletions

View File

@ -44,6 +44,10 @@
<DependentUpon>MiscResources.resx</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Update="**/*.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>

View File

@ -19,5 +19,11 @@
<ProjectReference Include="..\NAPS2.Lib.WinForms\NAPS2.Lib.WinForms.csproj" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="**/*.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>

View File

@ -25,4 +25,10 @@
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="**/*.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>

View File

@ -364,6 +364,10 @@
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Update="**/*.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>

View File

@ -22,7 +22,7 @@ namespace NAPS2.Sdk.Tests.Images {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class BarcodeTestsData {
internal class BarcodeTestsData {
private static global::System.Resources.ResourceManager resourceMan;
@ -36,7 +36,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NAPS2.Sdk.Tests.Images.BarcodeTestsData", typeof(BarcodeTestsData).Assembly);
@ -51,7 +51,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@ -63,7 +63,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap image_upc_barcode {
internal static System.Drawing.Bitmap image_upc_barcode {
get {
object obj = ResourceManager.GetObject("image_upc_barcode", resourceCulture);
return ((System.Drawing.Bitmap)(obj));

View File

@ -22,7 +22,7 @@ namespace NAPS2.Sdk.Tests.Images {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class DeskewTestsData {
internal class DeskewTestsData {
private static global::System.Resources.ResourceManager resourceMan;
@ -36,7 +36,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NAPS2.Sdk.Tests.Images.DeskewTestsData", typeof(DeskewTestsData).Assembly);
@ -51,7 +51,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@ -63,7 +63,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap deskewed {
internal static System.Drawing.Bitmap deskewed {
get {
object obj = ResourceManager.GetObject("deskewed", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -73,7 +73,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap skewed {
internal static System.Drawing.Bitmap skewed {
get {
object obj = ResourceManager.GetObject("skewed", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -83,7 +83,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap skewed_bw {
internal static System.Drawing.Bitmap skewed_bw {
get {
object obj = ResourceManager.GetObject("skewed_bw", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -93,7 +93,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap stock_cat {
internal static System.Drawing.Bitmap stock_cat {
get {
object obj = ResourceManager.GetObject("stock_cat", resourceCulture);
return ((System.Drawing.Bitmap)(obj));

View File

@ -22,21 +22,21 @@ namespace NAPS2.Sdk.Tests.Images {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class TransformTestsData {
internal class TransformTestsData {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public TransformTestsData() {
internal TransformTestsData() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NAPS2.Sdk.Tests.Images.TransformTestsData", typeof(TransformTestsData).Assembly);
@ -51,7 +51,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@ -63,7 +63,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image {
internal static System.Drawing.Bitmap color_image {
get {
object obj = ResourceManager.GetObject("color_image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -73,7 +73,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_b_n300 {
internal static System.Drawing.Bitmap color_image_b_n300 {
get {
object obj = ResourceManager.GetObject("color_image_b_n300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -83,7 +83,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_b_p300 {
internal static System.Drawing.Bitmap color_image_b_p300 {
get {
object obj = ResourceManager.GetObject("color_image_b_p300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -93,7 +93,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_bw {
internal static System.Drawing.Bitmap color_image_bw {
get {
object obj = ResourceManager.GetObject("color_image_bw", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -103,7 +103,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_bw_p300 {
internal static System.Drawing.Bitmap color_image_bw_p300 {
get {
object obj = ResourceManager.GetObject("color_image_bw_p300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -113,7 +113,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_c_5_10_15_20 {
internal static System.Drawing.Bitmap color_image_c_5_10_15_20 {
get {
object obj = ResourceManager.GetObject("color_image_c_5_10_15_20", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -123,7 +123,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_c_n300 {
internal static System.Drawing.Bitmap color_image_c_n300 {
get {
object obj = ResourceManager.GetObject("color_image_c_n300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -133,7 +133,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_c_p300 {
internal static System.Drawing.Bitmap color_image_c_p300 {
get {
object obj = ResourceManager.GetObject("color_image_c_p300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -143,7 +143,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_h_n300 {
internal static System.Drawing.Bitmap color_image_h_n300 {
get {
object obj = ResourceManager.GetObject("color_image_h_n300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -153,7 +153,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_h_p300 {
internal static System.Drawing.Bitmap color_image_h_p300 {
get {
object obj = ResourceManager.GetObject("color_image_h_p300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -163,7 +163,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_r_180 {
internal static System.Drawing.Bitmap color_image_r_180 {
get {
object obj = ResourceManager.GetObject("color_image_r_180", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -173,7 +173,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_r_n45 {
internal static System.Drawing.Bitmap color_image_r_n45 {
get {
object obj = ResourceManager.GetObject("color_image_r_n45", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -183,7 +183,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_r_p46 {
internal static System.Drawing.Bitmap color_image_r_p46 {
get {
object obj = ResourceManager.GetObject("color_image_r_p46", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -193,7 +193,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_r_p90 {
internal static System.Drawing.Bitmap color_image_r_p90 {
get {
object obj = ResourceManager.GetObject("color_image_r_p90", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -203,7 +203,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_s_n300 {
internal static System.Drawing.Bitmap color_image_s_n300 {
get {
object obj = ResourceManager.GetObject("color_image_s_n300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -213,7 +213,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_s_p300 {
internal static System.Drawing.Bitmap color_image_s_p300 {
get {
object obj = ResourceManager.GetObject("color_image_s_p300", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -223,7 +223,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_sh_n1000 {
internal static System.Drawing.Bitmap color_image_sh_n1000 {
get {
object obj = ResourceManager.GetObject("color_image_sh_n1000", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -233,7 +233,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_sh_p1000 {
internal static System.Drawing.Bitmap color_image_sh_p1000 {
get {
object obj = ResourceManager.GetObject("color_image_sh_p1000", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -243,7 +243,7 @@ namespace NAPS2.Sdk.Tests.Images {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_thumb_256 {
internal static System.Drawing.Bitmap color_image_thumb_256 {
get {
object obj = ResourceManager.GetObject("color_image_thumb_256", resourceCulture);
return ((System.Drawing.Bitmap)(obj));

View File

@ -28,6 +28,15 @@
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>NAPS2.Lib.Tests</_Parameter1>
</AssemblyAttribute>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>NAPS2.App.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="**/*.resx">
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>
</Project>

View File

@ -22,7 +22,7 @@ namespace NAPS2.Sdk.Tests.Ocr {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class TesseractResources {
internal class TesseractResources {
private static global::System.Resources.ResourceManager resourceMan;

View File

@ -22,7 +22,7 @@ namespace NAPS2.Sdk.Tests {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class SharedData {
internal class SharedData {
private static global::System.Resources.ResourceManager resourceMan;
@ -36,7 +36,7 @@ namespace NAPS2.Sdk.Tests {
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NAPS2.Sdk.Tests.SharedData", typeof(SharedData).Assembly);
@ -51,7 +51,7 @@ namespace NAPS2.Sdk.Tests {
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
@ -63,7 +63,7 @@ namespace NAPS2.Sdk.Tests {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image {
internal static System.Drawing.Bitmap color_image {
get {
object obj = ResourceManager.GetObject("color_image", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -73,17 +73,7 @@ namespace NAPS2.Sdk.Tests {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_thumb_256 {
get {
object obj = ResourceManager.GetObject("color_image_thumb_256", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap color_image_b_p300_thumb_256 {
internal static System.Drawing.Bitmap color_image_b_p300_thumb_256 {
get {
object obj = ResourceManager.GetObject("color_image_b_p300_thumb_256", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
@ -93,9 +83,9 @@ namespace NAPS2.Sdk.Tests {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap patcht {
internal static System.Drawing.Bitmap color_image_thumb_256 {
get {
object obj = ResourceManager.GetObject("patcht", resourceCulture);
object obj = ResourceManager.GetObject("color_image_thumb_256", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
@ -103,11 +93,21 @@ namespace NAPS2.Sdk.Tests {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap ocr_test {
internal static System.Drawing.Bitmap ocr_test {
get {
object obj = ResourceManager.GetObject("ocr_test", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap patcht {
get {
object obj = ResourceManager.GetObject("patcht", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}