Skip to content

Commit

Permalink
Update dependencies to fix known critical severity vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Nov 15, 2024
1 parent 68a5de6 commit a0f62a7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CSharpInteractive.HostApi/CSharpInteractive.HostApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NuGet.Versioning" Version="6.4.0"/>
<PackageReference Include="NuGet.Versioning" Version="6.8.1"/>
<PackageReference Include="TeamCity.ServiceMessages" Version="4.1.1"/>
<InternalsVisibleTo Include="DynamicProxyGenAssembly2"/>
<InternalsVisibleTo Include="dotnet-csi"/>
Expand Down
24 changes: 20 additions & 4 deletions CSharpInteractive/CSharpInteractive.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Scripting" Version="4.12.0-3.final" />
<PackageReference Include="NuGet.Build.Tasks" Version="6.4.0"/>
<PackageReference Include="Microsoft.Build.Framework" Version="16.8.0" IncludeAssets="all"/>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.8.0" IncludeAssets="all"/>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -43,11 +40,30 @@
<PackageReference Include="TeamCity.ServiceMessages" Version="4.1.1"/>
<ProjectReference Include="..\CSharpInteractive.HostApi\CSharpInteractive.HostApi.csproj" PrivateAssets="all"/>
<PackageReference Include="TeamCity.DotNet.Integration" Version="1.0.33" PrivateAssets="all" GeneratePathProperty="true" ExcludeAssets="All" IncludeAssets="none" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<InternalsVisibleTo Include="CSharpInteractive.Tests"/>
<InternalsVisibleTo Include="DynamicProxyGenAssembly2"/>
</ItemGroup>

<Choose>
<When Condition="'$(TargetFramework)'=='net6.0' or '$(TargetFramework)'=='net7.0'">
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="NuGet.Build.Tasks" Version="6.8.1"/>
<PackageReference Include="Microsoft.Build.Framework" Version="16.11.0" IncludeAssets="all"/>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.11.0" IncludeAssets="all"/>
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="NuGet.Build.Tasks" Version="6.11.1"/>
<PackageReference Include="Microsoft.Build.Framework" Version="17.11.4" IncludeAssets="all"/>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.11.4" IncludeAssets="all"/>
<PackageReference Include="System.Formats.Asn1" Version="9.0.0" IncludeAssets="all"/>
</ItemGroup>
</Otherwise>
</Choose>

<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
</PropertyGroup>
Expand Down
24 changes: 20 additions & 4 deletions CSharpInteractive/CSharpInteractive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Scripting" Version="4.12.0-3.final" />
<PackageReference Include="NuGet.Build.Tasks" Version="6.4.0"/>
<PackageReference Include="Microsoft.Build.Framework" Version="16.8.0" IncludeAssets="all"/>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.8.0" IncludeAssets="all"/>
<PackageReference Include="Pure.DI" Version="2.1.38">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -34,13 +31,32 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="TeamCity.ServiceMessages" Version="4.1.1"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<ProjectReference Include="..\CSharpInteractive.HostApi\CSharpInteractive.HostApi.csproj" PrivateAssets="all" GeneratePathProperty="true" IncludeAssets="All"/>
<PackageReference Include="TeamCity.DotNet.Integration" Version="1.0.33" PrivateAssets="all" GeneratePathProperty="true" ExcludeAssets="All" IncludeAssets="none" />
<InternalsVisibleTo Include="CSharpInteractive.Tests"/>
<InternalsVisibleTo Include="DynamicProxyGenAssembly2"/>
</ItemGroup>

<Choose>
<When Condition="'$(TargetFramework)'=='net6.0' or '$(TargetFramework)'=='net7.0'">
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
<PackageReference Include="NuGet.Build.Tasks" Version="6.8.1"/>
<PackageReference Include="Microsoft.Build.Framework" Version="16.11.0" IncludeAssets="all"/>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.11.0" IncludeAssets="all"/>
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="NuGet.Build.Tasks" Version="6.11.1"/>
<PackageReference Include="Microsoft.Build.Framework" Version="17.11.4" IncludeAssets="all"/>
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.11.4" IncludeAssets="all"/>
<PackageReference Include="System.Formats.Asn1" Version="9.0.0" IncludeAssets="all"/>
</ItemGroup>
</Otherwise>
</Choose>

<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>NETSDK1057;NETSDK1215;NU1605;NU5118;NU5100;NU5131;NU5104;NU5105;NU1902;NU1903;NU1904;CS2008;CS1591</NoWarn>
<NoWarn>NETSDK1138;NETSDK1057;NETSDK1215;NU1605;NU5118;NU5100;NU5131;NU5104;NU5105;NU1902;NU1903;NU1904;CS2008;CS1591</NoWarn>
<Version>1.0.0-dev</Version>
<Authors>NikolayP</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand Down

0 comments on commit a0f62a7

Please sign in to comment.