Home All Groups Group Topic Archive Search About

Distributing VB 2005 projects

Author
27 Feb 2006 4:12 PM
Sean Campbell
Hello everyone!

I just finished writing a small app in VB 2005. I paid very close attention
to using only Framework 1.1 commands since my client has not yet installed
the Framework 2.0 across their enterprise.

When I tested my app on another system, my app tells me that I must install
the 2.0 Framework for it to work even though 1.1 is installed. I thought .NET
projects were backward compatible as long as the functions are compatible.

What should I do to distribute my app? Any help would be gretaly appreciated.

Sean

Author
27 Feb 2006 4:15 PM
Ken Halter
"Sean Campbell" <SeanCampb***@discussions.microsoft.com> wrote in message
news:04F9017B-0DAF-4482-AAD5-03CA099E3D81@microsoft.com...
> Hello everyone!
>
> I just finished writing a small app in VB 2005. I paid very close
> attention
> to using only Framework 1.1 commands since my client has not yet installed
> the Framework 2.0 across their enterprise.

afaik, Framework 2.0 is required for any VS2005 project, regardless.


--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
27 Feb 2006 4:22 PM
Herfried K. Wagner [MVP]
"Sean Campbell" <SeanCampb***@discussions.microsoft.com> schrieb:
> I just finished writing a small app in VB 2005. I paid very close
> attention
> to using only Framework 1.1 commands since my client has not yet installed
> the Framework 2.0 across their enterprise.
>
> When I tested my app on another system, my app tells me that I must
> install
> the 2.0 Framework for it to work even though 1.1 is installed. I thought
> .NET
> projects were backward compatible as long as the functions are compatible.

I strongly recommend to install .NET Framework 2.0.  Almost any VB project
adds .NET 2.0-dependent stuff behind the scenes.  If you want to target .NET
1.1, use VS.NET 2003 for development.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Feb 2006 4:28 PM
Cor Ligthert [MVP]
Sean,

>
> When I tested my app on another system, my app tells me that I must
> install
> the 2.0 Framework for it to work even though 1.1 is installed. I thought
> .NET
> projects were backward compatible as long as the functions are compatible.
>
No forwards compatible. (should be because it is at the moment not true with
1.x to 2.0, I hope the new SP will fix that).

A program language can be backwards compatible.

Cor
Author
28 Feb 2006 12:27 AM
Dennis
Cor, I'm a little confused by your answer.  Suppose I have a machine that
only has .Net 2.0 installed.  I have another machine that I developed my
application using VB.Net 2003 and .Net 1.1 installed.  Can I take my
application I developed with VB.Net 2003 and .Net 1.1 and run it on the
machine that only has .Net 2.o installed?
--
Dennis in Houston


Show quoteHide quote
"Cor Ligthert [MVP]" wrote:

> Sean,
>
> >
> > When I tested my app on another system, my app tells me that I must
> > install
> > the 2.0 Framework for it to work even though 1.1 is installed. I thought
> > .NET
> > projects were backward compatible as long as the functions are compatible.
> >
> No forwards compatible. (should be because it is at the moment not true with
> 1.x to 2.0, I hope the new SP will fix that).
>
> A program language can be backwards compatible.
>
> Cor
>
>
>
Author
28 Feb 2006 1:57 AM
james
It is possible to run an app developed with framework 1.1 on a machine that
only has 2.0 on it. BUT, there are no guarantees that everything will work
correctly. That is why it is recommended that you install the framework that
the app was developed on , on the target machine. That way, there is less
likely to be problems. And all of the frameworks ( 1.0,1.1, & 2.0) are
supposed to be able to con-exist without any interference or problems
between them. Before, a major hard drive failure, I had all three
development enviroments and frameworks installled, along with Visual Studio
6.0 , and never had any problems.
( YMMV)
james

Show quoteHide quote
"Dennis" <Den***@discussions.microsoft.com> wrote in message
news:8E971478-284D-4548-A799-A9C8B6E56B0B@microsoft.com...
> Cor, I'm a little confused by your answer.  Suppose I have a machine that
> only has .Net 2.0 installed.  I have another machine that I developed my
> application using VB.Net 2003 and .Net 1.1 installed.  Can I take my
> application I developed with VB.Net 2003 and .Net 1.1 and run it on the
> machine that only has .Net 2.o installed?
> --
> Dennis in Houston
>
>
> "Cor Ligthert [MVP]" wrote:
>
>> Sean,
>>
>> >
>> > When I tested my app on another system, my app tells me that I must
>> > install
>> > the 2.0 Framework for it to work even though 1.1 is installed. I
>> > thought
>> > .NET
>> > projects were backward compatible as long as the functions are
>> > compatible.
>> >
>> No forwards compatible. (should be because it is at the moment not true
>> with
>> 1.x to 2.0, I hope the new SP will fix that).
>>
>> A program language can be backwards compatible.
>>
>> Cor
>>
>>
>>
Author
28 Feb 2006 7:18 AM
Cor Ligthert [MVP]
Dennis,

This is as it AFAIK should have been, however in version Net 2.0 are some
classes working as they probably should (only fair to read in the
documentation) have been. By instance the dataview is now on more places in
2.0 really dynamic.

I don't know how Microsoft will solve this.

I can not imaging a future with on one computer needed

Net 1.0 (SP1, SP2), Net 1.x (SP1), Net 2.0 (Sp1, SP2, SP3, SP4), Net 2.1,
Net 3,0

