Skip to content

Commit

Permalink
warn if no native binaries were selected which support the target or …
Browse files Browse the repository at this point in the history
…host environment
  • Loading branch information
smdn committed May 28, 2024
1 parent 7a04e99 commit c676f9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Smdn.LibHighlightSharp.Bindings/NativeBinaries.targets
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ SPDX-License-Identifier: MIT
<Output TaskParameter="TargetOutputs" ItemName="_NativeBinaryFile"/>
</CallTarget>

<Warning
Text="No native binaries were selected which support the target or host environment. (ProjectRuntimeIdentifier=$(RuntimeIdentifier), RuntimeIdentifier=$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier), OSDescription=$([System.Runtime.InteropServices.RuntimeInformation]::OSDescription), ProcessArchitecture=$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture))"
Condition=" '@(_NativeBinaryFile)' == '' "
/>

<ItemGroup>
<Content
Include="@(_NativeBinaryFile)"
Expand Down Expand Up @@ -123,6 +128,11 @@ SPDX-License-Identifier: MIT
<Output TaskParameter="TargetOutputs" ItemName="_NativeBinaryFile"/>
</CallTarget>

<Warning
Text="No native binaries were selected which support the target or host environment. (ProjectRuntimeIdentifier=$(RuntimeIdentifier), RuntimeIdentifier=$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier), OSDescription=$([System.Runtime.InteropServices.RuntimeInformation]::OSDescription), ProcessArchitecture=$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture))"
Condition=" '@(_NativeBinaryFile)' == '' "
/>

<ItemGroup>
<_OutputFile Include="@(_NativeBinaryFile)">
<TargetPath>%(FileName)%(Extension)</TargetPath>
Expand Down

0 comments on commit c676f9e

Please sign in to comment.