Skip to content

Commit 1df1605

Browse files
author
José Miguel Sánchez Fernández
authored
Merge pull request #10 from VisualStudioEX3/develop
Fixes build configuration and supress warnings.
2 parents 0243ffd + 1e1889a commit 1df1605

File tree

7 files changed

+22
-19
lines changed

7 files changed

+22
-19
lines changed

DIV2.Format.Exporter.Tests/DIV2.Format.Exporter.Tests.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
55

66
<IsPackable>false</IsPackable>
7+
8+
<Platforms>x64</Platforms>
9+
</PropertyGroup>
10+
11+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
12+
<PlatformTarget>x64</PlatformTarget>
713
</PropertyGroup>
814

915
<ItemGroup>

DIV2.Format.Exporter.sln

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ Global
2020
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2121
{D809DD2D-A865-4395-805E-18BCBD1E0594}.Debug|x64.ActiveCfg = Debug|x64
2222
{D809DD2D-A865-4395-805E-18BCBD1E0594}.Debug|x64.Build.0 = Debug|x64
23-
{D809DD2D-A865-4395-805E-18BCBD1E0594}.Release|x64.ActiveCfg = Release|Any CPU
24-
{D809DD2D-A865-4395-805E-18BCBD1E0594}.Release|x64.Build.0 = Release|Any CPU
25-
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Debug|x64.ActiveCfg = Debug|Any CPU
26-
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Debug|x64.Build.0 = Debug|Any CPU
27-
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Release|x64.ActiveCfg = Release|Any CPU
28-
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Release|x64.Build.0 = Release|Any CPU
23+
{D809DD2D-A865-4395-805E-18BCBD1E0594}.Release|x64.ActiveCfg = Release|x64
24+
{D809DD2D-A865-4395-805E-18BCBD1E0594}.Release|x64.Build.0 = Release|x64
25+
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Debug|x64.ActiveCfg = Debug|x64
26+
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Release|x64.ActiveCfg = Release|x64
27+
{0490E65E-02FF-44BC-A874-27E47FDE9FE5}.Release|x64.Build.0 = Release|x64
2928
EndGlobalSection
3029
GlobalSection(SolutionProperties) = preSolution
3130
HideSolutionNode = FALSE

DIV2.Format.Exporter/DIV2.Format.Exporter.csproj

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<RepositoryUrl>https://github.com/VisualStudioEX3/DIV2.Format.Exporter</RepositoryUrl>
1111
<RepositoryType>GitHub</RepositoryType>
1212
<PackageTags>DIV DIV2 DIVGamesStudio DIVGamesStudio2 Games Graphics Tool Retro Windows Linux Mac</PackageTags>
13-
<Platforms>AnyCPU;x64</Platforms>
13+
<Platforms>x64</Platforms>
1414
<Version>1.0.1</Version>
1515
<NeutralLanguage>en</NeutralLanguage>
1616
<PackageReleaseNotes>- Updated ImageSharp to version 1.0.3.
@@ -22,23 +22,12 @@
2222
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2323
</PropertyGroup>
2424

25-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
26-
<PlatformTarget>AnyCPU</PlatformTarget>
27-
<Optimize>false</Optimize>
28-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
29-
</PropertyGroup>
30-
3125
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
3226
<PlatformTarget>AnyCPU</PlatformTarget>
3327
<Optimize>false</Optimize>
3428
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
3529
</PropertyGroup>
3630

37-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
38-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
39-
<DocumentationFile>D:\Projects\dotNET projects\DIV2.Format.Exporter\DIV2.Format.Exporter\DIV2.Format.Exporter.xml</DocumentationFile>
40-
</PropertyGroup>
41-
4231
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
4332
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4433
<DocumentationFile>D:\Projects\dotNET projects\DIV2.Format.Exporter\DIV2.Format.Exporter\DIV2.Format.Exporter.xml</DocumentationFile>

DIV2.Format.Exporter/ExtensionMethods/StringExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public static byte[] GetASCIIZString(this string text, int length)
6262
return buffer.ToByteArray();
6363
}
6464

65+
66+
#pragma warning disable CS0419 // Ambiguous reference in cref attribute
6567
/// <summary>
6668
/// Returns a secure hash code for this string.
6769
/// </summary>
@@ -72,6 +74,7 @@ public static int GetSecureHashCode(this string text)
7274
{
7375
return HashGenerator.CalculateHashCode(text);
7476
}
77+
#pragma warning restore CS0419 // Ambiguous reference in cref attribute
7578
#endregion
7679
}
7780
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
namespace DIV2.Format.Exporter.Interfaces
22
{
3+
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
34
public interface IAssetFile : IFormatValidable, ISerializableAsset
45
{
56
#region Methods & Functions
67
bool Validate(string filename);
78
void Save(string filename);
89
#endregion
910
}
11+
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
1012
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
namespace DIV2.Format.Exporter.Interfaces
22
{
3+
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
34
public interface IFormatValidable
45
{
56
#region Methods & Functions
67
bool Validate(byte[] buffer);
78
#endregion
89
}
10+
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
911
}

DIV2.Format.Exporter/Interfaces/ISerializableAsset.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
namespace DIV2.Format.Exporter.Interfaces
44
{
5+
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
56
public interface ISerializableAsset
67
{
78
#region Methods & Functions
89
byte[] Serialize();
910
void Write(BinaryWriter stream);
1011
#endregion
1112
}
13+
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
1214
}

0 commit comments

Comments
 (0)