hi you guys
I have a solution that includes a VSTO project.
This solution is build on a TFS build server, where it fails with the following error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (268): The "TargetFrameworkVersion" parameter is not
supported by the "SignFile" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (264): The "SignFile" task could not be initialized
with its input parameters.
I am using Visual Studio 2015 Enterprise and is able to build the project on my own pc.
I have installed Visual Studio 2015 Enterprise on the build server as well and tried to build the project manually. This works fine.
In the build template i have specified the following parameters:
/p:GenerateProjectSpecificOutputFolder=true /p:VisualStudioVersion=14.0 /p:SkipInvalidConfigurations=true
I have installed the following to solve the issue:
Visual studio Tools for the Office system 3.0 Runtime
Microsoft Visual Studio 2010 Tools for Office Runtime (x64)
Microsoft Office Developer Tools for Visual Studio 2015
Microsoft Office Professional Plus 2016
The project is targeting .NET 4.5.2
The build server is a Windows Server 2016 version 1607
Unfortunatly i have not been able to finde much about this issue. I think it could have something to do with the Signing of the ClickOnce manifest configured in the project file, but i just can't finde a reason why this would not work using the TFS build
agent.
Something that looks strange is that from the activity log i can see that the Build agent uses MSBuild from this location:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
I have read some where that Visual Studio 2015 uses C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe
Why does my tfs build use a different version than Visual Studio and how can i change it so the tfs build use the same as Visual Studio?