Skip to content

Commit 15686a1

Browse files
RagathRagath
authored andcommitted
net8
1 parent dd9a810 commit 15686a1

File tree

17 files changed

+54
-55
lines changed

17 files changed

+54
-55
lines changed

.config/dotnet-tools.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-mgcb": {
6-
"version": "3.8.1.303",
6+
"version": "3.8.2.1105",
77
"commands": [
88
"mgcb"
99
]
1010
},
1111
"dotnet-mgcb-editor": {
12-
"version": "3.8.1.303",
12+
"version": "3.8.2.1105",
1313
"commands": [
1414
"mgcb-editor"
1515
]
1616
},
1717
"dotnet-mgcb-editor-linux": {
18-
"version": "3.8.1.303",
18+
"version": "3.8.2.1105",
1919
"commands": [
2020
"mgcb-editor-linux"
2121
]
2222
},
2323
"dotnet-mgcb-editor-windows": {
24-
"version": "3.8.1.303",
24+
"version": "3.8.2.1105",
2525
"commands": [
2626
"mgcb-editor-windows"
2727
]
2828
},
2929
"dotnet-mgcb-editor-mac": {
30-
"version": "3.8.1.303",
30+
"version": "3.8.2.1105",
3131
"commands": [
3232
"mgcb-editor-mac"
3333
]

.github/workflows/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
- name: Setup .NET
3535
uses: actions/setup-dotnet@v3
3636
with:
37-
dotnet-version: 7.0.x
37+
dotnet-version: 8.0.x
3838

3939
- name: Build
40-
run: dotnet build -p:Version=$GITVERSION_NUGETVERSION
40+
run: dotnet build --configuration Release -p:Version=$GITVERSION_NUGETVERSION
4141

4242
- name: Test
43-
run: dotnet test --no-build --verbosity normal
43+
run: dotnet test --configuration Release --no-build --verbosity normal
4444

4545
- name: Pack
4646
run: dotnet pack --no-build -o ./ -p:Version=$GITVERSION_NUGETVERSION

TiledLib.Pipeline/TiledLib.Pipeline.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -24,10 +24,10 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="MonoGame.Framework.Content.Pipeline" Version="3.8.1.303">
27+
<PackageReference Include="MonoGame.Framework.Content.Pipeline" Version="3.8.2.1105">
2828
<PrivateAssets>All</PrivateAssets>
2929
</PackageReference>
30-
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303">
30+
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.2.1105">
3131
<PrivateAssets>All</PrivateAssets>
3232
</PackageReference>
3333
</ItemGroup>

TiledLib.Tests/TiledLib.Tests.csproj

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

88
<IsPackable>false</IsPackable>
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
13-
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
14-
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
15-
<PackageReference Include="coverlet.collector" Version="3.1.2" />
12+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
13+
<PackageReference Include="MSTest.TestAdapter" Version="3.5.2" />
14+
<PackageReference Include="MSTest.TestFramework" Version="3.5.2" />
15+
<PackageReference Include="coverlet.collector" Version="6.0.2">
16+
<PrivateAssets>all</PrivateAssets>
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
</PackageReference>
1619
</ItemGroup>
1720

1821
<ItemGroup>

TiledLib.sln

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29009.5
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.10.34928.147
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TiledLib", "TiledLib\TiledLib.csproj", "{39334840-001D-48E5-A13C-4A9CA6BAB142}"
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TiledLib.Pipeline", "TiledLib.Pipeline\TiledLib.Pipeline.csproj", "{8F4869B1-35A2-4EC7-86C5-D60143E3FC05}"
99
EndProject
1010
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TiledLib.Tests", "TiledLib.Tests\TiledLib.Tests.csproj", "{13A3D034-B392-4027-ADEE-8BE3AF17FEC5}"
1111
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AF61C04A-6F22-49BE-B73C-C55CFC207962}"
13+
ProjectSection(SolutionItems) = preProject
14+
.config\dotnet-tools.json = .config\dotnet-tools.json
15+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
16+
EndProjectSection
17+
EndProject
1218
Global
1319
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1420
Debug|Any CPU = Debug|Any CPU

TiledLib/Layer/BaseLayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ public abstract class BaseLayer
4242

4343
[JsonPropertyName("properties")]
4444
[JsonConverter(typeof(PropertiesConverter))]
45-
public Dictionary<string, string> Properties { get; init; } = new Dictionary<string, string>();
45+
public Dictionary<string, string> Properties { get; init; } = [];
4646
}

TiledLib/Map.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ namespace TiledLib;
99
[XmlRoot("map")]
1010
public class Map : IXmlSerializable
1111
{
12-
[Required]
1312
[JsonPropertyName("version")]
1413
[JsonConverter(typeof(VersionConverter))]
15-
public string Version { get; set; } = "1.0";
14+
public required string Version { get; set; } = "1.0";
1615

1716
[JsonPropertyName("tiledversion")]
1817
public string TiledVersion { get; set; }
1918

20-
[Required]
2119
[JsonPropertyName("orientation")]
22-
public Orientation Orientation { get; set; }
20+
public required Orientation Orientation { get; set; }
2321

2422
[JsonPropertyName("renderorder")]
2523
public RenderOrder RenderOrder { get; set; }
@@ -67,7 +65,7 @@ public class Map : IXmlSerializable
6765

6866
[JsonPropertyName("properties")]
6967
[JsonConverter(typeof(PropertiesConverter))]
70-
public Dictionary<string, string> Properties { get; init; } = new Dictionary<string, string>();
68+
public Dictionary<string, string> Properties { get; init; } = [];
7169

7270
/// <summary>
7371
/// Parses map from JSON stream

TiledLib/Objects/BaseObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public abstract class BaseObject
2727

2828
[JsonPropertyName("properties")]
2929
[JsonConverter(typeof(PropertiesConverter))]
30-
public Dictionary<string, string> Properties { get; init; } = new Dictionary<string, string>();
30+
public Dictionary<string, string> Properties { get; init; } = [];
3131

3232
public BaseObject(Dictionary<string, string> properties) { Properties = properties; }
3333
}

TiledLib/Objects/EllipseObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace TiledLib.Objects;
77
public class EllipseObject : BaseObject, IXmlSerializable
88
{
99
public EllipseObject(Dictionary<string, string> properties) : base(properties) { }
10-
public EllipseObject() : base(new Dictionary<string, string>()) { }
10+
public EllipseObject() : base([]) { }
1111

1212
[JsonPropertyName("ellipse")]
1313
public bool IsEllipse { get; set; }

TiledLib/Objects/PointObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
public class PointObject : BaseObject
44
{
55
internal PointObject(Dictionary<string, string> properties) : base(properties) { }
6-
public PointObject() : base(new Dictionary<string, string>()) { }
6+
public PointObject() : base([]) { }
77
}

0 commit comments

Comments
 (0)