Hi All,
 
    When I run my .build file, I get the following error  "[vbc] vbc : Command line error BC2008: No Input Sources specified."
I have attached the verbose generated when I try to build the application. Please take a look when you get a chance.
 
The code in my build file looks like this:
 

<?xml version="1.0"?>

<project name="Web Samples" default="run">

<property name="basename" value="WebSamples"/>

<property name="debug" value="true"/>

<target name="clean">

<delete>

<fileset>

<include name="bin/${basename}-??.exe"/>

<include name="bin/${basename}-??.pdb"/>

</fileset>

</delete>

</target>

<target name="build">

<mkdir dir="bin" />

<vbc target="exe" output="bin/${basename}-vb.exe" debug="${debug}">

<sources>

<include name="${basename}.vb"/>

</sources>

</vbc>

</target>

<target name="run" depends="build">

<exec program="bin/${basename}-vb.exe" basedir="."/>

</target>

</project>

Please let me know if you have any tips or suggestions.

Thanks,

Shabana

 

 

C:\work\nant\examples\WebSamples>nant.exe -verbose
NAnt 0.85 (Build 0.85.2296.0; nightly; 4/15/2006)
Copyright (C) 2001-2006 Gerry Shaw
http://nant.sourceforge.net

Framework 'net-1.0' is invalid and has not been loaded : The 'System.dll' assemb
ly does not exist in framework assembly directory 'C:\WINNT\Microsoft.NET\Framew
ork\v1.0.3705'..

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:
\WINNT\Microsoft.NET\Framework\v2.0.50727' does not exist..

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:
\WINNT\Microsoft.NET\Framework\v2.0.50215' does not exist..

Framework 'net-2.0' is invalid and has not been loaded : Framework directory 'C:
\WINNT\Microsoft.NET\Framework\v2.0.40607' does not exist..

Framework 'mono-1.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Foun
d! - key='SOFTWARE\Mono\';hive='Microsoft.Win32.RegistryHive[]';.

Framework 'sscli-1.0' is invalid and has not been loaded : Framework directory '
C:\sscli\build\v1.x86fstchk.rotor' does not exist..

Buildfile: file:///C:/work/nant/examples/WebSamples/WebSamples.build
Target framework: Microsoft .NET Framework 1.1
Base Directory: C:\work\nant\examples\WebSamples.
Target(s) specified: run


build:

      [vbc] Output file 'C:\work\nant\examples\WebSamples\bin\WebSamples-vb.exe'
 does not exist, rebuilding.
      [vbc] Compiling 0 files to 'C:\work\nant\examples\WebSamples\bin\WebSample
s-vb.exe'.
      [vbc] Contents of C:\DOCUME~1\Shahmed\LOCALS~1\Temp\tmp80.tmp.
      [vbc] /debug
      [vbc] "/define:DEBUG=True"
      [vbc] "/define:TRACE=True"
      [vbc] /nologo
      [vbc] "/target:exe"
      [vbc] "/out:C:\work\nant\examples\WebSamples\bin\WebSamples-vb.exe"
      [vbc]
      [vbc] Starting 'C:\WINNT\Microsoft.NET\Framework\v1.1.4322\vbc.exe (@"C:\D
OCUME~1\Shahmed\LOCALS~1\Temp\tmp80.tmp")' in 'C:\work\nant\examples\WebSamples'

      [vbc] vbc : Command line error BC2008 : no input sources specified

BUILD FAILED

C:\work\nant\examples\WebSamples\WebSamples.build(17,10):
External Program Failed: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\vbc.exe (ret
urn code was 1):
NAnt.Core.BuildException: C:\work\nant\examples\WebSamples\WebSamples.build(17,1
0):
External Program Failed: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\vbc.exe (ret
urn code was 1)
   at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() in d:\Source\nant-200604
14T152807Z\src\NAnt.Core\Tasks\ExternalProgramBase.cs:line 315
   at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask() in d:\Source\nant-20060414T15
2807Z\src\NAnt.DotNet\Tasks\CompilerBase.cs:line 649
   at NAnt.Core.Task.Execute() in d:\Source\nant-20060414T152807Z\src\NAnt.Core\
Task.cs:line 171
   at NAnt.Core.Target.Execute() in d:\Source\nant-20060414T152807Z\src\NAnt.Cor
e\Target.cs:line 247
   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in
 d:\Source\nant-20060414T152807Z\src\NAnt.Core\Project.cs:line 910
   at NAnt.Core.Project.Execute() in d:\Source\nant-20060414T152807Z\src\NAnt.Co
re\Project.cs:line 862
   at NAnt.Core.Project.Run() in d:\Source\nant-20060414T152807Z\src\NAnt.Core\P
roject.cs:line 947

Total time: 0.2 seconds.


C:\work\nant\examples\WebSamples>

Reply via email to