Question: First and foremost excuse me, I'm totally new to PHP.

I'm looking to echo a link back to the comic's description/home page currently being read on my site as a *clickable bootstrap button with a font awesome icon assigned to it*. But, I'm not entirely sure how would I go about doing that.

I'm using a [comic reader](https://foolcode.github.io/FoOlSlide/) software; here's the php code that outputs the link to the comic's home page

```
<?php echo $comic->url() ?>

```

This is the code I've used to output the link inside a bootstrap button with a font awesome icon:

```
<button type="button" class="btn btn-danger"><i class="fa fa-level-up"><?php echo $comic->url()?></i></button>

```

What happens here is that the url is outputted as a clickable text link using the comic's title inside the button. I'm trying to learn how to have the link phrased as a button only.

Live example: [of the button](http://www.friendshipscans.com/reader/read/test/en/0/0/page/27)

Thanks a lot,

Answer: 
I would put the tool into the build directory inside the NuGet package and then have a custom MSBuild .targets file in the same build directory. This MSBuild .targets file would then be written in such a way so it is called at some point during the build process.

```
\build
    \MyPackage.targets

```

Then your build targets file would [insert itself](https://blogs.msdn.microsoft.com/msbuild/2006/02/10/how-to-add-custom-process-at-specific-points-during-build-method-2/) into the build process:

```
<PropertyGroup>
    <BuildDependsOn>
        $(BuildDependsOn);
        MyCustomTarget
    </BuildDependsOn>
</PropertyGroup>

<Target Name=“MyCustomTarget“>
    <!-- Execute tool -->    
</Target>

```

The above should run the MyCustomTarget as the last item during the build.
In post build action specify `$(SolutionDir).nuget\nuget.exe pack $(ProjectPath) -IncludeReferencedProjects`.
Also you can specify nuspec file. As described here <https://docs.nuget.org/create/nuspec-reference>.
Example:

```
<?xml version="1.0"?>
<package >
  <metadata>
    <id>SDK</id>
    <version>$version$</version>
    <title>$title$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>$description$</description>
    <releaseNotes>Initial release</releaseNotes>
    <copyright>Copyright 2016</copyright>
    <tags>SDK</tags>
  </metadata>
  <files>
    <file src="tools\install.ps1" target="tools\install.ps1" />
    </files>
</package>

```