Microsoft.tools.office.common .... [英] Microsoft.tools.office.common....

查看:179
本文介绍了Microsoft.tools.office.common ....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用c#创建我的第一个Excel添加。我有Visual Studio 2010.我使用新项目/ c#/ Office / 2010 / Excel 2010 Addin创建了一个新项目。它为this.Startup和this.Shutdown创建了一个事件处理程序,但是我得到一个错误,即没有Startup或Shutdown的定义。还有一个警告,即缺少Microsoft.Tools.Common.v4.0.Utilities。我查看了所有.NET引用,但找不到它。我在哪里可以得到它或其他参考将起作用?



我尝试了什么:



我用谷歌搜索过.dll但还没找到。

I am trying to create my first Excel add in with c#. I have Visual Studio 2010. I created a new project using the new project/c#/Office/2010/Excel 2010 Addin. It creates an event handler for this.Startup and this.Shutdown but I get an error that there is no definition for Startup or Shutdown. There is also a warning that Microsoft.Tools.Common.v4.0.Utilities is missing. I looked through all the .NET references and cannot find it. Where can I get it or what other reference will work?

What I have tried:

I have searched for the .dll using Google and have not found it.

推荐答案

我想知道你给谷歌带来了什么奇怪的话;我得到的第一个打击是 Office运行时Visual Studio工具中的程序集 [ ^ ]。
I wonder what strange words you gave to Google; the first hit I got was Assemblies in the Visual Studio Tools for Office Runtime[^].



#region VSTO generated code

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
    this.Startup += new System.EventHandler(ThisAddIn_Startup);
    this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}

#endregion



这是自动生成的导致错误的代码


This is the automatically generated code which is causing the error


这篇关于Microsoft.tools.office.common ....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