Could someone tell me why this line of code would build in VS but when I run the solution task in nant it fails:

 

For Each key As String In UserList.Keys

 

To be exact here is the error:

 

               [copy] Copying 26 files to C:\WINDOWS\TEMP\tmp255B.tmp\bin\.

                  [compile] C:\WINDOWS\TEMP\tmp255B.tmp\Providers\DataProviders\AccessDataProvider\AccessDataProvider.vb(1669) : error BC30451: Name 'key' is not declared.

                  [compile]

                  [compile]             For Each key As String In UserList.Keys

                  [compile]                      ~~~                          

                  [compile] C:\WINDOWS\TEMP\tmp255B.tmp\Providers\DataProviders\AccessDataProvider\AccessDataProvider.vb(1669) : error BC30035: Syntax error.

                  [compile]

                  [compile]             For Each key As String In UserList.Keys

                  [compile]                          ~~                       

                  [solution] Build failed.

 

 

Thanks.

Reply via email to