TeamCity/.sqlproj build via MSBuild -- FAILED -


it started vs2017 runner type within tc. failing without errors or hints (except (default targets) -- failed. message on solution level). narrowed down .sqlproj'ects. these not building via msbuild, compile within vs2017 on build agent. blaming ssdt it... guess checked everything. problem bubbles solution level within tc build:

enter image description here

i noticed vs2017 ssdt comes vs setup. "workload" "data storage , processing" installed , "sql server data tools" under "individual components". noticed on https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt sentence "if using ssdt visual studio 2017, install , rs components". did it. nothing changed. ssdt installed separately previous versions.

this stack related didn't me.

any other ideas?


i came step further. beside vs build tools installed on build agent , teamcity's runner vs2017 uses msbuild build tools. can see above reproducing issue msbuild build tools well. if pick msbuild "version" of vs2017 works charm (as right within vs). make short:

does not work

c:\program files (x86)\microsoft visual studio\2017\buildtools\msbuild\15.0\bin

works

c:\program files (x86)\microsoft visual studio\2017\professional\msbuild\15.0\bin

i found blog post lukie briner, last paragraph pointed me solution (thank buddy!).

still don't know why/how can happen, maybe related order of installations of build tools, ssdt, visual studio etc.?

the reason: ssdt missing in build tools , version of msbuild.

what have done:

copy ssdt folder from

c:\program files (x86)\microsoft visual studio\2017\professional\msbuild\microsoft\visualstudio\v15.0

to

c:\program files (x86)\microsoft visual studio\2017\buildtools\msbuild\microsoft\visualstudio\v15.0.

wow! see real error message:

build-tools-msbuild-error-message

now had copy sqldb , sqleditor (i think sqlcommon existed in destination folder, if not should copied) from

c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\microsoft

to

c:\program files (x86)\microsoft visual studio\2017\buildtools\common7\ide\extensions\microsoft

and boom...

success

and yes, vs2017 runner teamcity happy it.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -