How to expand the XULRunner folder to display the directory after installing abcpdf gecko via nuget?

I installed the package ABCpdf.ABCGecko via nuget and it gave me this dialog:

Done! Expand the XULRunner folder in the output directory manually.

I really don’t know wtf it means ... I have an idea, but I don’t know exactly where and how to change my build configuration for this to happen. Has anyone done this, and if so, how?

+4
source share
2 answers

My initial answer tried to work for my development setup, but did not work on our installation setup, because for some reason it did not include the XULRunner files inside the web package created using MSDeploy. I found what seems like a simpler installation, below:

<ItemGroup> <Content Include="XULRunner\**\*.*"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> </ItemGroup> 

I'm not 100% sure if this works all over the place, but it seems to work better in every development and deployment scheme I've encountered so far.

+3
source

I found how to accomplish this through this SO answer . The relevant changes to the .csproj project .csproj are listed below:

 <Target Name="AfterBuild"> <CallTarget Targets="CopyXULRunnerToDeployFolder" /> </Target> <Target Name="CopyXULRunnerToDeployFolder"> <ItemGroup> <MyFiles Include="XULRunner\**\*.*" /> </ItemGroup> <Microsoft.Build.Tasks.Copy SourceFiles="@(MyFiles)" DestinationFiles="@(MyFiles->'$(OutputPath)\XULRunner\%(RecursiveDir)%(Filename)%(Extension)')"/> </Target> 
+1
source

All Articles