Skip to content

Commit d321680

Browse files
committed
refactor: 增加条件编译
1 parent 0addc2f commit d321680

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Version.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<Project>
22

3-
<PropertyGroup>
3+
<PropertyGroup Condition="$(VisualStudioVersion) == 17.0">
4+
<RunTargetFramework>net9.0</RunTargetFramework>
5+
</PropertyGroup>
6+
7+
<PropertyGroup Condition="$(VisualStudioVersion) == 18.0">
48
<RunTargetFramework>net10.0</RunTargetFramework>
59
</PropertyGroup>
610

src/BootstrapBlazor/Directory.Build.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
<IsPackable>true</IsPackable>
1717
</PropertyGroup>
1818

19-
<PropertyGroup>
19+
<PropertyGroup Condition="$(VisualStudioVersion) == 17.0">
20+
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
21+
</PropertyGroup>
22+
23+
<PropertyGroup Condition="$(VisualStudioVersion) == 18.0">
2024
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
2125
</PropertyGroup>
2226

0 commit comments

Comments
 (0)