office interop - What is VSTO exactly? -
i have few add-ins excel , word 2007-2016. , don't understand few things. project use dlls, microsoft.office.tools.common, office.dll, excel, word , common interop's. , these files can found in few places @ same time, different versions of them (like program files, windows/assembly, windows/microsoft.net/assembly). don't know version use. , also, if user has vsto installed, suppose has these files. why need provide them? install when install vsto? part , installation place component? think don't right, because found out excel loads 2 different versions of same file @ same time.
those lot of questions, , many of them depend on provide solution...
the case of pias ("office dlls") relatively clear cut:
- you not need (and should not) distribute office pias vsto solution, possible exceptions of 2007 , 2010. in these versions, installing .net support optional , not default. that's why there redistributables these versions, , not others. installer needs check whether they're present (same vsto runtime , version of .net framework) , install when necessary.
- office installs pias gac , solution find them there. makes no difference referenced them on developer machine.
- the pias in gac available via com tab in visual studio dialog box inserting references. many .net developers didn't find them there, microsoft delivers (one) single set of pias vsto , copies them visual studio folder they'll show in .net tab of dialog box. problem set of pias version of office "current" when version of visual studio released, meaning may get impression can't develop against other version because don't find pias in .net tab (but in com tab).
- rule of thumb: always, always develop code using earliest version of office plan support. there 2 reasons this: 1) can use functionality available versions of office application (office backwards compatible); 2) office designed migrate references older sets of pias newer sets, not other way around.
there's article on deployment pinned @ top of vsto forum on msdn "sorts" lot of requirements various versions of vsto , office: https://social.msdn.microsoft.com/forums/vstudio/en-us/1666d2b0-a4d0-41e8-ad86-5eab3542de1e/deploying-office-solutions-to-end-user-computers?forum=vsto add-ins targeting 2007-2010. later versions, see msdn documentation: https://msdn.microsoft.com/en-us/library/bb386179.aspx
Comments
Post a Comment