Srikant,
You can build assemblies in two ways :
- use the compiler tasks if you want to have more control over the build
process. In this case, you pass the individual sources, resources and
assembly references to the compiler task. Eg. :
<vbc target="exe" output="${basename}-vb.exe"
rootnamespace="${basename}">
<sources>
<include name="${basename}.vb" />
</sources>
<resources dynamicprefix="true">
<include name="**/*.resx" />
</resources>
<references>
<include name="System.dll" />
<include name="System.Data.dll" />
</references>
</vbc>
- use the <solution> task if you need no additional control over the build
process. Eg. :
<solution configuration="release" solutionfile="HelloWorld.sln" />
or
<solution configuration="release">
<projects>
<include name="HelloWorld\HelloWorld.vbproj" />
</projects>
</solution>
Hope this helps,
Gert
----- Original Message -----
From: "srikant charala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 11:23 AM
Subject: [Nant-users] Build Errors
> hi! friends,
> my name is shrikant new to Nants build tool.
> this is regarding the errors i'm getting while building the ASP.Net
projects. i have installed the nants nightly build tool. properly done.
> when i build the asp.net project i get lot of errors -- (attached file.).
>
>
>
> Yahoo! India Matrimony: Find your life partneronline.
> BUILD file ---
> <?xml version="1.0"?>
> <project name="WebGrid" default="run">
>
> <!-- Targets -->
> <target name="clean">
> <delete>
> <fileset basedir="bin\">
> <include name="WebGrid.dll"/>
> <include name="WebGrid.pdb"/>
> </fileset>
> </delete>
> </target>
>
> <target name="build">
> <vbc target="library" output="bin\WebGrid.dll">
> <sources>
> <include name="*.vbproj"/>
> </sources>
> </vbc>
> </target>
>
> <target name="run" depends="build">
> <exec program="bin\WebGrid.dll"/>
> </target>
> <!-- End Targets -->
>
> </project>
>
> *************************************
> Build Errors ---
>
> C:\Inetpub\wwwroot\WebGrid>nant build
> NAnt 0.85 (Build 0.85.1671.0; net-1.0.win32; nightly; 7/29/2004)
> Copyright (C) 2001-2004 Gerry Shaw
> http://nant.sourceforge.net
>
> Buildfile: file:///C:/Inetpub/wwwroot/WebGrid/WebGrid.build
> Target(s) specified: build
>
>
> build:
>
> [vbc] Compiling 1 files to
'C:\Inetpub\wwwroot\WebGrid\bin\WebGrid.dll'.
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(1) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] Microsoft Visual Studio Solution File, Format Version 8.00
> [vbc] ~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(2) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "WebGrid",
"http://localhost/WebGrid/WebGri
> 6F1F6CC4-BC01-4D21-A31F-4F042FB51AC6}"
> [vbc] ~~~~~~~
>
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(3) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] ProjectSection(ProjectDependencies) = postProject
> [vbc] ~~~~~~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(4) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] EndProjectSection
> [vbc] ~~~~~~~~~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(5) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] EndProject
> [vbc] ~~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(6) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] Global
> [vbc] ~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(7) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] GlobalSection(SolutionConfiguration) = preSolution
> [vbc] ~~~~~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(8) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] Debug = Debug
> [vbc] ~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(9) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] Release = Release
> [vbc] ~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(10) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] EndGlobalSection
> [vbc] ~~~~~~~~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(11) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] GlobalSection(ProjectConfiguration) = postSolution
> [vbc] ~~~~~~~~~~~~~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(12) : error BC30035:
Syntax error.
> [vbc]
> [vbc] {6F1F6CC4-BC01-4D21-A31F-4F042FB51AC6}.Debug.ActiveCfg
= Debug|.NET
> [vbc] ~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(13) : error BC30035:
Syntax error.
> [vbc]
> [vbc] {6F1F6CC4-BC01-4D21-A31F-4F042FB51AC6}.Debug.Build.0 =
Debug|.NET
> [vbc] ~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(14) : error BC30035:
Syntax error.
> [vbc]
> [vbc]
{6F1F6CC4-BC01-4D21-A31F-4F042FB51AC6}.Release.ActiveCfg = Release|.NET
> [vbc] ~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(15) : error BC30035:
Syntax error.
> [vbc]
> [vbc] {6F1F6CC4-BC01-4D21-A31F-4F042FB51AC6}.Release.Build.0
= Release|.NET
> [vbc] ~
> [vbc] C:\Inetpub\wwwroot\WebGrid\WebGrid.sln(16) : error BC30188:
Declaration expected.
> [vbc]
> [vbc] EndGlobalSection
>
> BUILD FAILED
>
> C:\Inetpub\wwwroot\WebGrid\WebGrid.build(15,8):
> External Program Failed:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\vbc.exe (return code was 1)
>
> Total time: 5.9 seconds.
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users