-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
21 lines (21 loc) · 1.15 KB
/
Copy pathDirectory.Build.props
File metadata and controls
21 lines (21 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project>
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
<!-- Target is C# 15, but the SDK pinned in global.json (10.0.301) ships a Roslyn that
rejects LangVersion=15.0 — C# 14 is its newest numbered version. "preview" selects the
newest language version the installed compiler supports, so this picks up C# 15 the
moment an SDK that implements it is installed, with no edit here. Revisit and pin to
15.0 once that SDK is the one in global.json. -->
<LangVersion>preview</LangVersion>
<!-- Git-Driven Versioning: MinVer derives AssemblyVersion/FileVersion/
InformationalVersion from the nearest Git tag (prefix "v", e.g. v1.2.3).
With no tags it yields 0.0.0-alpha.0.<height> so fresh checkouts still build. -->
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerDefaultPreReleaseIdentifiers>alpha.0</MinVerDefaultPreReleaseIdentifiers>
</PropertyGroup>
<ItemGroup>
<!-- Build-time only; PrivateAssets=all keeps it out of downstream package graphs. -->
<PackageReference Include="MinVer" PrivateAssets="all" />
</ItemGroup>
</Project>