http://www.codeplex.com/sdctasks

 

用MSBuild提供的Task功能,你可能会发现有一些不足的地方。 

比方说没有Zip,连接各种Source Control工具的功能。而这些在NAnt里是有这样功能的。

 

为此你可能要用到两种工具才能达到你的要求。 SDCTask就是为了这样的一个目的而生的。

 

有兴趣的朋友可以试用一下。

 

 

 


posted @ 2008-08-22 11:16 卜海清 阅读(8) | 评论 (0)编辑

http://blogs.msdn.com/govindr/archive/2007/03/06/wse-vs-addin-fails-to-generate-wse-proxy-in-64-bit-machine.aspx

 

 


posted @ 2008-07-22 12:38 卜海清 阅读(45) | 评论 (0)编辑

在C#里,有许多关键字是保留的,一般你是不能把他们用在类名和函数名,但如果你真的想要用的话也不是没有办法的。只要在前面加上一个@符号就可以了。 不信你就试一下。  

 具体可以参看下面的例子:

 

class @class
{
 
static void @static()
{
  System.Console.WriteLine(
"Test");
}

}

posted @ 2008-07-21 22:47 卜海清 阅读(6) | 评论 (0)编辑

以前一直想过有没有什么办法能把一个VS早期版本的Solution文件能升级到高版本。 今天正好在MSDN里看到了有这样的Post

基本模式如下:
devenv SolutionFile | ProjectFile /upgrade

比方说:
devenv "MyProject.sln" /upgrade

这样挺实用的一个小技巧。 升级完成后会生成一个UpgradeLog.xml文件。


相关的文章还可以参看:
Overview: Converting Visual Studio Web Sites and Projects to Visual Studio 2008

posted @ 2008-07-16 21:20 卜海清 阅读(16) | 评论 (0)编辑

可能我们非常喜欢在写一些Add-ins,Item templates,controls, code snippets等, 等完成之后自然想集成进Visual Studio里去.
为些我们需要开始一个Visusal Studio Content Installer(.vsi) 文件.

VSI文件实际上就是一个Zip文件,它里面包含两部分:
(1)一个XML格式的.vscontent结尾的文件,用以描述其中的内容.
(2)所有的内容文件

VS会把所有的VSI文件的信息保存在ContentInstallerHistory.xml 的文件里,它的路径是%RootDrive%\Documents and Settings\\My Documents\Visual Studio 2005 下.

具体可以参考:
(1)How to: Package Community Components to Use the Visual Studio Content Installer 
(2) Visual Studio Content Installer Schema Reference

不过在网上发现了一个免费的Vsi Builder的工具


更多的还可以看:
Packaging Your Snippets For Distribution

这里上传一个Sample的vscontent文件 希望能对大家有帮助。我也在学习中。

<?xml version="1.0" encoding="utf-8"?>
<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005">
  
<Content>
    
<FileName>Save Window Location Settings.snippet</FileName>
    
<DisplayName>Save Window Location Settings</DisplayName>
    
<Description>Saves a windows location to settings if the window is a normal state.</Description>
    
<FileContentType>Code Snippet</FileContentType>
    
<ContentVersion>1.0</ContentVersion>
    
<Attributes>
      
<Attribute name="lang" value="VB" />
    
</Attributes>
  
</Content>
</VSContent>



posted @ 2008-07-10 21:48 卜海清 阅读(10) | 评论 (0)编辑
http://blogs.msdn.com/jameslau/archive/2007/04/08/visual-studio-2005-settings-tricks.aspx


在刚装好第一次启动VS2005时,都会提示让你选择缺省语言的对话框,你是不是也和我一样觉得这挺烦的,能不能不让它出现,那就看一下我转的Blog吧!
posted @ 2008-07-10 17:02 卜海清 阅读(12) | 评论 (0)编辑
今天看到一道题目,想了许久都没有想出来,事后觉得自己对.net里的RE还不是很熟悉。
题目是这样的:
要把HTML里的LINK标记去掉,比方说输入是<a href=\"abc.com\" />text</a>,期望的输出就是text

在网上找了不少资料才得到答案。

      

 

1            string input = "<a href=\"abc.com\" />text</a>d";
2            Console.WriteLine(input);
3            Match omatch = rg.Match(input);
4            input = System.Text.RegularExpressions.Regex.Replace(input, "<a[^>]+>([^<]+)</a>""$1");
5            Console.WriteLine(input);



看来是Regex.Replace的第三个参数还不熟悉它的用法。

Character

Description

$number

Substitutes the last substring matched by group number number (decimal).

${name}

Substitutes the last substring matched by a (?<name> ) group.

$$

Substitutes a single "$" literal.

$&

Substitutes a copy of the entire match itself.

$`

Substitutes all the text of the input string before the match.

$'

Substitutes all the text of the input string after the match.

$+

Substitutes the last group captured.

$_

Substitutes the entire input string.


posted @ 2008-05-15 19:57 卜海清 阅读(14) | 评论 (0)编辑
今天开博,希望以后大家多支持!!
posted @ 2008-05-15 15:32 卜海清 阅读(7) | 评论 (0)编辑