I managed to get the project to build using dotnet 9.0 and Fedora... and I have a few questions for any of the seasoned developers ๐ I would love to pick some brains.
Is there a channel to discuss things in this discord? How can I contribute? ๐
I used the following projects in external:
- https://github.com/SirCxyrtyx/FileEmbed.git
- https://github.com/FNA-XNA/FNA.git
- https://github.com/ZaneDubya/MP3Sharp.git
I made a few changes to be able to build all of the other projects (hence the -dirty in the subproject commits at the end of this post:
diff --git a/FileEmbed/FileEmbed.csproj b/FileEmbed/FileEmbed.csproj
index cab3fdb..3ad7778 100644
--- a/FileEmbed/FileEmbed.csproj
+++ b/FileEmbed/FileEmbed.csproj
@@ -35,5 +35,11 @@
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
+ <ItemGroup>
+ <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
+ <PrivateAssets>all</PrivateAssets>
+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+ </PackageReference>
+ </ItemGroup>
</Project>
diff --git a/MP3Sharp/MP3Sharp.csproj b/MP3Sharp/MP3Sharp.csproj
index 8b28ad4..9af9fe6 100644
--- a/MP3Sharp/MP3Sharp.csproj
+++ b/MP3Sharp/MP3Sharp.csproj
@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3">
+ <PrivateAssets>all</PrivateAssets>
+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+ </PackageReference>
+ </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
willwh@claymore:~/src/ClassicUO/scripts$ git diff
diff --git a/external/FNA b/external/FNA
index ed62a28d9..c8ccde2ee 160000
--- a/external/FNA
+++ b/external/FNA
@@ -1 +1 @@
-Subproject commit ed62a28d91c6dcacc113b80d96570ae1f9600e03
+Subproject commit c8ccde2ee6edcb4a8a70cc4c76fe4ec6f7899ea3-dirty
diff --git a/external/FileEmbed b/external/FileEmbed
--- a/external/FileEmbed
+++ b/external/FileEmbed
@@ -1 +1 @@
-Subproject commit 941fe67e520bb993d209bc46680b7ba4cb075471
+Subproject commit 941fe67e520bb993d209bc46680b7ba4cb075471-dirty
diff --git a/external/MP3Sharp b/external/MP3Sharp
index e64af846c..dc9342152 160000
--- a/external/MP3Sharp
+++ b/external/MP3Sharp
@@ -1 +1 @@
-Subproject commit e64af846c430b38936727de8a52f573ccf3f13fe
+Subproject commit dc9342152859d782df12a001bf719ce334c34b14-dirty
diff --git a/src/ClassicUO.Client/Game/UI/Gumps/SystemChatControl.cs b/src/ClassicUO.Client/Game/UI/Gumps/SystemChatControl.cs
index 712d1c605..915fd321d 100644
--- a/src/ClassicUO.Client/Game/UI/Gumps/SystemChatControl.cs
+++ b/src/ClassicUO.Client/Game/UI/Gumps/SystemChatControl.cs
@@ -436,7 +436,7 @@ namespace ClassicUO.Game.UI.Gumps
{
if (TextBoxControl != null)
{
- int lines = TextBoxControl.Text.Count('\n') + 1;
+ int lines = TextBoxControl.Text.AsSpan().Count('\n') + 1;
// the chat mode is always on the left and on the bottom
_currentChatModeLabel.X = CHAT_X_OFFSET;
GitHub
A source generator for embedding resource files directly into your assembly. Access them as a ReadOnlySpan<byte>, with no allocations or reflection needed. - SirCxyrtyx/FileEmbed