人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

June 7, 2006

VS2005 AddIn Line Counter

Filed under: Visual Studio

Line Counter - Writing a Visual Studio 2005 Add-In

http://www.codeproject.com/useritems/LineCounterAddin.asp

除了提供了一个很不错的插件,这篇文章还教学了

1.AddIn的原理和写法

2.AddIn的安装

其中对资源的处理使用了Build event,是个不错的解决方案

AddIn的安装需要注意.AddIn 文件的部署,文章曰:

This is important for when VS tries to register the add-in. If it is missing, then the add-in will not register. This particular file is somewhat unique in that it is a shortcut. The actual location of this file should be in your {MyDocuments}\Visual Studio 2005\Addins\ folder. It should contain the following xml (NOTE: The [ProjectOutputPath] should match the output path of the project on your own system, so you will probably have to edit it).

If you need to add this file to the project, place it in the proper location under your My Documents folder first. When you add the file to the LineCounterAddin project, instead of clicking the Add button, use the down arrow next to it, and choose “Add As Link“.

有关.AddIn File可以参考

Packaging Add-ins and Toolbox Controls for use with Visual Studio Content Installer

http://blogs.msdn.com/chetanc/archive/2005/10/10/479000.aspx

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/06/07/vs2005-addin-line-counter/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham