I have an web project Project A and a library Project B.
Project B is being built into Project A\Plugins.

The Problem is when Project A is being built via CI Project B isn't deployed with Project A. MSBuild params in CI are:

```
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\" /t:ProjectA

```

I added the following piece of code into Project A.csproj to deploy Project B with A:

```
 <ItemGroup>
    <ProjectsToBuild Include="..\..\Plugins\**\*ProjectB*proj" />
  </ItemGroup>
  <Target Name="Plugin" AfterTargets="Build">
    <Message Text="Building Plugins" Importance="High" />
    <MSBuild Projects="@(ProjectsToBuild)" ContinueOnError="false" Properties="Configuration=$(Configuration)">
      <Output ItemName="OutputFiles" TaskParameter="TargetOutputs" />
    </MSBuild>

    <CallTarget Targets="CopyPlugins"/>
  </Target>

    <PropertyGroup>
        <PluginDirectory>Plugins</PluginDirectory>
    </PropertyGroup>
    <Target Name="CopyPlugins">
        <Message Text="Copying plugins to $(_PackageTempDir)\Plugins\ ($(ProjectDir)$(PluginDirectory))" Importance="high" />
        <CreateItem Include="$(ProjectDir)$(PluginDirectory)\**\*.*">
            <Output TaskParameter="Include" ItemName="PluginFiles" />
        </CreateItem>
        <Copy DestinationFolder="$(_PackageTempDir)\Plugins\" SourceFiles="@(PluginFiles)" SkipUnchangedFiles="true" />
    </Target>

```

In the log executing order seems fine (Copy after Build), but after being deployed the Plugin folder doesn't exist on the target server.

Am I missing anything?