Last active
September 8, 2024 17:10
-
-
Save mirmostafa/a89d6eaad3a9851aa28743345def05bd to your computer and use it in GitHub Desktop.
Best practice for `Directory.Packages.props` by .NET 9.0
This file contains 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
<Project> | |
<PropertyGroup> | |
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | |
</PropertyGroup> | |
<PropertyGroup> | |
<TargetFramework>net9.0</TargetFramework> | |
<LangVersion>preview</LangVersion> | |
<EnablePreviewFeatures>true</EnablePreviewFeatures> | |
<GenerateRequiresPreviewFeaturesAttribute>true</GenerateRequiresPreviewFeaturesAttribute> | |
<Nullable>enable</Nullable> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<LangVersion>Preview</LangVersion> | |
<AnalysisLevel>preview-all</AnalysisLevel> | |
<LangVersion>preview</LangVersion> | |
<RuntimeIdentifier>win-x64</RuntimeIdentifier> | |
<PlatformTarget>x64</PlatformTarget> | |
<InvariantGlobalization>false</InvariantGlobalization> | |
<AnalysisMode>AllEnabledByDefault</AnalysisMode> | |
<EnableNETAnalyzers>true</EnableNETAnalyzers> | |
<RunAnalyzersDuringLiveAnalysis>true</RunAnalyzersDuringLiveAnalysis> | |
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors> | |
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> | |
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild> | |
</PropertyGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment