1

is there a way to find out which part of my application uses framework 4 client profile or whatever.

I have a simple application which i published through the visual studio 2010 publish wizard when i install it anywhere else it is downloading 4.0 and in some places it is just complaining the application cannot install because the framework 4.0 is not installed.

Problem is i have done nothing fancy that needs framework 4.0. But still may be a minor part of my app uses something or i dont know what it is. So can any one tell me how to find out what part of my app exactly uses framework 4.0. so that i can change it and find a workaround for that.

Sanjeevakumar Hiremath
  • 10,985
  • 3
  • 41
  • 46
swordfish
  • 4,899
  • 5
  • 33
  • 61

2 Answers2

1

In your project settings, switch the target framework to "3.5". Then the compiler will complain about any non-3.5 features that you use.

Heinzi
  • 167,459
  • 57
  • 363
  • 519
1

Assuming you compiled the project using Visual Studio, you can change the target framework on the project properties page, Application tab.

Project > "My Project" Properties > Application, and change the target framework :)

cwharris
  • 17,835
  • 4
  • 44
  • 64