Change Content to ContentWithTargetPath

This appears to be necessary to have library files
included in output directory of a project that has
ImGui.NET as a project reference, instead of as a
Nuget package reference.
internals
copygirl 1 year ago
parent 42d750d85f
commit 3bebaa7b8a
  1. 36
      src/ImGui.NET/ImGui.NET.csproj

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>A .NET wrapper for the Dear ImGui library.</Description>
<AssemblyVersion>1.88.0</AssemblyVersion>
@ -29,26 +29,36 @@
</AssemblyAttribute>
</ItemGroup>
<ItemGroup>
<Content Include="..\..\deps\cimgui\win-x86\cimgui.dll">
<PackagePath>runtimes/win-x86/native</PackagePath>
<ContentWithTargetPath Include="..\..\deps\cimgui\win-x86\cimgui.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>runtimes/win-x86/native/cimgui.dll</TargetPath>
<PackagePath>runtimes/win-x86/native/cimgui.dll</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="..\..\deps\cimgui\win-x64\cimgui.dll">
<PackagePath>runtimes/win-x64/native</PackagePath>
</ContentWithTargetPath>
<ContentWithTargetPath Include="..\..\deps\cimgui\win-x64\cimgui.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>runtimes/win-x64/native/cimgui.dll</TargetPath>
<PackagePath>runtimes/win-x64/native/cimgui.dll</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="..\..\deps\cimgui\linux-x64\cimgui.so">
</ContentWithTargetPath>
<ContentWithTargetPath Include="..\..\deps\cimgui\linux-x64\cimgui.so">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>runtimes/linux-x64/native/libcimgui.so</TargetPath>
<PackagePath>runtimes/linux-x64/native/libcimgui.so</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="..\..\deps\cimgui\osx\cimgui.dylib">
</ContentWithTargetPath>
<ContentWithTargetPath Include="..\..\deps\cimgui\osx\cimgui.dylib">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>runtimes/osx/native/libcimgui.dylib</TargetPath>
<PackagePath>runtimes/osx/native/libcimgui.dylib</PackagePath>
<Pack>true</Pack>
</Content>
<Content Include="build\net40\ImGui.NET.targets">
</ContentWithTargetPath>
<ContentWithTargetPath Include="build\net40\ImGui.NET.targets">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>build/net40/ImGui.NET.targets</TargetPath>
<PackagePath>build/net40/ImGui.NET.targets</PackagePath>
<Pack>true</Pack>
</Content>
</ContentWithTargetPath>
</ItemGroup>
<ItemGroup>
<Folder Include="Generated\" />

Loading…
Cancel
Save