CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2012
    Location
    .NET 4.0 / VS 2010
    Posts
    20

    Recompiling dll file

    I've modified the source code for a .dll, but I'm not sure how to recompile it. I just opened one of the source code .cs files with Notepad and made a few changes. I think if I can load it in Visual Studio properly, I could probably figure out how to export it as a .dll, but I don't know how to load the altered files in the first place. Is there some way I could edit a dll in Visual Studio directly?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Recompiling dll file

    Open the project (.csproj) or solution (.sln) in visual studio, modify the source file(s) and click the Build\Rebuild Solution menu item.

  3. #3
    Join Date
    Jun 2012
    Location
    .NET 4.0 / VS 2010
    Posts
    20

    Re: Recompiling dll file

    Thanks! It's building, though with a few errors I'll have to sort out. Can I use Visual Studio to export it as a dll file? Searches only seem to describe how to do it with Visual Studio C++, not with the C# version. Is it possible with C#?

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Recompiling dll file

    Quote Originally Posted by fiodis View Post
    Can I use Visual Studio to export it as a dll file?
    What do you mean 'export' it? If the project is a class library project, a dll (assembly) will be created for you when you build the project.

    You determine this when you create the project. If you don't have the correct project type, create a new class library project and add your .cs files to it.

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

Featured