Skip to content

Commit a88f480

Browse files
authored
chore(Target): add version props (#4705)
1 parent dc640a7 commit a88f480

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
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

3+
<Import Project="Version.props"/>
4+
35
<PropertyGroup>
4-
<RunTargetFramework>net9.0</RunTargetFramework>
56
<TargetFramework>$(RunTargetFramework)</TargetFramework>
67
</PropertyGroup>
78

Version.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<RunTargetFramework>net9.0</RunTargetFramework>
5+
</PropertyGroup>
6+
7+
</Project>

src/BootstrapBlazor/Directory.Build.targets

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

3+
<Import Project="..\..\Version.props" />
4+
35
<ItemGroup>
46
<PackageReference Include="AspNetCore.SassCompiler" Version="1.79.5" Condition="'$(Configuration)'=='Debug' and '$(TargetFramework)' == '$(RunTargetFramework)'" />
57
</ItemGroup>
6-
8+
79
<Target Name="CopyCss" AfterTargets="Build" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'">
810
<Message Text="Copy bootstrap assets ..." Importance="high"></Message>
911
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/core/bootstrap/js/bootstrap.bundle.min.js" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/js/bootstrap.blazor.bundle.min.js" SkipUnchangedFiles="true" ></Copy>
1012
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/core/bootstrap/css/bootstrap.min.css" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/css/bootstrap.min.css" SkipUnchangedFiles="true" ></Copy>
1113
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/core/bootstrap/css/bootstrap.rtl.min.css" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/css/bootstrap.rtl.min.css" SkipUnchangedFiles="true" ></Copy>
12-
14+
1315
<Message Text="Copy bootstrapblazor assets ..." Importance="high"></Message>
1416
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/lib/animate/animate.min.css" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/css/animate.min.css" SkipUnchangedFiles="true" ></Copy>
1517
<Copy SourceFiles="$(MSBuildThisFileDirectory)wwwroot/lib/swal/sweetalert2.css" DestinationFiles="$(MSBuildThisFileDirectory)wwwroot/css/sweetalert2.css" SkipUnchangedFiles="true" ></Copy>

0 commit comments

Comments
 (0)