Skip to content

Commit 83deb73

Browse files
tknsnail
authored andcommitted
perf: ⚡ nuget update
1 parent 585f8f4 commit 83deb73

19 files changed

Lines changed: 46 additions & 33 deletions

File tree

Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
<Product>NetAdmin</Product>
2323
<RepositoryType>git</RepositoryType>
2424
<RepositoryUrl>https://github.com/nsnail/NetAdmin.git</RepositoryUrl>
25-
<TargetFramework>net9.0</TargetFramework>
25+
<TargetFramework Condition="'$(OS)' != 'Windows_NT'">net9.0</TargetFramework>
26+
<TargetFramework Condition="'$(OS)' == 'Windows_NT'">net9.0-windows</TargetFramework>
27+
<UseWindowsForms Condition="'$(OS)' == 'Windows_NT'">true</UseWindowsForms>
2628
<Title>$(AssemblyName)</Title>
2729
</PropertyGroup>
2830
<ItemGroup>

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ docker run -p 8080:8080 nsnail/netadmin
2020
## 构建步骤
2121

2222
所涉软件均推荐下载zip/tar版本,解压即用,一键删除,不会污染系统环境:
23+
2324
```shell
2425
# 1. 检查 dotnet sdk 版本 >=9.0.0
2526
dotnet --list-sdks

build/code.quality.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
</PackageReference>
18-
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.2-alpha">
18+
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>
2222
<PackageReference Include="Roslynator.Analyzers" Version="4.13.1">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
26-
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.9.0.115408">
26+
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.10.0.116381">
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>

build/copy.pkg.xml.comment.files.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<ItemGroup>
44
<PackageReferenceFiles
55
Condition="%(PackageReference.CopyToOutputDirectory) != ''"
6-
Include="$(NugetPackageRoot)\%(PackageReference.Identity)\%(PackageReference.Version)\%(PackageReference.CopyToOutputDirectory)" />
6+
Include="$(NugetPackageRoot)\%(PackageReference.Identity)\%(PackageReference.Version)\%(PackageReference.CopyToOutputDirectory)"/>
77
</ItemGroup>
8-
<Copy SourceFiles="@(PackageReferenceFiles)" DestinationFolder="$(OutDir)" />
8+
<Copy SourceFiles="@(PackageReferenceFiles)" DestinationFolder="$(OutDir)"/>
99
</Target>
1010
</Project>

build/prebuild.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project>
22
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
3-
<Exec Command="dotnet tool restore" StdOutEncoding="utf-8" />
3+
<Exec Command="dotnet tool restore" StdOutEncoding="utf-8"/>
44
<Exec Condition="!Exists('$(SolutionDir)/assets/res/Ln.resx')" WorkingDirectory="$(SolutionDir)/scripts"
55
Command="dotnet t4 ./gen.resx.tt -o ../assets/res/Ln.resx"
6-
StdOutEncoding="utf-8" />
6+
StdOutEncoding="utf-8"/>
77
<Exec Condition="!Exists('$(SolutionDir)/dist/backend/$(ProjectName)/Ln.cs')"
88
WorkingDirectory="$(SolutionDir)/scripts"
99
Command="dotnet t4 ./gen.cs.tt -o ../dist/backend/$(ProjectName)/Ln.cs"
10-
StdOutEncoding="utf-8" />
10+
StdOutEncoding="utf-8"/>
1111
</Target>
1212
</Project>

nuget.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
<configuration>
44
<packageSources>
5-
<add key="nuget.cdn.azure.cn" value="https://nuget.cdn.azure.cn/v3/index.json" />
5+
<add key="nuget.cdn.azure.cn" value="https://nuget.cdn.azure.cn/v3/index.json"/>
66
</packageSources>
77
</configuration>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env pwsh
22

33
git push origin :refs/tags/$(git tag -l "*-*")
4-
git tag -d $(git tag -l "*-*")
4+
git tag -d $( git tag -l "*-*" )

src/backend/NetAdmin/NetAdmin.Application/Services/RepositoryService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ protected Task<List<TEntity>> UpdateReturnListAsync( //
9898
TEntity newValue //
9999
, List<string> includeFields = null //
100100
, List<string> excludeFields = null //
101-
, Expression<Func<TEntity, bool>> whereExp = null //
102-
, string whereSql = null //
101+
, Expression<Func<TEntity, bool>> whereExp = null //
102+
, string whereSql = null //
103103
, bool ignoreVersion = false)
104104
{
105105
// 默认匹配主键

src/backend/NetAdmin/NetAdmin.Domain/Extensions/ISelectExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static ISelect<T1> WithNoLockNoWait<T1>(this ISelect<T1> me)
2626
where T1 : class
2727
{
2828
return me
29-
#if DBTYPE_SQLSERVER
29+
#if DBTYPE_SQLSERVER
3030
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
3131
#endif
3232
;
@@ -40,7 +40,7 @@ public static ISelect<T1, T2> WithNoLockNoWait<T1, T2>(this ISelect<T1, T2> me)
4040
where T2 : class
4141
{
4242
return me
43-
#if DBTYPE_SQLSERVER
43+
#if DBTYPE_SQLSERVER
4444
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
4545
#endif
4646
;
@@ -55,7 +55,7 @@ public static ISelect<T1, T2, T3> WithNoLockNoWait<T1, T2, T3>(this ISelect<T1,
5555
where T3 : class
5656
{
5757
return me
58-
#if DBTYPE_SQLSERVER
58+
#if DBTYPE_SQLSERVER
5959
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
6060
#endif
6161
;
@@ -71,7 +71,7 @@ public static ISelect<T1, T2, T3, T4> WithNoLockNoWait<T1, T2, T3, T4>(this ISel
7171
where T4 : class
7272
{
7373
return me
74-
#if DBTYPE_SQLSERVER
74+
#if DBTYPE_SQLSERVER
7575
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
7676
#endif
7777
;
@@ -88,7 +88,7 @@ public static ISelect<T1, T2, T3, T4, T5> WithNoLockNoWait<T1, T2, T3, T4, T5>(t
8888
where T5 : class
8989
{
9090
return me
91-
#if DBTYPE_SQLSERVER
91+
#if DBTYPE_SQLSERVER
9292
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
9393
#endif
9494
;
@@ -106,7 +106,7 @@ public static ISelect<T1, T2, T3, T4, T5, T6> WithNoLockNoWait<T1, T2, T3, T4, T
106106
where T6 : class
107107
{
108108
return me
109-
#if DBTYPE_SQLSERVER
109+
#if DBTYPE_SQLSERVER
110110
.WithLock(SqlServerLock.NoLock | SqlServerLock.NoWait)
111111
#endif
112112
;

src/backend/NetAdmin/NetAdmin.Domain/NetAdmin.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</ItemGroup>
66
<ItemGroup>
77
<PackageReference Include="CronExpressionDescriptor" Version="2.41.0"/>
8-
<PackageReference Include="Cronos" Version="0.10.0"/>
8+
<PackageReference Include="Cronos" Version="0.11.0"/>
99
<PackageReference Include="NetAdmin.CsvHelper" Version="1.0.0"/>
1010
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14"/>
1111
</ItemGroup>

0 commit comments

Comments
 (0)