zoukankan      html  css  js  c++  java
  • NAnt intellisense in VS.NET 2003 [转]


    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…:
      FileOpenExtraOptions

    • Now select to open this file as selected below, also click Set as Default:
      FileOpenOpenWith

    • Set in the properties window for this file the targetSchema to the NAnt schema:
      NAntSchema

    • Repeat for all your build files. Done.

  • 相关阅读:
    ubuntu16.04自动删除内核
    禅道服务数据的迁移
    k8s常用命令3
    使用logstash迁移es集群数据
    es集群迁移脚本
    helm常用命令1
    【操作】python2升级到python3
    【推荐】构建脚本之shell编写规范
    【推荐】linux使用zip命令
    Sublime使用大全
  • 原文地址:https://www.cnblogs.com/huqingyu/p/225938.html
Copyright © 2011-2022 走看看