Files
semantic-kernel/dotnet/Directory.Build.props
T
Stephen Toub f2e52bd87b .Net: Upgrade projects from net6.0 to net8.0 and adjust LangVersion to 12 (#5819)
- Test projects targeting net6.0 are updated to net8.0
- LangVersion is consolidated to be 12 and set only in the top-level
Directory.Build.props
- RollForward was used to enable test projects targeting net6.0 to
execute in CI when there was only a net8.0 runtime present. These can
all be deleted.
- Microsoft.Net.Compilers.Toolset was used in a bunch of places to allow
for LangVersion 12 when on older toolsets. Now that the .NET 8 SDK is
used, this can all be deleted.
- Microsoft.CodeAnalysis.NetAnalyzers was pinned to the 8.0 version.
That can now be deleted.
- Allowing the analyzers to use a newer build by default flagged a bunch
of CA2007 violations to be addressed. These have all been fixed.
2024-04-09 17:41:52 +00:00

33 lines
1.2 KiB
XML

<Project>
<PropertyGroup>
<!-- Default properties inherited by all projects. Projects can override. -->
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<!-- Disable NuGet packaging by default. Projects can override. -->
<IsPackable>disable</IsPackable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Publish'">
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup>
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>
</PropertyGroup>
<ItemGroup>
<!-- Add CLSCompliant=false to all projects by default. Projects can override. -->
<AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>false</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
</Project>