From 21f84271a1997f3a3a18df5394d7aa887794c4da Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fa=E9=B8=BD?= <1207247008@qq.com>
Date: Wed, 26 Jan 2022 04:52:57 +0800
Subject: [PATCH] Added a nuspec for all-in-one package and instructions to
pack such package
---
Standalone/BuildPackages.targets | 100 +++++++++
Standalone/How to build nuget package.md | 11 +
Standalone/Steamworks.NET.Standard.csproj | 247 +++++-----------------
Standalone/Steamworks.NET.nuspec | 27 +++
4 files changed, 195 insertions(+), 190 deletions(-)
create mode 100644 Standalone/BuildPackages.targets
create mode 100644 Standalone/How to build nuget package.md
create mode 100644 Standalone/Steamworks.NET.nuspec
diff --git a/Standalone/BuildPackages.targets b/Standalone/BuildPackages.targets
new file mode 100644
index 00000000..eba41e75
--- /dev/null
+++ b/Standalone/BuildPackages.targets
@@ -0,0 +1,100 @@
+
+
+
+
+ $(ProjectDir)bin\nuget\runtime\
+ $(ProjectDir)bin\nugetsyms\runtime\
+ lib\$(TargetFramework)\
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Platform=x64;Configuration=Windows;PackagingBuild=true
+
+
+ Platform=x64;Configuration=OSX-Linux;PackagingBuild=true
+
+
+ Platform=x86;Configuration=Windows;PackagingBuild=true
+
+
+ Platform=x86;Configuration=OSX-Linux;PackagingBuild=true
+
+
+
+ Platform=x64;
+ Configuration=Windows;
+ ProduceOnlyReferenceAssembly=true;
+ OutDir=$(ProjectDir)bin\ref
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ ref\$(TargetFramework)\
+
+
+
+
+
+
+
+ $(ProjectDir)bin\nuget\runtime\lib\
+ $(ProjectDir)bin\nugetsyms\runtime\lib\
+ lib\$(TargetFramework)\
+
+
+
+
+
+ <_PackageFiles Include="@(Asm)" />
+
+
+
+
+
+
+
+
+
+ <_TargetPathsToSymbols Include="@(Pdb)" />
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Standalone/How to build nuget package.md b/Standalone/How to build nuget package.md
new file mode 100644
index 00000000..75d6f18a
--- /dev/null
+++ b/Standalone/How to build nuget package.md
@@ -0,0 +1,11 @@
+First build binaries of all supported platform. Enter
+```bat
+dotnet build -t:BatchBuild Steamworks.NET.Standard.sln
+```
+to your terminal.
+
+Then use nuget client with the `.nuspec` to pack an all-in-one package. Enter
+```bat
+nuget pack Steamworks.NET.nuspec -OutputDirectory bin\
+```
+to your terminal.
\ No newline at end of file
diff --git a/Standalone/Steamworks.NET.Standard.csproj b/Standalone/Steamworks.NET.Standard.csproj
index e1576b78..9a7cce63 100644
--- a/Standalone/Steamworks.NET.Standard.csproj
+++ b/Standalone/Steamworks.NET.Standard.csproj
@@ -1,200 +1,67 @@
-
- netstandard2.1
- Steamworks
- Steamworks.NET
- x64;x86
- Windows;OSX-Linux
- false
- git
-
+
+ netstandard2.1
+ Steamworks
+ Steamworks.NET
+ x64;x86
+ Windows;OSX-Linux
+ false
+ git
+
-
- true
- Steamworks.NET.Standard.$(Configuration).$(platform)
- rlabrecque
- 14.0.1.2
- MIT
- https://github.com/rlabrecque/Steamworks.NET
- https://github.com/rlabrecque/Steamworks.NET.git
-
+
+ false
+ Steamworks.NET
+ rlabrecque
+
+ MIT
+ https://github.com/rlabrecque/Steamworks.NET
+ https://github.com/rlabrecque/Steamworks.NET.git
+ README.md
+ true
+ snupkg
+
-
-
-
-
-
-
-
-
+
+ bin\x86\Windows\
+ TRACE;STEAMWORKS_WIN;STEAMWORKS_X86
+ true
+ true
+ x86
+ prompt
+
-
-
-
+
+ bin\x86\OSX-Linux\
+ TRACE;STEAMWORKS_LIN_OSX;STEAMWORKS_X86
+ true
+ true
+ x86
+ prompt
+
-
-
-
+
+ bin\x64\Windows\
+ TRACE;STEAMWORKS_WIN;STEAMWORKS_X64
+ true
+ true
+ x64
+ prompt
+
-
-
-
-
+
+ bin\x64\OSX-Linux\
+ TRACE;STEAMWORKS_LIN_OSX;STEAMWORKS_X64
+ true
+ true
+ x64
+ prompt
+
-
- bin\x86\Windows\
- TRACE;STEAMWORKS_WIN;STEAMWORKS_X86
- true
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
-
-
-
- bin\x86\OSX-Linux\
- TRACE;STEAMWORKS_LIN_OSX;STEAMWORKS_X86
- true
- true
- pdbonly
- x86
- prompt
- MinimumRecommendedRules.ruleset
-
-
-
- bin\x64\Windows\
- TRACE;STEAMWORKS_WIN;STEAMWORKS_X64
- true
- true
- pdbonly
- x64
- prompt
- MinimumRecommendedRules.ruleset
-
-
-
- bin\x64\OSX-Linux\
- TRACE;STEAMWORKS_LIN_OSX;STEAMWORKS_X64
- true
- true
- pdbonly
- x64
- prompt
- MinimumRecommendedRules.ruleset
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/Standalone/Steamworks.NET.nuspec b/Standalone/Steamworks.NET.nuspec
new file mode 100644
index 00000000..a9af3b5d
--- /dev/null
+++ b/Standalone/Steamworks.NET.nuspec
@@ -0,0 +1,27 @@
+
+
+
+ Steamworks.NET
+ 15.0.1
+ Steamworks.NET
+ rileylabrecque
+ MIT
+ https://github.com/rlabrecque/Steamworks.NET
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file