Skip to content

Commit af0158a

Browse files
author
claudiamurialdo
committed
Remove .NET 6.0 target from unit tests to run them only on .NET 8.
1 parent 7923a1d commit af0158a

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
lines changed

dotnet/Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<PropertyGroup>
1616
<DumpSolutionName>TempSolution</DumpSolutionName>
17-
<DumpSolutionTargetFrameworkDefault>net6</DumpSolutionTargetFrameworkDefault>
17+
<DumpSolutionTargetFrameworkDefault>net8</DumpSolutionTargetFrameworkDefault>
1818
</PropertyGroup>
1919

2020
<Target Name="CopyAssemblies" Condition="'$(ProjectName)'!='' AND '$(TargetFramework)'=='$(TF)' AND '$(DeployDirectory)'!='' AND '$(IsPackable)'=='true'" AfterTargets="Build">
@@ -28,7 +28,7 @@
2828
</Target>
2929

3030
<Target Name="PublishForAnalyzer">
31-
<Exec Command="dotnet publish $(MSBuildThisFileDirectory)$(DumpSolutionName).sln --configuration Debug -o $(MSBuildThisFileDirectory)..\.out -p:Publishing=true -p:SignAssembly=false --framework net6.0"></Exec>
31+
<Exec Command="dotnet publish $(MSBuildThisFileDirectory)$(DumpSolutionName).sln --configuration Debug -o $(MSBuildThisFileDirectory)..\.out -p:Publishing=true -p:SignAssembly=false --framework net8.0"></Exec>
3232
</Target>
3333

3434
</Project>

dotnet/test/DotNetCoreAttackMitigationTest/DotNetCoreAttackMitigationTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<NoWarn>CS8032;1701;1702;NU1701</NoWarn>
55
<RollForward>Major</RollForward>
66
</PropertyGroup>

dotnet/test/DotNetCoreChunkedTest/ChunkedServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void Configure(IApplicationBuilder app)
7979

8080
app.Run(async context =>
8181
{
82-
context.Response.Headers.Add(HttpHeader.TRANSFER_ENCODING, "chunked");
82+
context.Response.Headers.Append(HttpHeader.TRANSFER_ENCODING, "chunked");
8383

8484
var responseStream = context.Response.Body;
8585

dotnet/test/DotNetCoreChunkedTest/DotNetCoreChunkedTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<NoWarn>CS8032;1701;1702;NU1701</NoWarn>
55
<RollForward>Major</RollForward>
66
</PropertyGroup>

dotnet/test/DotNetCoreCmdTest/DotNetCoreCmdTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<NoWarn>CS8032;1701;1702;NU1701</NoWarn>
55
<RollForward>Major</RollForward>
66
</PropertyGroup>

dotnet/test/DotNetCoreOpenTelemetryTest/DotNetCoreOpenTelemetryTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<NoWarn>CS8032;1701;1702;NU1701</NoWarn>
55
<RollForward>Major</RollForward>
66
</PropertyGroup>

dotnet/test/DotNetCoreUnitTest/DotNetCoreUnitTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<NoWarn>CS8032;1701;1702;NU1701</NoWarn>
55
<RollForward>Major</RollForward>
66
</PropertyGroup>

dotnet/test/DotNetCoreWebUnitTest/DotNetCoreWebUnitTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net8.0</TargetFrameworks>
44
<NoWarn>CS8032;1701;1702;NU1701</NoWarn>
55
<RollForward>Major</RollForward>
66
</PropertyGroup>

dotnet/test/DotNetExtensions/AzureFunctions/amyprocedurehandler/amyprochandler.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AssemblyName>amyprochandler</AssemblyName>
66
</PropertyGroup>
77

dotnet/test/DotNetExtensions/AzureFunctions/test/AzureInteropTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net6.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
66
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />

0 commit comments

Comments
 (0)