Skip to content

Commit 03863c6

Browse files
committed
chore: 更新 Version 配置文件
1 parent d321680 commit 03863c6

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Version.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
<PropertyGroup Condition="$(VisualStudioVersion) == 17.0">
44
<RunTargetFramework>net9.0</RunTargetFramework>
5+
<RunTargetFrameworks>net6.0;net7.0;net8.0;net9.0</RunTargetFrameworks>
56
</PropertyGroup>
67

78
<PropertyGroup Condition="$(VisualStudioVersion) == 18.0">
89
<RunTargetFramework>net10.0</RunTargetFramework>
10+
<RunTargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</RunTargetFrameworks>
911
</PropertyGroup>
1012

1113
</Project>

src/BootstrapBlazor/Directory.Build.props

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<Import Project="..\Directory.Build.props" />
44
<Import Project="..\Logo.props" />
55
<Import Project="..\SourceLink.targets" />
6-
6+
<Import Project="..\..\Version.props" />
7+
78
<PropertyGroup>
89
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components</PackageTags>
910
<Description>Bootstrap UI components for Blazor and Razor Components</Description>
@@ -16,12 +17,8 @@
1617
<IsPackable>true</IsPackable>
1718
</PropertyGroup>
1819

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">
24-
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
20+
<PropertyGroup>
21+
<TargetFrameworks>$(RunTargetFrameworks)</TargetFrameworks>
2522
</PropertyGroup>
2623

2724
<PropertyGroup>

src/BootstrapBlazor/Directory.Build.targets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<Project>
22

3-
<Import Project="..\..\Version.props" />
4-
53
<ItemGroup>
64
<PackageReference Include="AspNetCore.SassCompiler" Version="1.93.2" Condition="'$(Configuration)'=='Debug' and '$(TargetFramework)' == '$(RunTargetFramework)'" />
75
</ItemGroup>

0 commit comments

Comments
 (0)