Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/guide/automate.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Make sure to update the working directory depending on your folder structure it
::: warning
Adding the above code to a multiple targeted project will cause husky to run multiple times.
e.g
`<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks>`
`<TargetFrameworks>net8.0;net9.0</TargetFrameworks>`

to avoid this, you can add the `$(IsCrossTargetingBuild)' == 'true'` condition to the target.
e.g
Expand Down
5 changes: 1 addition & 4 deletions src/Husky/Husky.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net10.0;net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
<TargetFrameworks>net10.0;net9.0;net8.0;</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand Down Expand Up @@ -43,9 +43,6 @@
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0' Or '$(TargetFramework)' == 'net7.0'">
<ConfigurationVersion>8.0.0</ConfigurationVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0' Or '$(TargetFramework)' == 'net9.0'">
<ConfigurationVersion>9.0.0</ConfigurationVersion>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Husky/Scripts/install_global.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
dotnet build ../Husky.csproj
dotnet pack -c Release ../Husky.csproj
dotnet tool install -g --no-cache --add-source ../nupkg/ --framework net6.0 --version 0.4.1 husky
dotnet tool install -g --no-cache --add-source ../nupkg/ --framework net8.0 --version 0.7.2 husky
Loading