c# - Microsoft.Office.Interop.Word reference in Visual Studio 2015 and MS Office 2016 -


i have visual studio 2012 update 1 , office 2010, git cv system, , autobuild system based on teamcity enterprise. there project contain references "microsoft.office.interop.word".

on new workplace have installed vs 2015 (update 1) , ms office 2016. gave issue type or namespace 'office' not found in microsoft. deleted old references , add new references "microsoft office 16.0 object library" , "microsoft word 16.0 object library".

now, in new visual studio 2015 project compiles ok. .csproj-file has been changed not compiling on other programmers computers, have vs 2012 or vs 2013.

is there way combine both references different office versions? alternatively, how can configure moment work fine on workplaces? can copy old .dll (from office 2010) computer , add project outer .dll? or bad idea?

always program against oldest version of word (any office program) solution needs support. compiled against version 2016 isn't going run against 2010 , might end using functionality not available in older version.

it possible embed interop information in solution, making pia version independent (look "embed interop types" - need activate option pia reference), problem using unsupported functionality remains!


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -