forked from FritzAndFriends/BlazorWebFormsComponents
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
33 lines (29 loc) · 1.16 KB
/
Directory.Build.props
File metadata and controls
33 lines (29 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning">
<Version>3.9.50</Version>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<PropertyGroup>
<BlazorWebAssemblyVersion>10.0.0</BlazorWebAssemblyVersion>
<AspNetCoreVersion>10.0.0</AspNetCoreVersion>
</PropertyGroup>
<!-- Override package versions for multi-targeted builds -->
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
<AspNetCoreVersion>8.0.0</AspNetCoreVersion>
<BlazorWebAssemblyVersion>8.0.0</BlazorWebAssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'">
<AspNetCoreVersion>9.0.0</AspNetCoreVersion>
<BlazorWebAssemblyVersion>9.0.0</BlazorWebAssemblyVersion>
</PropertyGroup>
<!-- Enable .NET Code Analyzers -->
<PropertyGroup>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
</Project>