http://www.codeplex.com/sdctasks
用MSBuild提供的Task功能,你可能会发现有一些不足的地方。
比方说没有Zip,连接各种Source Control工具的功能。而这些在NAnt里是有这样功能的。
为此你可能要用到两种工具才能达到你的要求。 SDCTask就是为了这样的一个目的而生的。
有兴趣的朋友可以试用一下。
http://blogs.msdn.com/govindr/archive/2007/03/06/wse-vs-addin-fails-to-generate-wse-proxy-in-64-bit-machine.aspx
在C#里,有许多关键字是保留的,一般你是不能把他们用在类名和函数名,但如果你真的想要用的话也不是没有办法的。只要在前面加上一个@符号就可以了。 不信你就试一下。
具体可以参看下面的例子:
可能我们非常喜欢在写一些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文件 希望能对大家有帮助。我也在学习中。
看来是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.