This commit is contained in:
Anupong Hompan 2025-10-24 22:04:07 +07:00
parent 9c38937e02
commit 4fe54e8bc7
2 changed files with 16 additions and 2 deletions

View File

@ -4,7 +4,10 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization>
<DefaultItemExcludes>$(DefaultItemExcludes);AS400API.Tests/**</DefaultItemExcludes>
</PropertyGroup>
<!-- Package references -->
<ItemGroup>
<PackageReference Include="Dapper" Version="2.1.28" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
@ -14,7 +17,16 @@
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
</ItemGroup>
<!-- Remove build/test/output from Content/None (safe for SDK-style projects) -->
<ItemGroup>
<Compile Remove="AS400API.Tests/**/*.cs" />
<Content Remove="bin/**;obj/**;out/**;TestResults/**;**/*.Tests/**;**/AS400API.Tests/**" />
<None Remove="bin/**;obj/**;out/**;TestResults/**;**/*.Tests/**;**/AS400API.Tests/**" />
</ItemGroup>
<ItemGroup>
<Content Update="appsettings*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

4
Jenkinsfile vendored
View File

@ -60,6 +60,7 @@ pipeline {
mkdir -p "${WORKSPACE}/.dotnet"
curl -fsSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
bash dotnet-install.sh --channel 9.0 --install-dir "${WORKSPACE}/.dotnet"
bash dotnet-install.sh --channel 8.0 --install-dir "${WORKSPACE}/.dotnet"
export PATH="${WORKSPACE}/.dotnet:${PATH}"
dotnet --info
@ -93,7 +94,8 @@ pipeline {
--scan . \
--out depcheck \
--data "${DC_DATA}" \
--noupdate || true
--noupdate || true \
--disableAssembly
'''
}
post {