Skip to content

Instantly share code, notes, and snippets.

@tcartwright
Created August 12, 2024 14:03
Show Gist options
  • Save tcartwright/3231a9e7eca5989585e77c31e04568ce to your computer and use it in GitHub Desktop.
Save tcartwright/3231a9e7eca5989585e77c31e04568ce to your computer and use it in GitHub Desktop.
VISUAL STUDIO: MY Standard Directory.Build.props file
<Project>
<PropertyGroup>
<!--ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally-->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <!-- True for new projects, false for existing ones with lots of warnings -->
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PublishReadyToRun>true</PublishReadyToRun>
<SelfContained>true</SelfContained>
<SatelliteResourceLanguages>en-US</SatelliteResourceLanguages>
<!-- Remove this to turn on warnings for missing XML Comments -->
<NoWarn>1591</NoWarn>
<!--CentralPackageFloatingVersionsEnabled>true</CentralPackageFloatingVersionsEnabled-->
</PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment