Skip to content

Instantly share code, notes, and snippets.

@xiaomi7732
Created February 28, 2023 21:54
Show Gist options
  • Save xiaomi7732/76ee2cb6d46435872309e491c787b545 to your computer and use it in GitHub Desktop.
Save xiaomi7732/76ee2cb6d46435872309e491c787b545 to your computer and use it in GitHub Desktop.
Directory.Build.props example
  1. Filename is case sensitive on linux.
  2. Pay attention to the Import for casecading.
<Project>
    <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
    <PropertyGroup>
        <LangVersion>11.0</LangVersion>
    </PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment