mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-04-19 18:22:50 +08:00
build: 📦 nuget 构建相关 (#4)
This commit is contained in:
parent
cf2988b389
commit
cc703816ca
@ -21,6 +21,7 @@
|
|||||||
<Product>NSExt</Product>
|
<Product>NSExt</Product>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<RepositoryUrl>https://github.com/nsnail/NSExt.git</RepositoryUrl>
|
<RepositoryUrl>https://github.com/nsnail/NSExt.git</RepositoryUrl>
|
||||||
|
<RootNamespace>NSExt</RootNamespace>
|
||||||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||||
<Title>$(AssemblyName)</Title>
|
<Title>$(AssemblyName)</Title>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
@ -13,13 +13,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{5198A03D-0
|
|||||||
.editorconfig = .editorconfig
|
.editorconfig = .editorconfig
|
||||||
.gitattributes = .gitattributes
|
.gitattributes = .gitattributes
|
||||||
.gitignore = .gitignore
|
.gitignore = .gitignore
|
||||||
|
CHANGELOG.md = CHANGELOG.md
|
||||||
Directory.Build.props = Directory.Build.props
|
Directory.Build.props = Directory.Build.props
|
||||||
dotnet-tools.json = dotnet-tools.json
|
dotnet-tools.json = dotnet-tools.json
|
||||||
global.json = global.json
|
global.json = global.json
|
||||||
key.snk = key.snk
|
key.snk = key.snk
|
||||||
LICENSE = LICENSE
|
LICENSE = LICENSE
|
||||||
NSExt.sln.DotSettings = NSExt.sln.DotSettings
|
NSExt.sln.DotSettings = NSExt.sln.DotSettings
|
||||||
NuGet.Config = NuGet.Config
|
nuget.config = nuget.config
|
||||||
package.json = package.json
|
package.json = package.json
|
||||||
README.md = README.md
|
README.md = README.md
|
||||||
README.zh-CN.md = README.zh-CN.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
|
code.quality.props = build/code.quality.props
|
||||||
copy.pkg.xml.comment.files.targets = build/copy.pkg.xml.comment.files.targets
|
copy.pkg.xml.comment.files.targets = build/copy.pkg.xml.comment.files.targets
|
||||||
minver.targets = build/minver.targets
|
minver.targets = build/minver.targets
|
||||||
|
nuget.package.props = build/nuget.package.props
|
||||||
prebuild.targets = build/prebuild.targets
|
prebuild.targets = build/prebuild.targets
|
||||||
stylecop.analyzers.ruleset = build/stylecop.analyzers.ruleset
|
stylecop.analyzers.ruleset = build/stylecop.analyzers.ruleset
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
|
20
build/nuget.package.props
Normal file
20
build/nuget.package.props
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<AssemblyOriginatorKeyFile>../../../key.snk</AssemblyOriginatorKeyFile>
|
||||||
|
<DelaySign>false</DelaySign>
|
||||||
|
<EmbedAllSources>true</EmbedAllSources>
|
||||||
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
<IsPackable>true</IsPackable>
|
||||||
|
<PackageIcon>logo.png</PackageIcon>
|
||||||
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
|
<PackageTags>extensions</PackageTags>
|
||||||
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
|
<SignAssembly>true</SignAssembly>
|
||||||
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="../../../assets/logo.png" Pack="true" PackagePath="/"/>
|
||||||
|
<None Include="../../../README.md" Pack="true" PackagePath="/"/>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -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 rbom -w -e refs -e .git -e node_modules ../
|
||||||
dot trim -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 ../
|
dot tolf -w -e refs -e .git -e node_modules ../
|
@ -1 +1 @@
|
|||||||
dotnet jb cleanupcode --no-build ../NSExt.sln
|
jb cleanupcode --no-build ../NSExt.sln
|
@ -1,30 +1,15 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyOriginatorKeyFile>../../../key.snk</AssemblyOriginatorKeyFile>
|
|
||||||
<DelaySign>false</DelaySign>
|
|
||||||
<EmbedAllSources>true</EmbedAllSources>
|
|
||||||
<EmbedUntrackedSource>true</EmbedUntrackedSource>
|
|
||||||
<IncludeSymbols>true</IncludeSymbols>
|
|
||||||
<IsPackable>true</IsPackable>
|
|
||||||
<PackageIcon>logo.png</PackageIcon>
|
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
||||||
<PackageProjectUrl>https://github.com/nsnail/NSExt.git</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/nsnail/NSExt.git</PackageProjectUrl>
|
||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
|
||||||
<PackageTags>extensions</PackageTags>
|
|
||||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
|
||||||
<RootNamespace>NSExt</RootNamespace>
|
|
||||||
<SignAssembly>true</SignAssembly>
|
|
||||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(SolutionDir)/build/code.quality.props"/>
|
<Import Project="$(SolutionDir)/build/code.quality.props"/>
|
||||||
|
<Import Project="$(SolutionDir)/build/nuget.package.props"/>
|
||||||
<Import Project="$(SolutionDir)/build/copy.pkg.xml.comment.files.targets"/>
|
<Import Project="$(SolutionDir)/build/copy.pkg.xml.comment.files.targets"/>
|
||||||
<Import Project="$(SolutionDir)/build/prebuild.targets"/>
|
<Import Project="$(SolutionDir)/build/prebuild.targets"/>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0"/>
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="../../../assets/logo.png" Pack="true" PackagePath="/"/>
|
|
||||||
<None Include="../../../README.md" Pack="true" PackagePath="/"/>
|
|
||||||
<None Update="*.json">
|
<None Update="*.json">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user