Skip to content

Instantly share code, notes, and snippets.

@dguder
Last active August 29, 2015 14:08
Show Gist options
  • Save dguder/5432d0cec91012452dca to your computer and use it in GitHub Desktop.
Save dguder/5432d0cec91012452dca to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="Common">
<ReferencePath-FW Include="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\*.dll" />
</ItemGroup>
<PropertyGroup>
<ProjectDir>X:\Projects\Costura-Sample\</ProjectDir>
<FodySolutionDir>X:\Projects\Costura-Sample\</FodySolutionDir>
</PropertyGroup>
<Target Name="Build">
<PropertyGroup>
<IntermediateDir>Sample\bin\Release\</IntermediateDir>
</PropertyGroup>
<ItemGroup>
<IntermediateAssembly Include="$(IntermediateDir)Sample.exe" />
<ReferencePath Include="@(ReferencePath-FW)" />
<ReferencePath Include="$(IntermediateDir)*.dll" />
<!-- assemblies to include -->
<ReferenceCopyLocalPaths Include="$(IntermediateDir)*.dll" />
<!-- resource assemblies to include, eg. in de or fr sub folder -->
<ReferenceCopyLocalPaths Include="$(IntermediateDir)**\*resources.dll" />
</ItemGroup>
<Fody.WeavingTask
AssemblyPath="@(IntermediateAssembly)"
IntermediateDir="$(IntermediateDir)"
KeyFilePath="$(FodyKeyFilePath)"
ProjectDirectory="$(ProjectDir)"
SolutionDir="$(FodySolutionDir)"
References="@(ReferencePath)"
SignAssembly="$(FodySignAssembly)"
ReferenceCopyLocalPaths="@(ReferenceCopyLocalPaths)"
DefineConstants="$(DefineConstants)"
/>
</Target>
<UsingTask
TaskName="Fody.WeavingTask"
AssemblyFile="packages\Fody.1.25.0\Fody.dll" />
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment