Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

visual studio - Microsoft .NET compatibility

I used VS2010, and target for .Net 2.0 (VB.Net Windows Form application)

How to decide what is the .Net target I decided on 2.0 because I understood it will be OK if the users have higher version

I tested my app on XP with .Net 2.0, works fine.

I uninstalled .Net 2.0 [to see what error message users might get]

[a few files were still left in C:WindowsMicrosoft.NetFrameworkv2.0.50727 but not all files]

I installed .Net 4 [. . . also needed to install Windows Installer 3.1, and Windows Imaging Component, as pre-requirments . . .]

but now when I run my app I get the error - "unable to find a version of the runtime to run this application"

so what should I recomend my clients? to install 2.0?

Thanks,

Atara

Update: I am going to recommend my XP users to install .Net 3.5 SP1

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

A .NET 2.0 application needs .NET 2.0 to run. A .NET 3.0 or 3.5 application only needs .NET 2.0 plus whatever additional .NEt 3.0/3.5 assemblies it actually uses.

A .NET 4.0 application needs the .NET 4.0 CLR, so .NET 4.0 must be installed.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...