Skip to content

Commit

Permalink
Add separate .targets file for .NET projects.
Browse files Browse the repository at this point in the history
Done to make it easier to use Image3dAPI from .NET/C# projects.
  • Loading branch information
Fredrik Orderud committed Feb 4, 2018
1 parent d872295 commit 5d744d3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions PackagingGE/Image3dAPI.net.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- .NET/C# project config -->
<Target Name="InjectReference" BeforeTargets="ResolveAssemblyReferences">
<ItemGroup Condition="'$(Platform)' == 'Win32' or '$(Platform)' == 'x86'">
<Reference Include="Image3dAPI">
<HintPath>$(MSBuildThisFileDirectory)..\native\lib\Win32\Image3dAPI.dll</HintPath>
<EmbedInteropTypes>true</EmbedInteropTypes>
</Reference>
</ItemGroup>
<ItemGroup Condition="'$(Platform)' == 'x64'">
<Reference Include="Image3dAPI">
<HintPath>$(MSBuildThisFileDirectory)..\native\lib\x64\Image3dAPI.dll</HintPath>
<EmbedInteropTypes>true</EmbedInteropTypes>
</Reference>
</ItemGroup>
</Target>
</Project>
3 changes: 2 additions & 1 deletion PackagingGE/Image3dAPI.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
</metadata>

<files>
<file src="Image3dAPI.targets" target="build/native/" />
<file src="Image3dAPI.targets" target="build/native/" />
<file src="Image3dAPI.net.targets" target="build/net/Image3dAPI.targets" />

<!-- support headers -->
<file src="../Image3dAPI/ComSupport.hpp" target="build/native/include/Image3dAPI/" />
Expand Down

0 comments on commit 5d744d3

Please sign in to comment.