Skip to content

Commit 12b9c90

Browse files
committed
refactor: 更新脚本
1 parent 05b2e11 commit 12b9c90

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/BootstrapBlazor/Directory.Build.targets

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
<Copy SourceFiles="$(BootstrapOriginJsFile)" DestinationFiles="$(BootstrapTargetJsFile)" SkipUnchangedFiles="true"></Copy>
1919
</Target>
2020

21-
<Target Name="CssBundler" AfterTargets="CopyJs" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'" Inputs="$(StyleFile)" Outputs="$(BundleStyleFile)">
21+
<Target Name="DotnetToolRestore" AfterTargets="CopyJs" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'" Inputs="$(MSBuildThisFileDirectory)../../dotnet-tools.json" Outputs="$(MSBuildThisFileDirectory)../../dotnet-tools.json">
2222
<Exec Command="dotnet tool restore"></Exec>
23+
</Target>
24+
25+
<Target Name="CssBundler" AfterTargets="DotnetToolRestore" Condition="'$(TargetFramework)' == '$(RunTargetFramework)'" Inputs="$(StyleFile)" Outputs="$(BundleStyleFile)">
2326
<Message Text="Bundler min css ..." Importance="high"></Message>
24-
<Exec Command="dotnet css-bundler .\bundler.json"></Exec>
27+
<Exec Command="dotnet css-bundler $(MSBuildThisFileDirectory)bundler.json"></Exec>
2528
</Target>
2629

2730
</Project>

0 commit comments

Comments
 (0)