Fail to compile after trying add ons to connect to office word

  • Thread starter Thread starter YigalB
  • Start date Start date
Y

YigalB

Guest
My Application is failing to compile after I tried several direction to interact with word file.

The error I get is:

Severity Code Description Project File Line Suppression State
Error CS1061 'Form1' does not contain a definition for 'button2_Click_1' and no accessible extension method 'button2_Click_1' accepting a first argument of type 'Form1' could be found (are you missing a using directive or an assembly reference?) WindowsFormsApp5 C:\Users\yigal\Documents\Yigal\VS2017\Repos\BZfamTree\WindowsFormsApp5\Form1.Designer.cs 186 Active
Error CS1760 Assemblies 'C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Word\15.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Word.dll' and 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Visual Studio Tools for Office\PIA\Office15\Microsoft.Office.Interop.Word.dll' refer to the same metadata but only one is a linked reference (specified using /link option); consider removing one of the references. WindowsFormsApp5 C:\Users\yigal\Documents\Yigal\VS2017\Repos\BZfamTree\WindowsFormsApp5\CSC 1 Active



I dont know what "CSC" file is, so I have no idea how to approach this. I guess it's because I added (interop) and removed it, but it seems the problem is elsewhere.

Any ideas?

Continue reading...
 

Similar threads

T
Replies
0
Views
77
thankyoueveryday
T
J
Replies
0
Views
83
JOSE MANUEL RAMIREZ LEON
J
J
Replies
0
Views
131
JOSE MANUEL RAMIREZ LEON
J
Back
Top