File tree Expand file tree Collapse file tree 6 files changed +42
-7
lines changed
ImageSharpCompareTestNunit Expand file tree Collapse file tree 6 files changed +42
-7
lines changed Original file line number Diff line number Diff line change 55
66on :
77 push :
8- pull_request :
98
109jobs :
1110 build :
Original file line number Diff line number Diff line change 44 " streetsidesoftware.code-spell-checker" ,
55 " timonwong.shellcheck" ,
66 " redhat.vscode-xml" ,
7- " redhat.vscode-yaml"
7+ " redhat.vscode-yaml" ,
8+ " spmeesseman.vscode-taskexplorer"
89 ]
910}
Original file line number Diff line number Diff line change 4343 "type" : " shell" ,
4444 "command" : " './.vscode/updateNuget.sh'" ,
4545 "problemMatcher" : []
46+ },
47+ {
48+ "label" : " update nuget packages (windows)" ,
49+ "type" : " shell" ,
50+ "command" : " powershell" ,
51+ "args" : [
52+ " -ExecutionPolicy" ,
53+ " Bypass" ,
54+ " -File" ,
55+ " ./.vscode/updateNuget.ps1"
56+ ],
57+ "problemMatcher" : []
4658 }
4759 ]
4860}
Original file line number Diff line number Diff line change 1+ # PowerShell script to update NuGet packages in all project files
2+ # This script finds all .csproj and .fsproj files and updates stable (non-prerelease) packages
3+
4+ $regex = ' PackageReference Include="([^"]*)" Version="([^"]*)"'
5+
6+ Get-ChildItem - Path . - Recurse - Include " *.csproj" , " *.fsproj" | ForEach-Object {
7+ $projFile = $_.FullName
8+ Write-Host " Processing project: $projFile "
9+ $content = Get-Content $projFile
10+ foreach ($line in $content ) {
11+ if ($line -match $regex ) {
12+ $packageName = $matches [1 ]
13+ $version = $matches [2 ]
14+ Write-Host " Found package: $packageName , version: $version "
15+
16+ # Only update stable versions (not prerelease versions containing -)
17+ if ($version -notmatch ' -' ) {
18+ Write-Host " Updating package: $packageName "
19+ dotnet add " $projFile " package " $packageName "
20+ }
21+ }
22+ }
23+ }
Original file line number Diff line number Diff line change 4545
4646 <ItemGroup >
4747 <PackageReference Include =" SixLabors.ImageSharp" Version =" 3.1.11" />
48- <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 10.9 .0.115408 " >
48+ <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 10.15 .0.120848 " >
4949 <PrivateAssets >all</PrivateAssets >
5050 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
5151 </PackageReference >
Original file line number Diff line number Diff line change 1212 <PrivateAssets >all</PrivateAssets >
1313 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1414 </PackageReference >
15- <PackageReference Include =" nunit" Version =" 4.3.2 " />
15+ <PackageReference Include =" nunit" Version =" 4.4.0 " />
1616 <PackageReference Include =" NUnit.Analyzers" Version =" 4.10.0" >
1717 <PrivateAssets >all</PrivateAssets >
1818 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1919 </PackageReference >
20- <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 10.9 .0.115408 " >
20+ <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 10.15 .0.120848 " >
2121 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2222 <PrivateAssets >all</PrivateAssets >
2323 </PackageReference >
24- <PackageReference Include =" NUnit3TestAdapter" Version =" 5.0 .0" >
24+ <PackageReference Include =" NUnit3TestAdapter" Version =" 5.1 .0" >
2525 <PrivateAssets >all</PrivateAssets >
2626 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2727 </PackageReference >
28- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.13.0 " />
28+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.14.1 " />
2929 </ItemGroup >
3030
3131 <ItemGroup >
You can’t perform that action at this time.
0 commit comments