Results 1 to 5 of 5

Thread: How to add reference of a .dll using Notepad???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    66

    How to add reference of a .dll using Notepad???

    In VS, it's easy using the project panel in adding reference of a .dll.
    But how can I do the C# scripting all in Notepad and I needa reference to shdocvw.dll?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How to add reference of a .dll using Notepad???

    you open the project file, and add the necessary entry under references.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    66

    Re: How to add reference of a .dll using Notepad???

    Not in VS. I mean just starting scripts from scratch in Notepad.

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How to add reference of a .dll using Notepad???

    again....
    you open the project file, and add the necessary entry under references.

    I do this all the time in Notepad++.... I just open the project file, which is in XML format, add/remove/change what I need to, and save it. I don't recommend this unless you know what you're doing... but it' possible... all you need to do is
    open the project file, and add the necessary entry under references.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    66

    Re: How to add reference of a .dll using Notepad???

    Is it ".csproj"?
    Is the xml something like this:
    Code:
      <ItemGroup>
        <Reference Include="System" />
        <Reference Include="System.Core" />
        <Reference Include="System.Xml.Linq" />
        <Reference Include="System.Data.DataSetExtensions" />
        <Reference Include="Microsoft.CSharp" />
        <Reference Include="System.Data" />
        <Reference Include="System.Xml" />
      </ItemGroup>
    Add / Remove the reference here?

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