Guys,
<file:///D:/WorkDir/P57_TEMPUS_WEB_REPORTS/Samples/Application.myapp.txt>
1. I've tried all sorts of thing to compile a windows forms app using vbc
task(It compiles fine with Visual Studio). My VS2005 WinForms project uses
'Enable application framework' property (Project->Properties->Application).
This results in having a Application.MyApp & Application.Designer.Vb files
uner My Project folder. This .vb file does not get compiled with vbc, with
errors like 'IsSingleInstance' is not a member of '
SimpleWinProj.My.MyApplication' etc...

My questions is whether its possible to pass some params to vbc to help it
compile these classes.

2. In the same project I read whats been passed to the app as command line
args (Another app calling mine etc...) by My.Application.CommandLineArgs(1)
etc...Nant again complaints that 'CommandLineArgs' is not a member of '
SimpleWinProj.My.MyApplication'.

Any guidance on the above 2 matters are highly appreicated.

Uchitha.

PS: Code of the 2 classes are attached herewith.
'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:2.0.50727.42
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On


Namespace My
    
    'NOTE: This file is auto-generated; do not modify it directly.  To make 
changes,
    ' or if you encounter build errors in this file, go to the Project Designer
    ' (go to Project Properties or double-click the My Project node in
    ' Solution Explorer), and make changes on the Application tab.
    '
    Partial Friend Class MyApplication
        
        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Public Sub New()
            
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
            Me.IsSingleInstance = false
            Me.EnableVisualStyles = false
            Me.SaveMySettingsOnExit = false
            Me.ShutDownStyle = 
Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
        End Sub
        
        <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
        Protected Overrides Sub OnCreateMainForm()
            Me.MainForm = Global.No.Tempus.Rpt.Framework.TempusLoginScreen
        End Sub
    End Class
End Namespace
<?xml version="1.0" encoding="utf-8"?>
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <MySubMain>true</MySubMain>
  <MainForm>TempusLoginScreen</MainForm>
  <SingleInstance>false</SingleInstance>
  <ShutdownMode>0</ShutdownMode>
  <EnableVisualStyles>false</EnableVisualStyles>
  <AuthenticationMode>0</AuthenticationMode>
  <SaveMySettingsOnExit>false</SaveMySettingsOnExit>
</MyApplicationData>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to