How to add vssget task to NANT

xiaoxiao2021-03-06  16

How to add vssget task to NANT

How to add vssget task to NANT

PS: This article blog is reposted.

Vssget This Task is not available by default in Nant. In order to transfer the data in the VSS Database Server to the local to compile, you have to join VssGet this task in Nant. Methods are as follows:

1

download

Nant

Latest version

Http://nant.sourceForge.net/builds/ The latest version is version 0.85. The latest version is a version 0.85.

Add NANT to the system's environment variable

2

will

Nant

Add to environment variables

Find "PATH" in the system variable and change the value to Nant.exe's directory address, such as: D: nant / bin.

3

an examination

.NET Framework

version of

If your .NET Framework is 1.0 does not have to be modified. Jump to step 4.

If your .NET Framework is 1.1 or more, you want to configure it. Profile In the Nant installation directory / bin directory, the name is nant.exe.config, use the .NET Framework version information stored in frameworkinfo-> nantsettings- > frameworks> tag below. If you install a 1.1 version, you can change it to 1.1.4322, see all installed Framework versions in the Microsoft.Net/framework directory under the Windows installation directory.

4

Install and compile

NantContrib

Download http://nantcontrib.sourceforge.net/nightly/builds/

Enter the root directory of NANT run the following command

Bin / Nant.exe Package

Enter the root directory of NantContrib run the following command

Nant -d: nant.dir = c: / nant-debug-f: nantcontrib.build

Where c: / nant is the root directory of NANT (BIN's last level directory)

Copy all files in the build / bin directory to NANT / BIN

This can be used in Nant's Task.

Attached 1:

Use Nant CSC a .cs file, source code as follows:

1.1 The latest NANT Task and its corresponding attribute list.

http://nant.sourceforge.net/help/tasks/index.html

Attachment 2:

Compile a solution with Nant, the source code is as follows, with "//" write, if you want to compile the annotation to write with "".

= "Solution.FileName" Value = "D: / ClientVSS / TEST / TEST .sln "/>

// Name is the name of the solution value is the address of the solution. You can write the address of the server, such as: // DSI_COOLBUG / shared directory

// Name output file name value: Output file address

/ / The top is the first solution

/ / The upper is the second solution

/ / The Target with the first solution is running the first solution is to reference the name in Project on Project.

// This target is deleted C: / b.

// call the TARGET named T1

// call named T2 TARGET

Attachment 3:

Use nant to get the file on the VSS Database server and output to the local:

// User: The account password on the VSS: VSS corresponding to the account

// localPath: Output to the local address dbpath: INI file address on the server

// PATH: To get all files in which directory on the server, this example is all files in the root directory.

For new Task and all its properties lists, see:

Http://nantcontrib.sourceforge.net/help/tasks/index.html

Vssget Task properties list:

http://nantcontrib.sourceforge.net/help/tasks/vssget.html

Posted @ 4:01 PM | Feedback (1)

Thursday, July 15, 2004 #

It's a shame, just finished writing an essay, I found my conceptual mistake.

In the previous blog, "I can download the Beta 1 version of VS.Net 2005" I mentioned that I can download VS.NET 2005 after reading the introduction below, I found that I have made a conceptual version of a conceptual mistake. The Express version of VS.NET is a VS.NET version that Microsoft has launched a non-professional developer, not just as I imagined, just a installation method. See the link below for details.

http://www.9cbs.net/news/newstopic/16/16039.shtml

Posted @ 2:49 PM | Feedback (1)

You can download the Beta 1 version of VS.NET 2005.

Inadvertently discovered this link from the MSDN express mail sent from Microsoft.

http://go.microsoft.com/?linkid=695285

I have tried it yourself, but the installation process is an Express mode, but you need to download a hundred KB installer, and then the data required during the installation process will download it from the network.

I have installed the C # version VS.Net 2005, and even the .NET 2.0 framework only needs to download more than 50 megabytes. Friends who can install broadband or ADSL at home or ADSL can try it.

PS: Mounting VS.NET 2005 Beta's computer must not install other vs.net versions (such as VS.NET 2003), otherwise it prompts you to uninstall old version and then install new versions.

Posted @ 2:35 PM | Feedback (2)

Sunday, July 11, 2004 #

Raise .NET

I haven't touched C # and .NET Framework, I think I may already have a discovery for them, but I have a project recently used .Net development, I need to participate, I hope this can be a good. Net. opportunity.

Posted @ 3:17 pm | feedback (0)

转载请注明原文地址:https://www.9cbs.com/read-42204.html

New Post(0)