mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-06-16 08:53:21 +08:00
perf: ⚡ nuget update
This commit is contained in:
parent
585f8f4e43
commit
83deb735d0
@ -22,7 +22,9 @@
|
|||||||
<Product>NetAdmin</Product>
|
<Product>NetAdmin</Product>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<RepositoryUrl>https://github.com/nsnail/NetAdmin.git</RepositoryUrl>
|
<RepositoryUrl>https://github.com/nsnail/NetAdmin.git</RepositoryUrl>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework Condition="'$(OS)' != 'Windows_NT'">net9.0</TargetFramework>
|
||||||
|
<TargetFramework Condition="'$(OS)' == 'Windows_NT'">net9.0-windows</TargetFramework>
|
||||||
|
<UseWindowsForms Condition="'$(OS)' == 'Windows_NT'">true</UseWindowsForms>
|
||||||
<Title>$(AssemblyName)</Title>
|
<Title>$(AssemblyName)</Title>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -20,6 +20,7 @@ docker run -p 8080:8080 nsnail/netadmin
|
|||||||
## 构建步骤
|
## 构建步骤
|
||||||
|
|
||||||
所涉软件均推荐下载zip/tar版本,解压即用,一键删除,不会污染系统环境:
|
所涉软件均推荐下载zip/tar版本,解压即用,一键删除,不会污染系统环境:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# 1. 检查 dotnet sdk 版本 >=9.0.0
|
# 1. 检查 dotnet sdk 版本 >=9.0.0
|
||||||
dotnet --list-sdks
|
dotnet --list-sdks
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.2-alpha">
|
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.9.0.115408">
|
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.10.0.116381">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="CronExpressionDescriptor" Version="2.41.0"/>
|
<PackageReference Include="CronExpressionDescriptor" Version="2.41.0"/>
|
||||||
<PackageReference Include="Cronos" Version="0.10.0"/>
|
<PackageReference Include="Cronos" Version="0.11.0"/>
|
||||||
<PackageReference Include="NetAdmin.CsvHelper" Version="1.0.0"/>
|
<PackageReference Include="NetAdmin.CsvHelper" Version="1.0.0"/>
|
||||||
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14"/>
|
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
using Spectre.Console;
|
using Spectre.Console;
|
||||||
using Spectre.Console.Cli;
|
using Spectre.Console.Cli;
|
||||||
|
#if WINDOWS
|
||||||
|
using Color = Spectre.Console.Color;
|
||||||
|
using Panel = Spectre.Console.Panel;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace NetAdmin.Host;
|
namespace NetAdmin.Host;
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ public static class Chars
|
|||||||
public const string FLG_CONTEXT_USER_ID = nameof(FLG_CONTEXT_USER_ID);
|
public const string FLG_CONTEXT_USER_ID = nameof(FLG_CONTEXT_USER_ID);
|
||||||
public const string FLG_CONTEXT_USER_INFO = nameof(FLG_CONTEXT_USER_INFO);
|
public const string FLG_CONTEXT_USER_INFO = nameof(FLG_CONTEXT_USER_INFO);
|
||||||
public const string FLG_CRON_PER_SECS = "* * * * * *";
|
public const string FLG_CRON_PER_SECS = "* * * * * *";
|
||||||
|
public const string FLG_DB_EXCEPTION_IDX = "idx_";
|
||||||
public const string FLG_DB_EXCEPTION_PRIMARY_KEY_CONFLICT = "PRIMARY KEY";
|
public const string FLG_DB_EXCEPTION_PRIMARY_KEY_CONFLICT = "PRIMARY KEY";
|
||||||
public const string FLG_DB_EXCEPTION_UNIQUE_CONSTRAINT_CONFLICT = "UNIQUE constraint";
|
public const string FLG_DB_EXCEPTION_UNIQUE_CONSTRAINT_CONFLICT = "UNIQUE constraint";
|
||||||
public const string FLG_DB_EXCEPTION_IDX = "idx_";
|
|
||||||
public const string FLG_DB_FIELD_TYPE_NVARCHAR = "nvarchar";
|
public const string FLG_DB_FIELD_TYPE_NVARCHAR = "nvarchar";
|
||||||
public const string FLG_DB_FIELD_TYPE_NVARCHAR_1022 = "nvarchar(1022)";
|
public const string FLG_DB_FIELD_TYPE_NVARCHAR_1022 = "nvarchar(1022)";
|
||||||
public const string FLG_DB_FIELD_TYPE_NVARCHAR_127 = "nvarchar(127)";
|
public const string FLG_DB_FIELD_TYPE_NVARCHAR_127 = "nvarchar(127)";
|
||||||
|
@ -4,6 +4,11 @@ using SixLabors.ImageSharp.Drawing.Processing;
|
|||||||
using SixLabors.ImageSharp.Formats.Png;
|
using SixLabors.ImageSharp.Formats.Png;
|
||||||
using SixLabors.ImageSharp.PixelFormats;
|
using SixLabors.ImageSharp.PixelFormats;
|
||||||
using SixLabors.ImageSharp.Processing;
|
using SixLabors.ImageSharp.Processing;
|
||||||
|
#if WINDOWS
|
||||||
|
using Image = SixLabors.ImageSharp.Image;
|
||||||
|
using Point = SixLabors.ImageSharp.Point;
|
||||||
|
using Size = SixLabors.ImageSharp.Size;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace NetAdmin.Infrastructure.Utils;
|
namespace NetAdmin.Infrastructure.Utils;
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
using NetAdmin.Domain.Dto.Sys.Captcha;
|
using NetAdmin.Domain.Dto.Sys.Captcha;
|
||||||
using SixLabors.ImageSharp;
|
|
||||||
using Yitter.IdGenerator;
|
using Yitter.IdGenerator;
|
||||||
|
#if WINDOWS
|
||||||
|
using Size = SixLabors.ImageSharp.Size;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace NetAdmin.SysComponent.Application.Services.Sys;
|
namespace NetAdmin.SysComponent.Application.Services.Sys;
|
||||||
|
|
||||||
|
@ -136,8 +136,7 @@ public sealed class UserProfileService(BasicRepository<Sys_UserProfile, long> rp
|
|||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
return new PagedQueryRsp<QueryUserProfileRsp>(req.Page, req.PageSize, total
|
return new PagedQueryRsp<QueryUserProfileRsp>(req.Page, req.PageSize, total
|
||||||
, list.ConvertAll(
|
, list.ConvertAll(x => x.a.Adapt<QueryUserProfileRsp>() with {
|
||||||
x => x.a.Adapt<QueryUserProfileRsp>() with {
|
|
||||||
NationArea = x.b.Adapt<QueryDicContentRsp>()
|
NationArea = x.b.Adapt<QueryDicContentRsp>()
|
||||||
, CompanyArea = x.c.Adapt<QueryDicContentRsp>()
|
, CompanyArea = x.c.Adapt<QueryDicContentRsp>()
|
||||||
, HomeArea = x.d.Adapt<QueryDicContentRsp>()
|
, HomeArea = x.d.Adapt<QueryDicContentRsp>()
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
<ProjectReference Include="../NetAdmin/NetAdmin.Tests/NetAdmin.Tests.csproj"/>
|
<ProjectReference Include="../NetAdmin/NetAdmin.Tests/NetAdmin.Tests.csproj"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0-preview-25107-01"/>
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user