diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f7343f..887cf66 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -240,13 +240,13 @@ jobs: - name: Upload NuGet Package As Artifact uses: actions/upload-artifact@v3 with: - path: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.nupkg + path: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.*pkg - name: Upload NuGet Package As Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.nupkg + files: Raylib-cs/bin/Release/Raylib-cs.${{ needs.prepare.outputs.pkgversion }}.*pkg - name: Publish to NuGet if: startsWith(github.ref, 'refs/tags/') diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index af94b04..667b642 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -16,6 +16,8 @@ 4.5.0.2 Chris Dill, Raysan5 true + true + snupkg Zlib Raylib-cs C# bindings for raylib - A simple and easy-to-use library to learn videogames programming @@ -23,6 +25,7 @@ raylib;bindings;gamedev git https://github.com/ChrisDill/Raylib-cs/ + true README.md https://www.raylib.com/ true @@ -35,6 +38,7 @@ + diff --git a/Raylib-cs/types/native/UTF8Buffer.cs b/Raylib-cs/types/native/UTF8Buffer.cs index c053303..4dd201d 100644 --- a/Raylib-cs/types/native/UTF8Buffer.cs +++ b/Raylib-cs/types/native/UTF8Buffer.cs @@ -13,7 +13,7 @@ namespace Raylib_cs public UTF8Buffer(string text) { - data = Marshal.StringToCoTaskMemUTF8(text); + this.data = Marshal.StringToHGlobalAnsi(text); } public unsafe sbyte* AsPointer() @@ -23,7 +23,7 @@ namespace Raylib_cs public void Dispose() { - Marshal.FreeCoTaskMem(data); + Marshal.FreeHGlobal(data); } }