Update nuget depencencies#1218
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates NuGet dependencies and related configuration, including changes to remove obsolete warnings and update test configurations.
- Removed the obsolete test for keyed services diagnostics in telemetry tests.
- Updated the test data retrieval to use [CallerFilePath] instead of assembly location.
- Removed legacy pragma warnings and adjusted SchemaGenerator initialization in the API controller.
Reviewed Changes
Copilot reviewed 4 out of 14 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/Altinn.App.Api.Tests/Telemetry/TelemetryConfigurationTests.cs | Removed the KeyedServices_Produces_Error_Diagnostics test to align with updated ApplicationInsights package changes. |
| test/Altinn.App.Api.Tests/Data/TestData.cs | Reworked GetTestDataRootDirectory to use [CallerFilePath] instead of assembly location for locating test data. |
| src/Altinn.App.Core/Extensions/ServiceCollectionExtensions.cs | Removed obsolete pragma warnings around AddHybridCache, now using the released version. |
| src/Altinn.App.Api/Controllers/CustomOpenApiController.cs | Updated SchemaGenerator initialization to remove dependency on MvcOptions following the dependency update. |
Files not reviewed (10)
- global.json: Language not supported
- src/Altinn.App.Api/Altinn.App.Api.csproj: Language not supported
- src/Altinn.App.Core/Altinn.App.Core.csproj: Language not supported
- src/Altinn.App.Internal.Analyzers/Altinn.App.Internal.Analyzers.csproj: Language not supported
- test/Altinn.App.Api.Tests/Altinn.App.Api.Tests.csproj: Language not supported
- test/Altinn.App.Api.Tests/OpenApi/OpenApiSpecChangeDetection.SaveCustomOpenApiSpec.verified.json: Language not supported
- test/Altinn.App.Api.Tests/OpenApi/OpenApiSpecChangeDetection.SaveJsonSwagger.verified.json: Language not supported
- test/Altinn.App.Core.Tests/Altinn.App.Core.Tests.csproj: Language not supported
- test/Altinn.App.Core.Tests/Internal/App/AppMetadataTest.GetApplicationMetadata_deserialize_serialize_unmapped_properties.verified.txt: Language not supported
- test/Altinn.App.Tests.Common/Altinn.App.Tests.Common.csproj: Language not supported
martinothamar
approved these changes
Mar 30, 2025
Notable changes * Changed from Microsoft.CodeAnalysis.Workspaces to Microsoft.CodeAnalysis.CSharp, in Inernal.Analyzers because of a compiller warning see: https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md * Updated SDK reference in global.json * Updated Applicationinsights package and removed the test from #594 * Updated to released version of HybridCache and remove #pragma waring disable for preview * Used [CallerFilePath] intead of assemly location to find test data folder.
40eacd3 to
7321c1c
Compare
|
ivarne
added a commit
that referenced
this pull request
Mar 30, 2025
* Update nuget depencencies Notable changes * Changed from Microsoft.CodeAnalysis.Workspaces to Microsoft.CodeAnalysis.CSharp, in Inernal.Analyzers because of a compiller warning see: https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md * Updated SDK reference in global.json * Updated Applicationinsights package and removed the test from #594 * Updated to released version of HybridCache and remove #pragma waring disable for preview * Used [CallerFilePath] intead of assemly location to find test data folder.
This was referenced Mar 30, 2025
ivarne
added a commit
that referenced
this pull request
Apr 4, 2025
* Update nuget depencencies Notable changes * Changed from Microsoft.CodeAnalysis.Workspaces to Microsoft.CodeAnalysis.CSharp, in Inernal.Analyzers because of a compiller warning see: https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md * Updated SDK reference in global.json * Updated Applicationinsights package and removed the test from #594 * Updated to released version of HybridCache and remove #pragma waring disable for preview * Used [CallerFilePath] intead of assemly location to find test data folder.
olamathiesenBlueTree
pushed a commit
to olamathiesenBlueTree/fork-altinn-app-lib-dotnet
that referenced
this pull request
Apr 8, 2025
* Update nuget depencencies Notable changes * Changed from Microsoft.CodeAnalysis.Workspaces to Microsoft.CodeAnalysis.CSharp, in Inernal.Analyzers because of a compiller warning see: https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md * Updated SDK reference in global.json * Updated Applicationinsights package and removed the test from Altinn#594 * Updated to released version of HybridCache and remove #pragma waring disable for preview * Used [CallerFilePath] intead of assemly location to find test data folder. * Revert to Altinn.Platform.Storage.Interface v 4.0.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Notable changes
Replaces
Verification
Documentation