Compiling to different frameworks.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have developed a VB .NET component using VS 2003 under version 1.1 of the framework. I want to produce two version of the component; one for each version of the framework. Is it possible to compile to different frameworks? When I create an exe the build page has an option for a target framework but it is disabled for components

Cheers, Robby
 
Hi Robby,

Thanks for posting in the community.
Is it possible to compile to different frameworks? When I create an exe
the build page has an option for a target framework but it is disabled for
components?
yes, you can, please refer to the following MSDN and related tech articles:
Specifying the Runtime Version for an Application
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskspecifyingruntimeversionforapplicationorcomponent.asp

Managing Multiple Versions of the .NET Framework
http://www.microsoft.com/windowsserver2003/techinfo/serverroles/appserver/mn
gfrmwk.mspx


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Hi Robby,

In addition to the setting in VS.NET IDE Gary has mentioned. You can also
manually set the runtime version which used by your application in the your
application's config file. You can use the <supportedRuntime> element to
target a runtime version. For example:
<configuration>
<startup>
<requiredRuntime version="v1.0.3705" />
</startup>
<runtime>
.....
</configuration>

For detailed info, you can refer to the following reference in MSDN:

#Targeting a .NET Framework Version
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconTargetingNETFramew
orkVersion.asp?frame=true

Hope this also help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top