hirschmann/nbfc 1440

NoteBook FanControl

ArcadeRenegade/SidebarDiagnostics 1088

A simple sidebar for Windows desktop that displays hardware diagnostic information.

hirschmann/pid-autotune 56

PID-controller/brewing kettle simulation

hirschmann/powereventprovider 3

Power Event Provider service for Windows

hirschmann/craftbeerpi 1

Brew Controller

hirschmann/MashBerry 1

MashBerry is a Raspberry PI based beer-brewing controller

pbrach/themis 1

a chores management tool

hirschmann/chocolateypackages 0

Chocolatey packages

hirschmann/LibreHardwareMonitor 0

Libre Hardware Monitor, home of the fork of Open Hardware Monitor

hirschmann/openhardwaremonitor 0

Open Hardware Monitor


started time in 2 months

issue commentNuGet/Home

Is it possible to copy contentFiles to executable project's output only?

@nkolev92 Thanks for your answer!

I got it to work by adding a buildTransitive .targets file which copies the content files only if the project is an executable project:

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="" ToolsVersion="15.0">

  <!-- copy content to build output for executable projects only -->  
  <Target Name="AfterBuild" Condition="$(OutputType) == 'Exe'">
      <_ContentFiles Include="$(MSBuildThisFileDirectory)..\contentFiles\any\any\**\*" />
    <Copy SourceFiles="@(_ContentFiles)" DestinationFolder="$(OutDir)\%(RecursiveDir)" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />

Additionally I set copyToOuptut in the .nuspec file to false to stop msbuild from copying the content files into every library project output folder.

If anyone else encounters the same problems - this is my fixed demo project:


comment created time in 2 months