I'm using VS 2012. The MS Office installed is 2013 x64. I've downloaded and installed the Office 2010 PIA.
At the VS: I can only add references to Microsoft.Office.Core Microsoft.Office.Interop.Excel if the project is set to .NET 4.0, not 3.5.
And to do this in the .NET 4.0 project: ((Excel.Worksheet)xlWorkBook.Sheets1).Delete(); I need to add Microsoft.CSharp
In another PC, using VS 2010 and with Excel 2010 x64 installed. I was able to create a project without the Microsoft.CSharp library and the Office PIA is available in .NET 3.5.
So, how can I create a .NET 3.5 project using Excel 2010 (14) PIA in VS 2012 ? What I'm missing here?