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:
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:
- create excel 2013 , 2016 vsto add-in project vs 2017.
- publish project vs manually, projectname_temporarykey.pfx file generated. check project include .pfx file tfs.
- edit build definition msbuild task. , add
/t:publish /p:publishdir="pub/"
msbuild argument:
- save , build project.
according build log, project publish successfully:
note: add .pfx file build server , build server installed vs 2017, afaik, not need install entire vs, should install workload office/sharepoint development
:
Comments
Post a Comment