Skip to content

Instantly share code, notes, and snippets.

@GeorgDangl
Created November 21, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeorgDangl/28b82bfa91566a55ec6c2277312944bb to your computer and use it in GitHub Desktop.
Save GeorgDangl/28b82bfa91566a55ec6c2277312944bb to your computer and use it in GitHub Desktop.
Use the new GeneratePathProperty in .NET SDK based csproj files
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net471</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Content Include="$(PkgXbim_Geometry)\build\x64\Xbim.Geometry.Engine64.dll">
<Link>x64\Xbim.Geometry.Engine64.dll</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
</Content>
<Content Include="$(PkgXbim_Geometry)\build\x86\Xbim.Geometry.Engine32.dll">
<Link>x86\Xbim.Geometry.Engine32.dll</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xbim.Geometry" Version="4.0.15-V0042" GeneratePathProperty="true"/>
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment