Results 1 to 7 of 7

Thread: How to do this interesting stuff ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    India
    Posts
    22

    How to do this interesting stuff ?

    Hi dudes,

    How to work with Automation in dot net. Any samples or links ?.

    My requirement is i wanna open a vb.net or C# project, edit and compile vb.net or c# files dynamically from vb.net or C# my
    win app.

    for this, i should use, Automation. right ?

    How to use it.

    Many thanx in Advance.

    Rafik

  2. #2
    Thelonius
    Guest
    Huh??

  3. #3
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    I could be wrong, but I don't think dotnet supports automation.

    I think it does support command line arguments, so you could perhaps get the same effect by creating bat files and shelling to them.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    India
    Posts
    22

    But I need Editor

    Hi Brian,


    My requirment is, I wanna open a C# project, edit and compile c# files dynamically from C# my win app. Though, CodeDOM helps us to compile the code dynamically, i want to use automation to provide editor, to write, save and compile the code.

    I think, Automation is only way right ? Framework provides such classes like DTE.Solution, Project, ProjectItem, how to use it for do the above task ?

    Any help and suggestions would be greatly appreciated

    Rafik

  5. #5
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    Sounds like you're trying to make your own code editor in C#.

    The compiler comes with the .Net framework SDK. Here's a link I found: http://www.dotnet101.com/articles/ar...ompOptions.asp
    Please rate my post.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    India
    Posts
    22
    Hi Shawn,


    Compilations not a problem to me, Am using my CodeDOM for my compilations.

    But, we need to get some code for open a source code of a method or class in VS.NET editor using automation.

    Any samples ?


    Rafik

  7. #7
    Frenzied Member Shawn N's Avatar
    Join Date
    Dec 2001
    Location
    Houston
    Posts
    1,631
    Sorry but I don't understand the problem.
    Please rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width