NAnt intellisense in VS.NET 2003 [转]
2005-08-30 11:37
375 查看
NAnt
intellisense in VS.NET 2003
I know, a zillion people wrote about intellisense in VS.NET for NAnt files
already, but just as a reminder for myself I write this blog entry:
Create a file NAntGenerateSchema.build with the following NAnt
code, modify the SchemaFile property for your installation diretory/version of
VS.NET:
<?xml
version="1.0" encoding="utf-8" ?>
<project name="GenerateNAntSchemaForVS.NET"
default="genschema">
<property
name="SchemaFile" value="C:\Program
Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\xml\NAnt.xsd"/>
<target name="genschema">
<nantschema output="${SchemaFile}"
target-ns="http://nant.sf.net/schemas/nant.xsd"/>
</target>
</project>
Call this script each
time you add some extra tasks dll’s or when you move to a new version of NAnt,
because it generates a schema based on the available NAnt
tasks.
Add you NAnt build file
to your VS.NET project (if possible).
Open the .build file in
VS.NET using File->Open…->File…, and then
notice the extra options in the lower right corner of the open file window,
select Open With…:
Now select to open this
file as selected below, also click Set as Default:
Set in the properties
window for this file the targetSchema to the NAnt schema:
Repeat for all your
build files. Done.
intellisense in VS.NET 2003
I know, a zillion people wrote about intellisense in VS.NET for NAnt files
already, but just as a reminder for myself I write this blog entry:
Create a file NAntGenerateSchema.build with the following NAnt
code, modify the SchemaFile property for your installation diretory/version of
VS.NET:
<?xml
version="1.0" encoding="utf-8" ?>
<project name="GenerateNAntSchemaForVS.NET"
default="genschema">
<property
name="SchemaFile" value="C:\Program
Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\xml\NAnt.xsd"/>
<target name="genschema">
<nantschema output="${SchemaFile}"
target-ns="http://nant.sf.net/schemas/nant.xsd"/>
</target>
</project>
Call this script each
time you add some extra tasks dll’s or when you move to a new version of NAnt,
because it generates a schema based on the available NAnt
tasks.
Add you NAnt build file
to your VS.NET project (if possible).
Open the .build file in
VS.NET using File->Open…->File…, and then
notice the extra options in the lower right corner of the open file window,
select Open With…:
Now select to open this
file as selected below, also click Set as Default:
Set in the properties
window for this file the targetSchema to the NAnt schema:
Repeat for all your
build files. Done.
相关文章推荐
- JavaScript debugging in VS.NET 2003
- customize the template of new files in vs.net 2003
- [转贴]使用VS.NET 2003 快速开发MS Office Add-In
- The usage of intellisense in Vs .net 2005
- 在vs.net 2003中编译ns2(2):编译tk
- VS .net 2003调试javascript中两个杂症的解决
- 不知道是不是VS.NET 2003的bug
- VS.NET 2003 控件命名规范
- C# 堆(Heap) Vs 栈 (Stack) in .NET (1/4)
- vs.net 2003变慢的可能原因
- vs 2008中使用Asp.net Ajax智能感知Intellisense
- IE8无法调试VS.Net 2003程序
- Regions Add-In for VS.NET 2005 or VS.NET 2008简要使用说明
- jQuery Intellisense in VS 2008
- First example In VS.NET 2005 Beta2(Script Callback)
- Converting a project from VS.NET 2003 to VS.NET 2002
- 微软发布VS.NET 2003 SP1
- VS.NET2003(c#)命名规范
- 微软发布VS.NET 2003 SP1
- 基于VS.Net 2003的Symbian开发环境的准备