diff --git a/.github/workflows/build-debug.yaml b/.github/workflows/build-debug.yaml
index c910b4e..a0e2ce3 100644
--- a/.github/workflows/build-debug.yaml
+++ b/.github/workflows/build-debug.yaml
@@ -17,8 +17,9 @@ jobs:
steps:
- uses: Cysharp/Actions/.github/actions/checkout@main
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
- - run: dotnet build -c Debug
- - run: dotnet test -c Debug --no-build
+ - run: dotnet build -c Release
+ - run: dotnet test -c Release --no-build
+ - run: dotnet pack -c Release --no-build
build-unity:
if: ${{ (github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:') }}
diff --git a/.gitignore b/.gitignore
index 9579092..1a3ef7b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,7 +57,7 @@ _ReSharper*
*.ncrunch*
.*crunch*.local.xml
-# Installshield output folder
+# Installshield output folder
[Ee]xpress
# DocProject is a documentation generator add-in
@@ -77,7 +77,19 @@ publish
*.Publish.xml
# NuGet Packages Directory
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
# packages # upm pacakge will use Packages
+# **/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+# !**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
# Windows Azure Build Output
csx
@@ -107,9 +119,6 @@ UpgradeLog*.XML
.vs/config/applicationhost.config
.vs/restore.dg
-nuget/tools/*
-nuget/*.nupkg
-nuget/*.unitypackage
.vs/
# Jetbrains Rider
diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 0000000..d488d2c
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,32 @@
+
+
+
+ 9.0
+ enable
+ true
+ disable
+
+ true
+ $(MSBuildThisFileDirectory)opensource.snk
+
+
+ false
+ $(Version)
+ Cysharp
+ Cysharp
+ © Cysharp, Inc.
+ memory
+ https://github.com/Cysharp/NativeMemoryArray
+ $(PackageProjectUrl)
+ README.md
+ git
+ MIT
+ Icon.png
+
+
+
+
+
+
+
+
diff --git a/src/NativeMemoryArray/Icon.png b/Icon.png
similarity index 100%
rename from src/NativeMemoryArray/Icon.png
rename to Icon.png
diff --git a/sandbox/ConsoleApp/ConsoleApp.csproj b/sandbox/ConsoleApp/ConsoleApp.csproj
index 63cd83d..5a59904 100644
--- a/sandbox/ConsoleApp/ConsoleApp.csproj
+++ b/sandbox/ConsoleApp/ConsoleApp.csproj
@@ -1,20 +1,19 @@
-
- Exe
- net6.0
- enable
- 10.0
- true
- false
-
+
+ Exe
+ net6.0
+ enable
+ 10.0
+ true
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/src/NativeMemoryArray/NativeMemoryArray.csproj b/src/NativeMemoryArray/NativeMemoryArray.csproj
index b33a404..4149011 100644
--- a/src/NativeMemoryArray/NativeMemoryArray.csproj
+++ b/src/NativeMemoryArray/NativeMemoryArray.csproj
@@ -1,53 +1,34 @@
-
- netstandard2.0;netstandard2.1;net5.0;net6.0
- disable
- enable
- 9.0
- Cysharp.Collections
- true
- true
- 1701;1702;1591
+
+ netstandard2.0;netstandard2.1;net5.0;net6.0
+ Cysharp.Collections
+ true
+ true
+ 1701;1702;1591
-
- $(Version)
- Cysharp
- Cysharp
- © Cysharp, Inc.
- memory
- Utilized native-memory backed array for .NET and Unity.
- https://github.com/Cysharp/NativeMemoryArray
- $(PackageProjectUrl)
- git
- MIT
- true
- ../../opensource.snk
- Icon.png
- true
-
+
+ Utilized native-memory backed array for .NET and Unity.
+ true
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+ $(MSBuildProjectDirectory)\..\NativeMemoryArray.Unity\Assets\Plugins\NativeMemoryArray\Runtime\
+
+
+
+
-
-
- $(MSBuildProjectDirectory)\..\NativeMemoryArray.Unity\Assets\Plugins\NativeMemoryArray\Runtime\
-
-
-
-
-
-
-
-
+
+
+
diff --git a/tests/NativeMemoryArray.Tests/NativeMemoryArray.Tests.csproj b/tests/NativeMemoryArray.Tests/NativeMemoryArray.Tests.csproj
index 5ebb434..bc6c6fc 100644
--- a/tests/NativeMemoryArray.Tests/NativeMemoryArray.Tests.csproj
+++ b/tests/NativeMemoryArray.Tests/NativeMemoryArray.Tests.csproj
@@ -1,33 +1,32 @@
-
- net480;net6.0
- false
-
-
- net6.0
-
+
+ net480;net6.0
+ false
+
+
+ net6.0
+
-
- enable
- enable
- false
- 10.0
- true
- NativeMemoryArrayTests
-
+
+ enable
+ enable
+ 10.0
+ true
+ NativeMemoryArrayTests
+
-
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
-
-
-
+
+
+