Skip to content

Commit

Permalink
Merge pull request #55 from Andrew1Medvedev/update-json
Browse files Browse the repository at this point in the history
Include packages for x86/x64 onigwrap.dll, and dynamic binding betwee…
  • Loading branch information
danipen authored Jul 4, 2023
2 parents dbb3d60 + 30516a1 commit 84a4383
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
14 changes: 14 additions & 0 deletions build/TextMateSharp.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition="'$(TargetFramework)' == '' Or '$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<None Include="$(MSBuildThisFileDirectory)..\runtimes\win-x64\native\onigwrap-x64.dll">
<Link>onigwrap-x64.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</None>
<None Include="$(MSBuildThisFileDirectory)..\runtimes\win-x86\native\onigwrap-x86.dll">
<Link>onigwrap-x86.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</None>
</ItemGroup>
</Project>
7 changes: 6 additions & 1 deletion src/TextMateSharp/TextMateSharp.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -76,6 +76,11 @@ TextMateSharp uses a wrapper around Oniguruma regex engine. Read below to learn
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonVersion)" />
</ItemGroup>
<ItemGroup>
<Content Pack="True"
PackagePath="build"
Include="..\..\build\TextMateSharp.targets" />
</ItemGroup>
<Import Project="..\..\build\SourceLink.props" />
<Import Project="..\..\build\Directory.Build.props" />
</Project>

0 comments on commit 84a4383

Please sign in to comment.