I have an application that works fine on .Net 2.0 SP2 but does not work properly in RTM.NET 2.0. (FYI: it does not work when calling the managed DLL method, which is the shell for the native DLL for USB programming).
I know that you can support supported runtimes in app.config of a C # .NET application
<startup> <supportedRuntime version="v2.0.5727" /> <supportedRuntime version="v4.0" /> </startup>
However, is it possible to also specify a specific version of a service pack?
Thanks!
Edit: I have now figured out which method fails between 2.0 and 2.0 SP2. This is WaitHandle.WaitOne (int), which was added in 2.0 SP1.
Advice for everyone who has a problem, the compiler does not say anything, but if you execute an executable file with a problematic runtime, it gives an exact error.
eg:.
Warning: System.MissingMethodException: Method not found: 'Boolean System.Threading.WaitHandle.WaitOne(Int32)'. while resolving 0xa0000e1 - System.Threading.WaitHandle.WaitOne. 11/11/2010 01:54:07 [3620]: Method not found: 'Boolean System.Threading.WaitHandle.WaitOne(Int32)'. while compiling method XXX
Rogier
Rogier
source share