PckStudio - Enabled 'Treat all warnings as errors'

This commit is contained in:
miku-666
2024-08-15 14:19:52 +02:00
parent d7e528aff7
commit aaec3eb1f2
3 changed files with 2 additions and 6 deletions

View File

@@ -57,8 +57,6 @@ namespace PckStudio.Models
private System.Drawing.Image backgroundTexture;
private System.Drawing.Image usernameImage;
internal PckStudio.Models.Matrix3D GlobalTransformation = PckStudio.Models.Matrix3D.Identity;
private System.Collections.Generic.List<PckStudio.Models.Texel> texelList = new System.Collections.Generic.List<PckStudio.Models.Texel>();

View File

@@ -20,12 +20,8 @@ using System.Text;
namespace PckStudio.Forms
{
[Obsolete]
public partial class generateModel : MetroForm
{
[Obsolete("We don't need a full control to get an image")]
private PictureBox _skinPreview = new PictureBox();
private Image _previewImage;
public Image PreviewImage => _previewImage;

View File

@@ -45,6 +45,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>CS0618</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>