net target framework modification guide - iocomp.com · the standard in industrial automation and...

25
The Standard in Industrial Automation and Scientific Components for Real-Time Applications .Net Target Framework Modification Guide .Net Target Framework Modification Guide Page 1 of 25

Upload: hoangthuy

Post on 13-Jul-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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

.Net Target Framework Modification Guide

.Net Target Framework Modification Guide Page 1 of 25

Page 2: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 2 of 25

Page 3: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 3 of 25

Page 4: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

VS2003 -

VS2003

Note: Target Framework changes not supported!

.Net Target Framework Modification Guide Page 4 of 25

Page 5: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

VS2005 -

VS2005

Note: Target Framework changes not supported!

.Net Target Framework Modification Guide Page 5 of 25

Page 6: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 “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 6 of 25

Page 7: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 7 of 25

Page 8: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 8 of 25

Page 9: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 9 of 25

Page 10: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 10 of 25

Page 11: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 11 of 25

Page 12: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 12 of 25

Page 13: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 “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 13 of 25

Page 14: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

VS2010 - VB

(2) In the “WindowsApplication1” tab, make sure the “Compile” tab on the left is selected and click the “Advanced Compile Options…” (See below Image).

(3) In the “Advanced Compiler Settings” dialog, 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 14 of 25

Page 15: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 15 of 25

Page 16: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 16 of 25

Page 17: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>” and click “Find Next” (See below Image).

.Net Target Framework Modification Guide Page 17 of 25

Page 18: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

VS2010 - C++

(4) Back in the “WindowsApplication1.vxcproj” tab, it will find a “<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>”. 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 18 of 25

Page 19: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 19 of 25

Page 20: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

VS2010 - 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!)

.Net Target Framework Modification Guide Page 20 of 25

Page 21: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 “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 21 of 25

Page 22: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 22 of 25

Page 23: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

VS2012 - C++

C++

Note: C++ in VS2012 is not supported!

.Net Target Framework Modification Guide Page 23 of 25

Page 24: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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 24 of 25

Page 25: Net Target Framework Modification Guide - iocomp.com · The Standard in Industrial Automation and Scientific Components for Real-Time Applications.Net Target Framework Modification

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!)

.Net Target Framework Modification Guide Page 25 of 25