Skip to content

copyToOutput option of contentFiles inside nuspec seems seems not work #9368

Open
@MatthieuHernandez

Description

@MatthieuHernandez

I seem to have the a problem with my, *.nuspec because when I build and use my package I see my files in the contentFiles directory but there are not copy in the bin/x64/Release directory in the project witch use the package. The files are just copied in the project directory (not in bin).
Did I miss something ?

NuGet product used: NuGet.exe
NuGet version: 5.4.0.6315
dotnet.exe: .NET Framework 4.5.2
OS version: Windows 10

<?xml version="1.0" encoding="utf-8"?>
<package>
  <metadata>
    <id>$id$</id>
    <version>$version$</version>
    <title>$title$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>$description$</description>
    <copyright>$copyright$</copyright>
    <references>
      <reference file="STApi.dll" />
    </references>
	<dependencies>
      <group targetFramework=".NETFramework4.5.2" />
    </dependencies>
    <contentFiles>
      <files include=".\..\STLogger\NLog.dll.nlog" buildAction="None" copyToOutput="true"/>
      <files include=".\..\STDB\sqlnet.ora" buildAction="None" copyToOutput="true"/>
      <files include=".\..\STDB\Tnsnames.ora" buildAction="None" copyToOutput="true"/>
   </contentFiles>
  </metadata>
  <files>
    <file src=".\..\STLogger\nlog-1.0-net-1.1\bin\NLog.dll" target="lib\net452"/>
    <file src=".\..\STLogger\NLog.dll.nlog" target="content"/>
    <file src=".\..\STDB\sqlnet.ora" target="content"/>
    <file src=".\..\STDB\Tnsnames.ora" target="content"/>
  </files>
</package>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions