none
This COM reference will be treated as a reference and will not be linked RRS feed

  • Question

  • Do I have something set up incorrectly if I get this message every time I compile?   it's an Outlook 2010 project using Visual Studio 2010.   Is it something I should worry about?

     COM Reference 'Microsoft.Office.Interop.OutlookViewCtl' is the interop assembly for ActiveX control 'AxMicrosoft.Office.Interop.OutlookViewCtl' but was marked to be linked by the compiler with the /link flag. This COM reference will be treated as a reference and will not be linked.
     myaddin -> C:\Users\username\Documents\Visual Studio 2010\Projects\Outlook\Outlook-Proj\bin\Debug\myaddin.dll

    Under references, I have an entry for AxMicrosoft.Office.Interop.OutlookViewCtl

    these are its properties:

    Name:AxInterop.Microsoft.Office.Interop.OutlookViewCtl
    Copy Local: True
    Culture:0
    Description:Microsoft Outlook View Control
    Embed Interop Types: False
    File Type: ActiveX

    Identity: {0006F062-0000-0000-C000-000000000046}\1.1\0\aximp
    Isolated:False
    Path:C:\Users\username\Documents\Visual Studio 2010\Projects\Outlook\Outlook-Proj\bin\Debug\AxInterop.Microsoft.Office.Interop.OutlookViewCtl.dll
    Resolved: True
    Strong Name: False
    Version: 1.1.0.0

    Its been used within a UserControl, OutlookViewControl.cs
    its referenced at the top in that file as:

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Data;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    
    using OVC = AxMicrosoft.Office.Interop.OutlookViewCtl;
    
    
    using Outlook = Microsoft.Office.Interop.Outlook;
    
    
    
    
    
        public partial class OutlookViewControl : UserControl
        {
            private OVC.AxViewCtl viewControl;
    
            private Outlook.Application _app;
    
    
            public OutlookViewControl()
            {
                InitializeComponent();
    
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OutlookViewControl));
                this.viewControl = new AxMicrosoft.Office.Interop.OutlookViewCtl.AxViewCtl();
                ((System.ComponentModel.ISupportInitialize)(this.viewControl)).BeginInit();
    
                Random random = new Random();
                int randomNumber = random.Next(0, 100);
    
                this.viewControl.Dock = System.Windows.Forms.DockStyle.Fill;
                this.viewControl.Enabled = true;
                this.viewControl.Location = new System.Drawing.Point(0, 0);
                this.viewControl.Name = "axViewCtl1" + randomNumber.ToString();
                this.viewControl.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject(this.viewControl.Name + ".OcxState")));
                this.viewControl.Size = new System.Drawing.Size(371, 364);
                this.viewControl.TabIndex = 0;
                this.viewControl.Visible = false;
    
    
                this.Controls.Add(this.viewControl);
               
    
             
    
                ((System.ComponentModel.ISupportInitialize)(this.viewControl)).EndInit();
            }

    Monday, October 22, 2012 3:22 PM

Answers