Answered by:
About .NET Framework

Question
-
Hello All, I am just new in Visual Basic, I am using Visual Studio Ultimate 2010 and was focused to using Visual Basic on it... I want to ask about .NET Framework...
Can I Disable .NET Framework in a project? and how to know .NET Framework version needed by application?
Sorry if its stupid question...
And sorry if my english so bad, thanks!
Friday, October 21, 2011 4:54 PM
Answers
-
There is no way to do without the Framework. Even the data type Byte is contained there.
You can switch to (unmanaged) C++ for example if you want an application that is not .Net Framework based.
The required Framework version can be set in the project's properties (Tab "compile" -> advanced compile options -> target framework). Which versions are available depends on the version of VB. VB 2010 can use the latest FW 4.0.
Armin- Edited by Armin Zingler Friday, October 21, 2011 5:01 PM
- Proposed as answer by John Anthony Oliver Friday, October 21, 2011 7:53 PM
- Marked as answer by ChronoCross Saturday, October 22, 2011 12:40 AM
Friday, October 21, 2011 4:59 PM
All replies
-
There is no way to do without the Framework. Even the data type Byte is contained there.
You can switch to (unmanaged) C++ for example if you want an application that is not .Net Framework based.
The required Framework version can be set in the project's properties (Tab "compile" -> advanced compile options -> target framework). Which versions are available depends on the version of VB. VB 2010 can use the latest FW 4.0.
Armin- Edited by Armin Zingler Friday, October 21, 2011 5:01 PM
- Proposed as answer by John Anthony Oliver Friday, October 21, 2011 7:53 PM
- Marked as answer by ChronoCross Saturday, October 22, 2011 12:40 AM
Friday, October 21, 2011 4:59 PM -
Hi ChronoCross,
No you can't disable it it's necessary to run any managed .NET application, but you can change the target version of the framework. For example if you know your users of your application will only have .NET 3.5 you can specify that you application work under 3.5. And with the .NET Framework there are is a sub-framework that is targeted by default (the client .NET 4.0 framework).
To change the target framework you can right click on your project and select to see the Properties and there is a drop down list of the different framework versions your application will use to run.
So to answer you question, you don't hae to determine which version your application needs. You set that yourself in anticipation of what your client system resources will have. Note that going to a lower version will mean certain functionality may not be available unless you target a newer framework version.
Tom Overton- Edited by Tom_Overton Friday, October 21, 2011 5:02 PM
- Proposed as answer by Armin Zingler Saturday, October 22, 2011 12:13 PM
Friday, October 21, 2011 5:01 PM -
Visual Studio has "Framework Targeting" which will allow you to you write your application for older frameworks/other OS's. It also CPU targeting as well.
Additionally, most current Microsoft OS's require some version of .net framework to run.
Adam
Already reported as abusiveFriday, October 21, 2011 5:15 PM -
Thanks everyone for your reply!Saturday, October 22, 2011 12:42 AM
-
VS or a managed program will always need a framework to run because that is what managed code is.
A framework has the run-time system in it. It will aways be there and will always be needed.
Renee
"MODERN PROGRAMMING is deficient in elementary ways BECAUSE of problems INTRODUCED by MODERN PROGRAMMING." Me- Edited by Renee Culver Saturday, October 22, 2011 3:27 AM
Saturday, October 22, 2011 3:19 AM -
Visual Studio has "Framework Targeting" which will allow you to you write your application for older frameworks/other OS's. It also CPU targeting as well.
Additionally, most current Microsoft OS's require some version of .net framework to run.
Adam
Already reported as abusiveThanks for your reply!
How to order my program that can be run on other OS?
Sorry if my english so bad..Saturday, October 22, 2011 4:09 AM -
Which other OS? Some operating systems enable you to create a Windows-compatible environment within which you can run Windows applications.
Another option is to develop your software using the tools provided by that other OS. The amount of work involved can vary from a little to a lot.
There's an example here:
http://en.wikipedia.org/wiki/Mono_(software)
http://www.mono-project.com/Main_PageSaturday, October 22, 2011 4:58 AM -
thanks for your reply!Saturday, October 22, 2011 6:49 AM