msbuild - Visual Studio Build Tools 2017 for Office VSTO -


i have installed vs build tools 2017 on build server. when try build /t:publish /p:publishdir="pub/" _deploymentunpublishable: skipping unpublishable project.

is there way fix or need install full vs office developer tools?

is there way fix or need install full vs office developer tools?

i got same error msbuild arguments on command line:

enter image description here

you need configure msbuild command line on build server 2 additional arguments: /p:deployonbuild=true , /p:publishprofile=your_publish_profile.pubxml instead of /t:publish /p:publishdir="pub/.

so msbuild command line should be:

msbuild.exe "yourprojectname.csproj" /p:deployonbuild=true /p:publishprofile=publishprofilename.pubxml 

of course, need create publish profile .pubxml, don't need specified path publish_profile.pubxml long it's under publishprofiles directory project file.

update ant`s comment:

since project type "excel 2013 , 2016 vsto add-in", not "excel web add-in", should use clickonce publish method deploy project. have created sample demo vs 2017 , build tfs 2017. can check if helps:

  1. create excel 2013 , 2016 vsto add-in project vs 2017.
  2. publish project vs manually, projectname_temporarykey.pfx file generated. check project include .pfx file tfs.
  3. edit build definition msbuild task. , add /t:publish /p:publishdir="pub/" msbuild argument:

enter image description here

  1. save , build project.

according build log, project publish successfully:

enter image description here

note: add .pfx file build server , build server installed vs 2017, afaik, not need install entire vs, should install workload office/sharepoint development:

enter image description here


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -