Skip to content

Instantly share code, notes, and snippets.

View lawrence-laz's full-sized avatar
👋
Hi there!

Laurynas Lazauskas lawrence-laz

👋
Hi there!
  • Lithuania, Vilnius
View GitHub Profile
@lawrence-laz
lawrence-laz / nuget-examples.md
Last active June 27, 2023 11:21
Various examples for common things to do when authoring NuGet packages

Nuget

File build/MyNugetPackage.targets is injected into the MSBuild project that references this nuget package. Here is an example to copy *.dll files and reference them.

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <ItemGroup>
        <NativeLibs Include="$(MSBuildThisFileDirectory)**\*.dll" />
        <None Include="@(NativeLibs)">