Skip to content

Commit 0e21f1f

Browse files
authored
build: update to .NET 8.0 (#5)
1 parent 8f81601 commit 0e21f1f

File tree

10 files changed

+24
-14
lines changed

10 files changed

+24
-14
lines changed

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
4-
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
4+
## Get latest from `dotnet new gitignore`
5+
6+
# dotenv files
7+
.env
58

69
# User-specific files
710
*.rsuser
@@ -398,8 +401,8 @@ FodyWeavers.xsd
398401
*.msp
399402

400403
# JetBrains Rider
401-
.idea/
402404
*.sln.iml
405+
.idea
403406

404407
##
405408
## Visual studio for Mac
@@ -476,3 +479,6 @@ $RECYCLE.BIN/
476479

477480
# Windows shortcuts
478481
*.lnk
482+
483+
# Vim temporary swap files
484+
*.swp

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.100",
3+
"version": "8.0.100",
44
"rollForward": "feature"
55
}
66
}

source/Directory.Build.props

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
<Project>
22

33
<PropertyGroup>
4-
<LangVersion>11.0</LangVersion>
4+
<LangVersion>12.0</LangVersion>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<PropertyGroup>
1010
<EnableNETAnalyzers>true</EnableNETAnalyzers>
11-
<AnalysisLevel>7.0</AnalysisLevel>
11+
<AnalysisLevel>8.0</AnalysisLevel>
1212
<AnalysisMode>All</AnalysisMode>
1313
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1414
</PropertyGroup>
1515

16+
<PropertyGroup>
17+
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
18+
</PropertyGroup>
19+
1620
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
1721
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
1822
</PropertyGroup>

source/examples/FlashOWare.Generators.Example/FlashOWare.Generators.Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<AssemblyName>FlashOWare.Generators.Example</AssemblyName>
77
<RootNamespace>FlashOWare</RootNamespace>
88
</PropertyGroup>

source/gen/FlashOWare.Generators/FlashOWare.Generators.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-
<TargetFrameworks>net7.0;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
55
<AssemblyName>FlashOWare.Generators</AssemblyName>
66
<RootNamespace>FlashOWare</RootNamespace>
77
</PropertyGroup>

source/lib/FlashOWare.Generators.Attributes/FlashOWare.Generators.Attributes.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-
<TargetFrameworks>net7.0;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
55
<AssemblyName>FlashOWare.Generators.Attributes</AssemblyName>
66
<RootNamespace>FlashOWare</RootNamespace>
77
</PropertyGroup>

source/perf/FlashOWare.Generated.Benchmarks/FlashOWare.Generated.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net7.0;net472</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
66
<AssemblyName>FlashOWare.Generated.Benchmarks</AssemblyName>
77
<RootNamespace>FlashOWare.Benchmarks</RootNamespace>
88
</PropertyGroup>

source/perf/FlashOWare.Generators.Benchmarks/FlashOWare.Generators.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net7.0;net472</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
66
<AssemblyName>FlashOWare.Generators.Benchmarks</AssemblyName>
77
<RootNamespace>FlashOWare.Benchmarks</RootNamespace>
88
</PropertyGroup>

source/tests/FlashOWare.Generated.Tests/FlashOWare.Generated.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net472</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
55
<AssemblyName>FlashOWare.Generated.Tests</AssemblyName>
66
<RootNamespace>FlashOWare.Tests</RootNamespace>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" />
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
1212
<PackageReference Include="xunit" Version="2.6.1" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" PrivateAssets="all" />
1414
</ItemGroup>

source/tests/FlashOWare.Generators.Tests/FlashOWare.Generators.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net472</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net472</TargetFrameworks>
55
<AssemblyName>FlashOWare.Generators.Tests</AssemblyName>
66
<RootNamespace>FlashOWare.Tests</RootNamespace>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" />
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
1212
<PackageReference Include="xunit" Version="2.6.1" />
1313
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" PrivateAssets="all" />
1414
</ItemGroup>

0 commit comments

Comments
 (0)