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 6148579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:18:24+00:00 2026-05-23T19:18:24+00:00

My .NET app runs as a plugin to a C++ MFC desktop app which

  • 0

My .NET app runs as a plugin to a C++ MFC desktop app which provides a .NET SDK. The main app is in charge of loading .NET before it loads any plugins. I’m compiling my project against .NET 3.5, and the following test code works just fine:

    MainApp.WriteLine("MyPlugin running on .NET {0}.{1}", _
                       System.Environment.Version.Major, _
                       System.Environment.Version.Minor)

    Dim data As Int32() = New Int32() {1, 1, 1, 1, 4, 4, 4, 4, 12, 12, 12, 12}
    For Each distinctValue As Int32 In data.Distinct()
      MainApp.Write(distinctValue.ToString() & ", ")
    Next

This is Linq code which should only run on .NET 3.5 right? However when it prints the version message it claims that “MyPlugin running on .NET 2.0”

Why/How is this working and can I rely on it to always work, provided .NET 3.5 has been installed?

  • 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-23T19:18:25+00:00Added an answer on May 23, 2026 at 7:18 pm

    At a guess, it is reporting the core version of .NET, which is 2.0. This was not updated unti lversion 4.0, because the core code is the same.

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

Sidebar

Related Questions

Greetings, I have a large .Net web app which runs on a farm of
My web app runs on .Net 3.5, all of the dates are saved on
I have a simple .NET 2.0 windows form app that runs off of a
I have a WinForms app written in C# with .NET 3.5. It runs a
I would like to add OpenId support to an app. It runs on ASP.NET
My C#, .NET 4, app runs fine on XP (media centre to be exact
So this code runs in an asp.net app on Linux. The code calls one
I have a .NET 2.0 app that runs just fine on XP and Vista,
My ASP.NET web app runs fine under IIS 7.5. But I want to make
I have a java app which runs just fine (on Ubuntu 10.04) for few

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.