i o Comp Dot Net Framework Target Modification Guide

download i o Comp Dot Net Framework Target  Modification Guide

of 25

Transcript of i o Comp Dot Net Framework Target Modification Guide

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    1/25

    The Standard in Industrial Automation and Scientific Components for Real-Time Applications

    .Net Target Framework

    Modification Guide

    .Net Target Framework Modification Guide Page 1of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    2/25

    Copyright

    Copyright 1998-2013 Iocomp Software Incorporated. All rights reserved.

    Portions of the software described in this document copyright Microsoft Corporation, Borland Corporation, and

    Embarcadero Technologies, Inc., All Rights Reserved.

    No part of this publication may be reproduced, stored in a retrieval system or transmitted by any means,

    electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher.

    Except for the limited warranty as described in the End User License Agreement, the information and material

    contained in this book are provided "As Is" without warranty of any kind, express or implied, including without

    limitation any warranty concerning the accuracy, adequacy, or completeness of such information or material or

    the results to be obtained from using such information or material contained within this manual or

    documentation. Neither Iocomp Software nor the author shall be responsible for any claims attributable to errors,

    omissions, or other inaccuracies in the information or material contained in this book, and in no event shall Iocomp

    Software nor shall the author be liable for direct, indirect, special, incidental, or consequential damages arising out

    of the use of such information or material. Some states do not allow limitations of duration of any implied

    warranty, so the above limitations may not apply to you.

    Trademarks

    Iocomp and the Iocomp Logo are registered trademarks of Iocomp Software Incorporated. Microsoft, Visual Basic,

    Visual C++, Windows, Visual Basic.NET, C#.NET, C++.NET, Visual Studio.NET, and ActiveX are trademarks or

    registered trademarks of Microsoft Corporation. All other names, products, or marks are trademarks or registered

    trademarks of their respective companies.

    Printing

    Initial Printing 09/2013

    Manufactured in the United States of America

    .Net Target Framework Modification Guide Page 2of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    3/25

    Table of Contents

    Table of Contents

    VS2003 .......................................................................................................................................................... 4

    VS2005 .......................................................................................................................................................... 5

    VS2008 .......................................................................................................................................................... 6

    VB .......................................................................................................................................................... 6

    C++ ........................................................................................................................................................ 9

    C# ........................................................................................................................................................ 11

    VS2010 ........................................................................................................................................................ 13

    VB ........................................................................................................................................................ 13

    C++ ...................................................................................................................................................... 15

    C# ........................................................................................................................................................ 19

    VS2012 ........................................................................................................................................................ 21

    VB ........................................................................................................................................................ 21

    C++ ...................................................................................................................................................... 23

    C# ........................................................................................................................................................ 24

    .Net Target Framework Modification Guide Page 3of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    4/25

    VS2003 -

    VS2003

    Note: Target Framework changes not supported!

    .Net Target Framework Modification Guide Page 4of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    5/25

    VS2005 -

    VS2005

    Note: Target Framework changes not supported!

    .Net Target Framework Modification Guide Page 5of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    6/25

    VS2008 - VB

    VS2008

    VB

    1. For VB 2008, Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Propertiesmenu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> WindowsApplication1 Properties

    menu-item (See below Image Left).

    .Net Target Framework Modification Guide Page 6of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    7/25

    VS2008 - VB

    2. In the WindowsApplication1 tab, make sure the Compile tab is selected on the left side. At

    the bottom, click the Advanced Compile Options button (See below Image).

    .Net Target Framework Modification Guide Page 7of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    8/25

    VS2008 - VB

    3. In the Advanced Compiler Settings dialog, change the Target framework (all

    configurations): to the version your application requires (See below Image).

    .Net Target Framework Modification Guide Page 8of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    9/25

    VS2008 - C++

    C++

    1. For C++ 2008, Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Properties

    menu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> Properties menu-item (See below

    Image - Left).

    .Net Target Framework Modification Guide Page 9of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    10/25

    VS2008 - C++

    2. In the WindowsApplication1 Property Pages dialog, click the Common Properties or

    Framework and References on the left side. You can now change the Targeted Framework:

    to the version your application requires (See below Image).

    .Net Target Framework Modification Guide Page 10of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    11/25

    VS2008 - C#

    C#

    1. For C# 2008, Windows Form Applications, there are two ways to change the Target

    Framework

    Option I. Right-click your project in the Solution Explorer and click the Properties

    menu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> WindowsFormApplication1

    Properties menu-item (See below Image - Left).

    .Net Target Framework Modification Guide Page 11of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    12/25

    VS2008 - C#

    2. In the WindowsFormsApplication1 dialog, make sure the Application tab on the left is

    selected. You can now change the Targeted Framework: to the version your application

    requires (See below Image).

    .Net Target Framework Modification Guide Page 12of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    13/25

    VS2010 - VB

    VS2010

    VB

    (1) For VB 2010, Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Propertiesmenu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> WindowsApplication1 Properties

    menu-item (See below Image - Left).

    .Net Target Framework Modification Guide Page 13of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    14/25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    15/25

    VS2010 - C++

    C++

    (1) For VS2010 C++ Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Unload

    Project menu-item (See below Image - Right).

    Option II. On the main-menu, click the Project > Unload Project menu-item (See below

    Image - Left).

    .Net Target Framework Modification Guide Page 15of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    16/25

    VS2010 - C++

    (2) Right-click your project in the Solution Explorer and select Edit

    WindowsApplication1.vcxproj (See below Image).

    .Net Target Framework Modification Guide Page 16of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    17/25

    VS2010 - C++

    (3) With your cursor in the WindowsApplication1.vxcproj tab, hold down both Ctrl +F keys

    to bring up the Find and Replace.In the Find what: parameter, type in

    v4.0 and click Find Next (See

    below Image).

    .Net Target Framework Modification Guide Page 17of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    18/25

    VS2010 - C++

    (4) Back in the WindowsApplication1.vxcproj tab, it will find a

    v4.0. You can now change the

    v4.0 to the version your application requires (See below Image). (Note: Iocomp assemblies

    require a full .Net framework, do not choose a Client-Profile framework because it is a subset of

    a full framework!)

    (5) E.g. Examples.

    .Net Target Framework Modification Guide Page 18of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    19/25

    VS2010 - C#

    C#

    (1) For C# VS2010 Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Properties

    menu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> WindowsApplication1 Properties

    menu-item (See below Image - Left).

    .Net Target Framework Modification Guide Page 19of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    20/25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    21/25

    VS2012 - VB

    VS2012

    VB

    1. For VB VS2012 Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Propertiesmenu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> WindowsApplication1 Properties

    menu-item (See below Image - Left).

    .Net Target Framework Modification Guide Page 21of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    22/25

    VS2012 - VB

    2. In the WindowsApplication1 tab, make sure the Application tab is selected on the left side.

    You can now change the Targeted Framework: to the version your application requires (See

    below Image). (Note: Iocomp assemblies require a full .Net framework, do not choose a Client-

    Profile framework because it is a subset of a full framework!)

    .Net Target Framework Modification Guide Page 22of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    23/25

    VS2012 - C++

    C++

    Note: C++ in VS2012 is not supported!

    .Net Target Framework Modification Guide Page 23of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    24/25

    VS2012 - C#

    C#

    1. For C# VS2012 Windows Form Applications, there are two ways to change the Target

    Framework.

    Option I. Right-click your project in the Solution Explorer and click the Properties

    menu-item (See below Image - Right).

    Option II. On the main-menu, click the Project> WindowsFormApplication1

    Properties menu-item (See below Image - Left).

    .Net Target Framework Modification Guide Page 24of 25

  • 7/25/2019 i o Comp Dot Net Framework Target Modification Guide

    25/25

    VS2012 - C#

    2. In the WindowsFormApplication1 tab, make sure the Application tab is selected on the left

    side. You can now change the Targeted Framework: to the version your application requires

    (See below Image). (Note: Iocomp assemblies require a full .Net framework, do not choose a

    Client-Profile framework because it is a subset of a full framework!)