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

Loading…
Cancel
Save