Skip to content

Commit 8d69022

Browse files
committed
chore: 增加 RunTargetFramework 配置项
1 parent 23ca083 commit 8d69022

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Framework.props

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

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<RunTargetFramework>net9.0</RunTargetFramework>
5+
<TargetFramework>$(RunTargetFramework)</TargetFramework>
56
</PropertyGroup>
67

78
</Project>

src/BootstrapBlazor/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<Import Project="..\Directory.Build.props" />
44
<Import Project="..\Logo.props" />
5+
<Import Project="..\..\Framework.props" />
56
<Import Project="..\SourceLink.targets" />
67

78
<PropertyGroup>
@@ -17,7 +18,7 @@
1718
</PropertyGroup>
1819

1920
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
20-
<TargetFramework>net9.0</TargetFramework>
21+
<TargetFramework>$(RunTargetFramework)</TargetFramework>
2122
</PropertyGroup>
2223

2324
<PropertyGroup Condition="'$(Configuration)' != 'Debug'">

src/BootstrapBlazor/Directory.Build.targets

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

33
<ItemGroup>
4-
<PackageReference Include="AspNetCore.SassCompiler" Version="1.79.5" Condition="'$(Configuration)'=='Debug' and '$(TargetFramework)' == 'net9.0'" />
4+
<PackageReference Include="AspNetCore.SassCompiler" Version="1.79.5" Condition="'$(Configuration)'=='Debug' and '$(TargetFramework)' == '$(RunTargetFramework)'" />
55
</ItemGroup>
66

7-
<Target Name="CopyCss" AfterTargets="Build" Condition="'$(TargetFramework)' == 'net9.0'">
7+
<Target Name="CopyCss" AfterTargets="Build" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'">
88
<Message Text="Copy bootstrap assets ..." Importance="high"></Message>
99
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/core/bootstrap/js/bootstrap.bundle.min.js" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/js/bootstrap.blazor.bundle.min.js" SkipUnchangedFiles="true" ></Copy>
1010
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/core/bootstrap/css/bootstrap.min.css" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/css/bootstrap.min.css" SkipUnchangedFiles="true" ></Copy>

0 commit comments

Comments
 (0)