That is worse than the Dll hell.

Cor
Author
28 Feb 2006 11:58 PM
Dennis
Thanks for your insight...agree dll hell maybe wasn't so bad after all.  I
wonder if Vista will come with all the frameworks.  Anyway, best answer is
just to try the application under framework 2.0 and see if it works.

I did notice that Microsoft has kept quiet about this topic.
--
Dennis in Houston


Show quoteHide quote
"Cor Ligthert [MVP]" wrote:

> Dennis,
>
> This is as it AFAIK should have been, however in version Net 2.0 are some
> classes working as they probably should (only fair to read in the
> documentation) have been. By instance the dataview is now on more places in
> 2.0 really dynamic.
>
> I don't know how Microsoft will solve this.
>
> I can not imaging a future with on one computer needed
>
> Net 1.0 (SP1, SP2), Net 1.x (SP1), Net 2.0 (Sp1, SP2, SP3, SP4), Net 2.1,
> Net 3,0
>
> That is worse than the Dll hell.
>
> Cor
>
>
>
Author
27 Feb 2006 5:14 PM
Paul Clement
On Mon, 27 Feb 2006 08:12:47 -0800, "Sean Campbell" <SeanCampb***@discussions.microsoft.com> wrote:

¤ Hello everyone!
¤
¤ I just finished writing a small app in VB 2005. I paid very close attention
¤ to using only Framework 1.1 commands since my client has not yet installed
¤ the Framework 2.0 across their enterprise.
¤
¤ When I tested my app on another system, my app tells me that I must install
¤ the 2.0 Framework for it to work even though 1.1 is installed. I thought .NET
¤ projects were backward compatible as long as the functions are compatible.
¤
¤ What should I do to distribute my app? Any help would be gretaly appreciated.

If you compile your application in 2005 the minimum supported version of the Framework is 2.0.


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
27 Feb 2006 6:19 PM
Sean Campbell
Show quote Hide quote
"Paul Clement" wrote:

> On Mon, 27 Feb 2006 08:12:47 -0800, "Sean Campbell" <SeanCampb***@discussions.microsoft.com> wrote:
>
> ¤ Hello everyone!
> ¤
> ¤ I just finished writing a small app in VB 2005. I paid very close attention
> ¤ to using only Framework 1.1 commands since my client has not yet installed
> ¤ the Framework 2.0 across their enterprise.
> ¤
> ¤ When I tested my app on another system, my app tells me that I must install
> ¤ the 2.0 Framework for it to work even though 1.1 is installed. I thought .NET
> ¤ projects were backward compatible as long as the functions are compatible.
> ¤
> ¤ What should I do to distribute my app? Any help would be gretaly appreciated.
>
> If you compile your application in 2005 the minimum supported version of the Framework is 2.0.
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)
>

My thanks to all who answered. I will have to copy/paste my 2005 code into a
2003 project. It does suck to have to do this but waddya gonna do? This would
be a great enhancement to all Visual languages (VB, C# and C++) to have an
option to be backward compatible at compile time. IMHO.

Sean
Author
27 Feb 2006 6:23 PM
Herfried K. Wagner [MVP]
"Sean Campbell" <SeanCampb***@discussions.microsoft.com> schrieb:
> I will have to copy/paste my 2005 code into a
> 2003 project. It does suck to have to do this but waddya gonna do? This
> would
> be a great enhancement to all Visual languages (VB, C# and C++) to have an
> option to be backward compatible at compile time. IMHO.

I agree with you that it would be great if new versions of VS could still be
compile for older versions of the .NET Framework.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
28 Feb 2006 2:54 PM
Paul Clement
On Mon, 27 Feb 2006 10:19:27 -0800, "Sean Campbell" <SeanCampb***@discussions.microsoft.com> wrote:

¤
¤
¤ "Paul Clement" wrote:
¤
¤ > On Mon, 27 Feb 2006 08:12:47 -0800, "Sean Campbell" <SeanCampb***@discussions.microsoft.com> wrote:
¤ >
¤ > ¤ Hello everyone!
¤ > ¤
¤ > ¤ I just finished writing a small app in VB 2005. I paid very close attention
¤ > ¤ to using only Framework 1.1 commands since my client has not yet installed
¤ > ¤ the Framework 2.0 across their enterprise.
¤ > ¤
¤ > ¤ When I tested my app on another system, my app tells me that I must install
¤ > ¤ the 2.0 Framework for it to work even though 1.1 is installed. I thought .NET
¤ > ¤ projects were backward compatible as long as the functions are compatible.
¤ > ¤
¤ > ¤ What should I do to distribute my app? Any help would be gretaly appreciated.
¤ >
¤ > If you compile your application in 2005 the minimum supported version of the Framework is 2.0.
¤ >
¤ >
¤ > Paul
¤ > ~~~~
¤ > Microsoft MVP (Visual Basic)
¤ >
¤
¤ My thanks to all who answered. I will have to copy/paste my 2005 code into a
¤ 2003 project. It does suck to have to do this but waddya gonna do? This would
¤ be a great enhancement to all Visual languages (VB, C# and C++) to have an
¤ option to be backward compatible at compile time. IMHO.

That's fine as long as you aren't using any of the newer features that are not supported in the
prior version.


Paul
~~~~
Microsoft MVP (Visual Basic)