Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3500298
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:43:00+00:00 2026-05-18T12:43:00+00:00

I created a .DLL targetting .Net 4 but now I’m thinking of compiling it

  • 0

I created a .DLL targetting .Net 4 but now I’m thinking of compiling it to .Net 3.0 so people using Visual Studio 2008 can use the DLL.

Is there a difference between a .DLL compliled for .Net 4 and .Net 3.0?

That is, should I create two DLLs (one for each framework) because it’s better to use a DLL compiled to the framework your targetting? or should I just offer one compiled to .Net 3.0 and let VS2010 users use that one because there is no difference in using a DLL compiled to a previous framework?

Thanks,

Update:
I should have been more explicit and have added “aside from needing the required framework”. In other words, is there any difference between, from a .Net 4 project, referencing a DLL compiled in .Net 3.0 and one compiled in .Net 4? Assuming they both use .Net 3.0 syntax, do you gain/lose anything by using either one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:43:00+00:00Added an answer on May 18, 2026 at 12:43 pm

    If your assembly is not using any features specific to 4.0, it is probably easiest to just compile a 3.0 version of it and use that for both. (actually, you can go all the way down to version 2.0 if your code allows it, as framework versions 3.0 and 3.5 are each supersets of 2.0)

    If your library ever did have separate code for different versions; for maximum flexibility, you can create a separate project for 3.0 and 4.0 versions, and ‘link’ the same source files rather than having separate copies. You would use preprocessor directives if you ever need to code differently per framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a DLL in C++ using Visual Studio 2005. My problem is that
I have created WCF dll and succesfully tested using WCFTestCLient in Visual Studio. problem
I'm using Visual Studio C++ 2005 on Windows XP. I have created a DLL
I created a dll and tbl files from C# Visual Studio 2008. I Regasm
I've created a DLL to a project in Visual Studio 2010. I'm using this
I have created a dll in C++ using a Class Library project in Visual
I've created a DLL in C# using the .NET 3.0 framework. Below is the
I created a PHP Hello World extension DLL with Microsoft Visual C++ 2008. I
I had created a DLL in .NET ,which includes several function.Now I am suing
I created a dll file built (Project:win32 app, ATL and COM object using Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.