Skip to content

Commit 4d7b838

Browse files
authored
Housekeeping - Update Packages Use SDK 7.0 Fix Code Suggestions (#1062)
Update copyright year
1 parent c81a1fa commit 4d7b838

File tree

202 files changed

+442
-542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+442
-542
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ dotnet_diagnostic.SA1006.severity = error
255255
dotnet_diagnostic.SA1007.severity = error
256256
dotnet_diagnostic.SA1008.severity = error
257257
dotnet_diagnostic.SA1009.severity = error
258-
dotnet_diagnostic.SA1010.severity = error
258+
dotnet_diagnostic.SA1010.severity = suggestion
259259
dotnet_diagnostic.SA1011.severity = error
260260
dotnet_diagnostic.SA1012.severity = error
261261
dotnet_diagnostic.SA1013.severity = error

src/Directory.build.props

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<AnalysisLevel>latest</AnalysisLevel>
2626
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
2727
<ImplicitUsings>true</ImplicitUsings>
28-
<LangVersion>latest</LangVersion>
28+
<LangVersion>preview</LangVersion>
29+
<NoWarn>$(NoWarn);VSSpell001</NoWarn>
2930

3031
<!-- disable sourcelink on mono, to workaround https://github.com/dotnet/sourcelink/issues/155 -->
3132
<EnableSourceLink Condition=" '$(OS)' != 'Windows_NT' AND '$(MSBuildRuntimeType)' != 'Core' ">false</EnableSourceLink>
@@ -37,6 +38,9 @@
3738
<!-- Include PDB in the built .nupkg -->
3839
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
3940
</PropertyGroup>
41+
<PropertyGroup Condition="$(IsTestProject) != 'true'">
42+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
43+
</PropertyGroup>
4044

4145
<!-- MonoAndroid doesn't seem to want to allow debugging for maintainers -->
4246
<PropertyGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) ">
@@ -49,7 +53,7 @@
4953

5054
<ItemGroup Condition="$(IsTestProject) or $(MSBuildProjectName.Contains('TestRunner'))">
5155
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
52-
<PackageReference Include="xunit" Version="2.6.0" />
56+
<PackageReference Include="xunit" Version="2.6.1" />
5357
<PackageReference Include="Xunit.StaFact" Version="1.1.11" />
5458
<PackageReference Include="FluentAssertions" Version="6.12.0" />
5559
<PackageReference Include="Microsoft.Reactive.Testing" Version="6.0.0" />
@@ -58,7 +62,7 @@
5862
</ItemGroup>
5963

6064
<ItemGroup Condition="$(IsTestProject)">
61-
<PackageReference Include="xunit.runner.console" Version="2.6.0" />
65+
<PackageReference Include="xunit.runner.console" Version="2.6.1" />
6266
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
6367
<PackageReference Include="coverlet.msbuild" Version="6.0.0" />
6468
</ItemGroup>
@@ -78,7 +82,7 @@
7882
<ItemGroup>
7983
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
8084
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.507" PrivateAssets="all" />
81-
<PackageReference Include="Roslynator.Analyzers" Version="4.5.0" PrivateAssets="All" />
85+
<PackageReference Include="Roslynator.Analyzers" Version="4.6.1" PrivateAssets="All" />
8286
</ItemGroup>
8387

8488
<ItemGroup>

src/ReactiveUI.DI.Tests/ReactiveUI.DI.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFrameworks>net472;net6.0;</TargetFrameworks>
55
<NoWarn>$(NoWarn);1591;CA1707;SA1633;CA2000</NoWarn>
66
<IsPackable>false</IsPackable>
7-
<LangVersion>latest</LangVersion>
87
<Nullable>enable</Nullable>
98
</PropertyGroup>
109

src/Splat.AppCenter/AppCenterFeatureUsageTrackingSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Splat.AppCenter/AppCenterViewTracking.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Splat.AppCenter/Splat.AppCenter.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<Authors>.NET Foundation and Contributors</Authors>
99
<Description>Visual Studio AppCenter integrations for Splat</Description>
1010
<PackageId>Splat.AppCenter</PackageId>
11-
<LangVersion>latest</LangVersion>
1211
<Nullable>enable</Nullable>
1312
</PropertyGroup>
1413

src/Splat.ApplicationInsights/ApplicationInsightsFeatureUsageTrackingSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.

src/Splat.ApplicationInsights/ApplicationInsightsViewTracking.cs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved.
1+
// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved.
22
// Licensed to the .NET Foundation under one or more agreements.
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
@@ -12,15 +12,13 @@ namespace Splat;
1212
/// <summary>
1313
/// View Tracking integration for Application Insights.
1414
/// </summary>
15-
public sealed class ApplicationInsightsViewTracking : IViewTracking
15+
/// <remarks>
16+
/// Initializes a new instance of the <see cref="ApplicationInsightsViewTracking"/> class.
17+
/// </remarks>
18+
/// <param name="telemetryClient">The Application Insights telemetry client instance to use.</param>
19+
public sealed class ApplicationInsightsViewTracking(TelemetryClient telemetryClient) : IViewTracking
1620
{
17-
private readonly TelemetryClient _telemetryClient;
18-
19-
/// <summary>
20-
/// Initializes a new instance of the <see cref="ApplicationInsightsViewTracking"/> class.
21-
/// </summary>
22-
/// <param name="telemetryClient">The Application Insights telemetry client instance to use.</param>
23-
public ApplicationInsightsViewTracking(TelemetryClient telemetryClient) => _telemetryClient = telemetryClient;
21+
private readonly TelemetryClient _telemetryClient = telemetryClient;
2422

2523
/// <summary>
2624
/// Track a view navigation using just a name.

src/Splat.ApplicationInsights/Splat.ApplicationInsights.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<Authors>.NET Foundation and Contributors</Authors>
88
<Description>ApplicationInsights integrations for Splat</Description>
99
<PackageId>Splat.ApplicationInsights</PackageId>
10-
<LangVersion>latest</LangVersion>
1110
<Nullable>enable</Nullable>
1211
</PropertyGroup>
1312
<ItemGroup>

src/Splat.Autofac.Tests/Splat.Autofac.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
<IsPackable>false</IsPackable>
77
<NoWarn>$(NoWarn);1591;CA1707;SA1633;CA2000</NoWarn>
8-
<LangVersion>latest</LangVersion>
98
<Nullable>enable</Nullable>
109
</PropertyGroup>
1110

0 commit comments

Comments
 (0)