Skip to content

Commit 578b9b0

Browse files
committed
Move from nuspec to csproj-based package config
1 parent 17d2895 commit 578b9b0

File tree

7 files changed

+32
-45
lines changed

7 files changed

+32
-45
lines changed

README.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ to create, load, traverse, modify, and save NBT files and streams.
66
The library provides a choice of convenient high-level APIs (NbtFile/NbtTag) that present an object model,
77
or lower-level higher-performance APIs (NbtReader/NbtWriter) that read/write data directly to/from streams.
88

9-
Current released version is 1.0.0 (15 April 2024).
9+
Current released version is 1.0.0 (3 July 2025).
1010

1111
fNbt is based in part on Erik Davidson's (aphistic's) original LibNbt library,
1212
now completely rewritten by Matvei Stefarov (fragmer).
1313

14-
Note that fNbt.Test.dll and nunit.framework.dll do NOT need to be bundled with
15-
applications that use fNbt; they are only used for testing.
16-
1714

1815
## FEATURES
1916
- Load and save uncompressed, GZip-, and ZLib-compressed files/streams.
@@ -34,11 +31,7 @@ which means it can be used in .NET Framework 4.6.1+, .NET Core 2.0+, Mono 5.4+,
3431

3532
- **Package @ NuGet:** https://www.nuget.org/packages/fNbt/
3633

37-
- **Compiled binary:** https://fcraft.net/fnbt/fNbt_v1.0.0.zip
38-
<br><sup>SHA1: 600853530fd538e614b6cb4722ced81917e9615d</sup>
39-
40-
- **Amalgamation** (single source file): https://fcraft.net/fnbt/fNbt_v1.0.0.cs
41-
<br><sup>SHA1: 9298dbe00d080bcf5d32299415aaf856590ba3bf</sup>
34+
- **Compiled binaries and single-source-file amalgamations:** https://github.com/mstefarov/fNbt/releases
4235

4336

4437
## EXAMPLES
@@ -132,20 +125,9 @@ Online reference can be found at http://www.fcraft.net/fnbt/v1.0.0/
132125

133126

134127
## LICENSING
135-
fNbt v0.5.0+ is licensed under 3-Clause BSD license; see [docs/LICENSE](docs/LICENSE).
128+
fNbt v0.5.0+ is licensed under 3-Clause BSD license; see [docs/LICENSE.txt](docs/LICENSE.txt).
136129
LibNbt2012 up to and including v0.4.1 kept LibNbt's original license (LGPLv3).
137130

138131

139132
## VERSION HISTORY
140133
See [docs/Changelog.md](docs/Changelog.md)
141-
142-
143-
## OLD VERSIONS
144-
If you need .NET 2.0 support, stick to using fNbt version 0.5.1.
145-
Note that this 0.5.x branch of fNbt is no longer supported or updated.
146-
147-
- **Compiled binary:** https://fcraft.net/fnbt/fNbt_v0.5.1.zip
148-
149-
- **Amalgamation** (single source file):
150-
- Non-annotated: https://fcraft.net/fnbt/fNbt_v0.5.1.cs
151-
- With JetBrains annotations: https://fcraft.net/fnbt/fNbt_v0.5.1_Annotated.cs

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version: '0.6.4.{build}'
1+
version: '1.0.0.{build}'
22
before_build:
33
- nuget restore -verbosity detailed

docs/LICENSE renamed to docs/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2018, Matvei "fragmer" Stefarov <[email protected]>
1+
Copyright (c) 2012-2025, Matvei "fragmer" Stefarov <[email protected]>
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

fNbt.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{83C41F58-F6F7-46F2-85C3-CDD69E7FBEE6}"
77
ProjectSection(SolutionItems) = preProject
88
docs\Changelog.md = docs\Changelog.md
9-
docs\LICENSE = docs\LICENSE
9+
docs\LICENSE.txt = docs\LICENSE.txt
1010
README.md = README.md
1111
EndProjectSection
1212
EndProject

fNbt/fNbt.csproj

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,46 @@
55
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
66
<LangVersion>10</LangVersion>
77
<Nullable>enable</Nullable>
8+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
9+
10+
<IncludeSymbols>true</IncludeSymbols>
11+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
12+
<Authors>Erik Davidson (2010-2011); Matvei Stefarov (2012+)</Authors>
13+
<Description>A library for working with NBT files and streams.</Description>
14+
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
15+
<PackageProjectUrl>https://github.com/mstefarov/fNbt</PackageProjectUrl>
16+
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
17+
<PackageTags>nbt;serialization;minecraft;fcraft</PackageTags>
18+
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
19+
<PackageIcon>icon.png</PackageIcon>
20+
821
</PropertyGroup>
922
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1023
<OutputPath>..\bin\Debug\</OutputPath>
1124
<ConsolePause>false</ConsolePause>
1225
<DocumentationFile>..\bin\Debug\fNbt.xml</DocumentationFile>
1326
<RunCodeAnalysis>false</RunCodeAnalysis>
14-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
1527
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1628
</PropertyGroup>
1729
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
1830
<OutputPath>..\bin\Release\</OutputPath>
1931
<ConsolePause>false</ConsolePause>
2032
<RunCodeAnalysis>false</RunCodeAnalysis>
2133
<DocumentationFile>..\bin\Release\fNbt.xml</DocumentationFile>
22-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
2334
<DebugSymbols>true</DebugSymbols>
24-
<DefineConstants>
25-
</DefineConstants>
2635
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2736
</PropertyGroup>
37+
38+
<ItemGroup>
39+
<None Include="..\README.md" Pack="true" PackagePath="\docs\" />
40+
<None Include="..\docs\LICENSE.txt" Pack="true" PackagePath="\docs\" />
41+
<None Include="..\docs\Changelog.md" Pack="true" PackagePath="\docs\" />
42+
<None Include="icon.png" Pack="true" PackagePath=""/>
43+
</ItemGroup>
44+
45+
<Target Name="SetPackageReleaseNotes" BeforeTargets="GenerateNuspec">
46+
<PropertyGroup>
47+
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../docs/Changelog.md"))</PackageReleaseNotes>
48+
</PropertyGroup>
49+
</Target>
2850
</Project>

fNbt/fNbt.nuspec

Lines changed: 0 additions & 17 deletions
This file was deleted.

fNbt/icon.png

8.65 KB
Loading

0 commit comments

Comments
 (0)