Skip to content

Commit b7a5db4

Browse files
committed
Update NuGet packages and refine project configurations
Updated various NuGet packages to their latest versions, including test SDKs, MSTest components, Entity Framework Core, and others. Adjusted NPM installation targets in `Mwh.Sample.Web.csproj` for better error handling and formatting. Modified the `PublishClientAssets` target to ensure correct inclusion and exclusion of resolved files during the publish process.
1 parent 6b1bdf7 commit b7a5db4

File tree

6 files changed

+23
-26
lines changed

6 files changed

+23
-26
lines changed

Mwh.Sample.Domain.Tests/Mwh.Sample.Domain.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</None>
1919
</ItemGroup>
2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
22-
<PackageReference Include="MSTest.TestAdapter" Version="3.8.3" />
23-
<PackageReference Include="MSTest.TestFramework" Version="3.8.3" />
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
22+
<PackageReference Include="MSTest.TestAdapter" Version="3.9.0" />
23+
<PackageReference Include="MSTest.TestFramework" Version="3.9.0" />
2424
<PackageReference Include="coverlet.collector" Version="6.0.4">
2525
<PrivateAssets>all</PrivateAssets>
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Mwh.Sample.Domain/Mwh.Sample.Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
<FrameworkReference Include="Microsoft.AspNetCore.App" />
2828
</ItemGroup>
2929
<ItemGroup>
30-
<PackageReference Include="System.Drawing.Common" Version="9.0.4" />
30+
<PackageReference Include="System.Drawing.Common" Version="9.0.5" />
3131
</ItemGroup>
3232
</Project>

Mwh.Sample.HttpClientFactory/Mwh.Sample.HttpClientFactory.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</ItemGroup>
2121
<ItemGroup>
2222
<FrameworkReference Include="Microsoft.AspNetCore.App" />
23-
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.4" />
24-
<PackageReference Include="System.Text.Json" Version="9.0.4" />
23+
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.5" />
24+
<PackageReference Include="System.Text.Json" Version="9.0.5" />
2525
</ItemGroup>
2626
<ItemGroup>
2727
<ProjectReference Include="..\Mwh.Sample.Domain\Mwh.Sample.Domain.csproj" />

Mwh.Sample.Repository.Tests/Mwh.Sample.Repository.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
</None>
1919
</ItemGroup>
2020
<ItemGroup>
21-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
21+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
2222
<PackageReference Include="Moq" Version="4.20.72" />
23-
<PackageReference Include="MSTest.TestAdapter" Version="3.8.3" />
24-
<PackageReference Include="MSTest.TestFramework" Version="3.8.3" />
23+
<PackageReference Include="MSTest.TestAdapter" Version="3.9.0" />
24+
<PackageReference Include="MSTest.TestFramework" Version="3.9.0" />
2525
<PackageReference Include="coverlet.collector" Version="6.0.4">
2626
<PrivateAssets>all</PrivateAssets>
2727
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Mwh.Sample.Repository/Mwh.Sample.Repository.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
</ItemGroup>
2828
<ItemGroup>
2929
<PackageReference Include="Bogus" Version="35.6.3" />
30-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.4" />
31-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.4" />
32-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.4" />
30+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.5" />
31+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.5" />
32+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.5" />
3333
</ItemGroup>
3434
<ItemGroup>
3535
<ProjectReference Include="..\Mwh.Sample.Domain\Mwh.Sample.Domain.csproj" />

Mwh.Sample.Web/Mwh.Sample.Web.csproj

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
</PropertyGroup>
1919
<ItemGroup>
2020
<PackageReference Include="Azure.Extensions.AspNetCore.Configuration.Secrets" Version="1.4.0" />
21-
<PackageReference Include="Azure.Identity" Version="1.13.2" />
21+
<PackageReference Include="Azure.Identity" Version="1.14.0" />
2222
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />
2323
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.23.0" />
24-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.4" />
25-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.4" />
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.4" />
27-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.4">
24+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.5" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.5" />
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.5" />
27+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.5">
2828
<PrivateAssets>all</PrivateAssets>
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>
3131
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" />
3232
<!-- Removed LibraryManager reference -->
33-
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.1" />
34-
<PackageReference Include="System.Formats.Asn1" Version="9.0.4" />
35-
<PackageReference Include="System.Text.Json" Version="9.0.4" />
33+
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.2" />
34+
<PackageReference Include="System.Formats.Asn1" Version="9.0.5" />
35+
<PackageReference Include="System.Text.Json" Version="9.0.5" />
3636
<PackageReference Include="Westwind.AspNetCore.Markdown" Version="3.23.0" />
3737
</ItemGroup>
3838
<ItemGroup>
@@ -74,12 +74,10 @@
7474
<Exec Command="npm --version" ContinueOnError="true">
7575
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
7676
</Exec>
77-
<Error Condition="'$(ErrorCode)' != '0'"
78-
Text="NPM is required to build this project. To continue, please install Node.js from https://nodejs.org/." />
77+
<Error Condition="'$(ErrorCode)' != '0'" Text="NPM is required to build this project. To continue, please install Node.js from https://nodejs.org/." />
7978
</Target>
8079

81-
<Target Name="NpmInstall" BeforeTargets="BuildClientAssets" Inputs="package.json"
82-
Outputs="node_modules/.install-stamp">
80+
<Target Name="NpmInstall" BeforeTargets="BuildClientAssets" Inputs="package.json" Outputs="node_modules/.install-stamp">
8381
<Message Importance="high" Text="Installing npm packages..." />
8482
<Exec Command="npm ci" Condition="Exists('$(MSBuildProjectDirectory)\package-lock.json')" />
8583
<Exec Command="npm install" Condition="!Exists('$(MSBuildProjectDirectory)\package-lock.json')" />
@@ -94,8 +92,7 @@
9492
<Target Name="PublishClientAssets" AfterTargets="ComputeFilesToPublish">
9593
<ItemGroup>
9694
<DistFiles Include="wwwroot\lib\**" />
97-
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')"
98-
Exclude="@(ResolvedFileToPublish)">
95+
<ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)">
9996
<RelativePath>%(DistFiles.Identity)</RelativePath>
10097
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
10198
</ResolvedFileToPublish>

0 commit comments

Comments
 (0)