TFS integration with this DLL

Mar 11, 2015 at 4:14 PM
Where would I place this DLL if I am interested in using it to leverage the MSBuild from the Build Server on my TFS installation to deploy reports?
Coordinator
Mar 18, 2015 at 10:40 AM
The DLL can be place any where on the computer that will run the msbuild project. The important part is the MSBuild project file always has the correct path to load the DLL. The simple solution is to have DLL in a Known location like C:\Program Files\MSBuild and in the MSBuild project file have the using statements looking like this: <UsingTask TaskName="ssrsmsbuildtasks.RS2008R2.AddReports" AssemblyFile="$(MSBuildExtensionsPath)\ssrsmsbuildtasks.dll" />.

Another method is to have the DLL check-in to TFS in folder location which is then downloaded as part of the build and then have the using statement look like this:

<PropertyGroup>
<SSRSMSBuildTasksLibrary>ssrsmsbuildtasks.dll</SSRSMSBuildTasksLibrary>
<SSRSMSBuildTasksPath>$(MSBuildProjectDirectory)</SSRSMSBuildTasksPath>
<SSRSMSBuildTasksFullPath>$(SSRSMSBuildTasksPath)\$(SSRSMSBuildTasksLibrary)</SSRSMSBuildTasksFullPath>
</PropertyGroup>

<UsingTask TaskName="ssrsmsbuildtasks.RS2008R2.AddReports" AssemblyFile="$(SSRSMSBuildTasksPath)" />

Add something like the following options to the MSBuild arguments:

/p:SSRSMSBuildTasksPath=”$(TF_BUILD_BINARIESDIRECTORY)”\DeployBin

Regards
Steve