Skip to content

Commit

Permalink
docs(README, dotnet): add example Directory.Build.props from GroupBox…
Browse files Browse the repository at this point in the history
….Avalonia
  • Loading branch information
BinToss committed Mar 26, 2024
1 parent 44085db commit a3929f3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,29 @@ npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}'

### 4. (dotnet) Add/Edit Directory.Build.props


> Example Directory.Build.props from [BinToss/GroupBox.Avalonia](https://github.com/BinToss/GroupBox.Avalonia)
```xml
<Project>
<Import Project="./node_modules/@halospv3/hce.shared-config/dotnet/ZipPublishDir.targets" />
<PropertyGroup>
<ProjectRootDir>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), '.git/index'))</ProjectRootDir>
<HCESharedDir>$(ProjectRootDir)node_modules/@halospv3/hce.shared-config/</HCESharedDir>
<GitVersion_Path>$(HCESharedDir)GitVersion.yml</GitVersion_Path>
<AvaloniaVersion>11.0.10</AvaloniaVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(CI)' == 'true'">
<Configuration>Release</Configuration>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>
</Project>
```

----

Add the file `Directory.Build.props` to your repository's root directory or solution directory if you haven't already.
Then, add the following properties:
```xml
Expand Down

0 comments on commit a3929f3

Please sign in to comment.