Some test text!

menu
ASP.NET NuGet package does not copy the PDFNet folder to the bin directory when Publishingkeyboard_arrow_down

ASP.NET NuGet package does not copy the PDFNet folder to the bin directory when Publishing

To get the files copied to the Publish Target Location, please make the following changes:

  1. In your References, please set "Copy Local" property of PDFNet.dll to "True" ​
  2. Add the following to PublishProfile i.e. *.pubxml
<Target Name="PDFNetFiles">
    <ItemGroup>
        <_CustomFiles Include="bin\**\*" />
        <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
            <DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
        </FilesForPackagingFromProject>
    </ItemGroup>
</Target>

Under PropertyGroup:

<CopyAllFilesToSingleFolderForPackageDependsOn>
    PDFNetFiles;
    $(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>

<CopyAllFilesToSingleFolderForMsdeployDependsOn>
    PDFNetFiles;
    $(CopyAllFilesToSingleFolderForMsdeployDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>

Please read more about deploying extra files with ASP .NET here.

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.