From cc703816caabde68ccc62e1b5d4563d81f614a23 Mon Sep 17 00:00:00 2001 From: nsnail Date: Thu, 14 Dec 2023 16:46:09 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=F0=9F=93=A6=20nuget=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E7=9B=B8=E5=85=B3=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- Directory.Build.props | 1 + NSExt.sln | 4 +++- build/nuget.package.props | 20 ++++++++++++++++++++ package.json | 2 +- scripts/code.clean.ps1 | 2 +- scripts/resharper.full.ps1 | 2 +- src/backend/NSExt/NSExt.csproj | 17 +---------------- 8 files changed, 29 insertions(+), 21 deletions(-) create mode 100644 build/nuget.package.props diff --git a/CHANGELOG.md b/CHANGELOG.md index a9413ef..6c1eb05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,4 +8,4 @@ All notable changes to this project will be documented in this file. See [standa ### Features * ++ ([e41652d](https://github.com/nsnail/NSExt/commit/e41652d553beda7a2eb1600da4795e07f4260330)) -* 增加一些扩展方法 ([1f26d0f](https://github.com/nsnail/NSExt/commit/1f26d0f28098f7ee98a9a5482096aecd53b85e04)) +* 增加一些扩展方法 ([1f26d0f](https://github.com/nsnail/NSExt/commit/1f26d0f28098f7ee98a9a5482096aecd53b85e04)) \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 593c51c..b2ad2a4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -21,6 +21,7 @@ NSExt git https://github.com/nsnail/NSExt.git + NSExt net6.0;net7.0;net8.0 $(AssemblyName) diff --git a/NSExt.sln b/NSExt.sln index 171567a..b75ef62 100644 --- a/NSExt.sln +++ b/NSExt.sln @@ -13,13 +13,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{5198A03D-0 .editorconfig = .editorconfig .gitattributes = .gitattributes .gitignore = .gitignore + CHANGELOG.md = CHANGELOG.md Directory.Build.props = Directory.Build.props dotnet-tools.json = dotnet-tools.json global.json = global.json key.snk = key.snk LICENSE = LICENSE NSExt.sln.DotSettings = NSExt.sln.DotSettings - NuGet.Config = NuGet.Config + nuget.config = nuget.config package.json = package.json README.md = README.md README.zh-CN.md = README.zh-CN.md @@ -56,6 +57,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{8E4C93BA code.quality.props = build/code.quality.props copy.pkg.xml.comment.files.targets = build/copy.pkg.xml.comment.files.targets minver.targets = build/minver.targets + nuget.package.props = build/nuget.package.props prebuild.targets = build/prebuild.targets stylecop.analyzers.ruleset = build/stylecop.analyzers.ruleset EndProjectSection diff --git a/build/nuget.package.props b/build/nuget.package.props new file mode 100644 index 0000000..c682d74 --- /dev/null +++ b/build/nuget.package.props @@ -0,0 +1,20 @@ + + + ../../../key.snk + false + true + true + true + logo.png + MIT + README.md + extensions + true + true + snupkg + + + + + + \ No newline at end of file diff --git a/package.json b/package.json index 68ef5ea..6eab1d7 100644 --- a/package.json +++ b/package.json @@ -11,4 +11,4 @@ "path": "node_modules/cz-git" } } -} +} \ No newline at end of file diff --git a/scripts/code.clean.ps1 b/scripts/code.clean.ps1 index b1fbeab..6bc0734 100644 --- a/scripts/code.clean.ps1 +++ b/scripts/code.clean.ps1 @@ -1,4 +1,4 @@ -dotnet jb cleanupcode --no-build --include = $( $( git status --porcelain | Where-Object { $_ -match "^\s*[MA]" } | ForEach-Object { $_.TrimStart(" M").TrimStart(" A") } ) -join ";" ) ../NSExt.sln +jb cleanupcode --no-build --include = $( $( git status --porcelain | Where-Object { $_ -match "^\s*[MA]" } | ForEach-Object { $_.TrimStart(" M").TrimStart(" A") } ) -join ";" ) ../NSExt.sln dot rbom -w -e refs -e .git -e node_modules ../ dot trim -w -e refs -e .git -e node_modules ../ dot tolf -w -e refs -e .git -e node_modules ../ \ No newline at end of file diff --git a/scripts/resharper.full.ps1 b/scripts/resharper.full.ps1 index da69383..9872c50 100644 --- a/scripts/resharper.full.ps1 +++ b/scripts/resharper.full.ps1 @@ -1 +1 @@ -dotnet jb cleanupcode --no-build ../NSExt.sln \ No newline at end of file +jb cleanupcode --no-build ../NSExt.sln \ No newline at end of file diff --git a/src/backend/NSExt/NSExt.csproj b/src/backend/NSExt/NSExt.csproj index c83cccc..5dbf59e 100644 --- a/src/backend/NSExt/NSExt.csproj +++ b/src/backend/NSExt/NSExt.csproj @@ -1,30 +1,15 @@ - ../../../key.snk - false - true - true - true - true - logo.png - MIT https://github.com/nsnail/NSExt.git - README.md - extensions - true - NSExt - true - snupkg + - - PreserveNewest