Search code examples
.netversion-compatibility

How to check the compatibility between my program and the .NET Framework versions?


I am writing a program which is targeted to run on .net framework 2.0.

I have chosen 2.0 in my VS project.

It runs fine on my machine (mine has 2.0 SP2), so there is no compile error. but when I tried to run it on another machine (only with 2.0, no sp), it cannot run. I am aware that I used some method which is supported by 2.0 but only with 2.0 SP2.

.net framework 2.0 SP2 seems not being listed in VS IDE, that's why VS cannot give me any warning when I compiled it on my machine.

How can I easily check the compatibility of my codes with .net framework 2.0 SP2? or I just have to look at msdn to check every method I have used???

thanks


Solution

  • You can run FxCop, which will warn you whenever you call a method introduced by a service pack.