Skip to content

Commit

Permalink
Simplify import with new props
Browse files Browse the repository at this point in the history
  • Loading branch information
warent committed Jun 11, 2024
1 parent dea2eb9 commit 17dddc7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,15 @@ namespace MyGame
### Setup steps

1. Add HLNC to your "addons"
2. Add [Fody](https://github.com/Fody/Fody) and [Fody.PropertyChanged](https://github.com/Fody/PropertyChanged) to your `.csproj` dependencies
2. Import HLNC in your `.csproj`. For example:
```xml
<ItemGroup>
<PackageReference Include="Fody" Version="6.8.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<Project Sdk="Godot.NET.Sdk/4.3.0-beta.1">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<Import Project="addons\HLNC\HLNC.props" />
</Project>
```
3. Enable the HLNC plugin in Godot

Expand Down
12 changes: 12 additions & 0 deletions addons/HLNC/HLNC.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<ItemGroup>
<PackageReference Include="Fody" Version="6.8.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>compile; runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>

0 comments on commit 17dddc7

Please sign in to comment.