[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

A framework confusion

....DotNet4Ever....

7/24/2008 12:56:00 PM

I got a problem in one of my solutions and ran into something that I suppose
is what I think but I find the versioning a bit confusing.

I was trying the Add Reference in Visual Studio and noticed that it lists
both "Version" and "Runtime". Apparently the .NET Framework version is in
the "Version" but all of them (v2.0, v3.0 & v3.5) have the same runtime
"v2.0.50727" which maps to the
c:\windows\Microsoft.NET\Framework\v2.0.50727
So, System.NET shows as follows:
System.Net 3.5.0.0 v2.0.50727 c:\Program Files\Reference
Assemblies\.....
System.Messaging 2.0.0.0 v2.0.50727 c:\Windows\Microsoft.NET\Fra....

why does the v3.5 framework DLL shows the same runtime as the v2.0 and v3.0
frameworks? and why is it in a different directory root (C:\Program
Files\Reference Assemblies\*) instead of the standard
C:\Windows\Microsoft.NET\Framework\v3.5\... ?

Shouldn't Visual Studio 2.5 not restrict itself to showing only Framework
2.0 assemblies?

Emilio

10 Answers

Rory Becker

7/24/2008 1:11:00 PM

0

Hello ....DotNet4Ever....,

> So, System.NET shows as follows:
> System.Net 3.5.0.0 v2.0.50727 c:\Program Files\Reference Assemblies\.....
> System.Messaging 2.0.0.0 v2.0.50727 c:\Windows\Microsoft.NET\Fra....


> Why does the v3.5 framework DLL shows the same runtime as the v2.0 and
> v3.0 frameworks?

Becuase there is no 3.0 or 3.5 runtime. There are only 1.0, 1.1 and 2.0
runtimes.

> and why is it in a different directory root
> (C:\Program Files\Reference Assemblies\*) instead of the standard
> C:\Windows\Microsoft.NET\Framework\v3.5\... ?

No Idea. Presumably for organisational purposes.

> Shouldn't Visual Studio 2.5 not restrict itself to showing only
> Framework 2.0 assemblies?

Since VS2005 (I assume thats what you meant) uses assemblies that run on
the 2.0 runtime or below, all current assemblies are fair game.

--
Rory


Cowboy

7/24/2008 1:52:00 PM

0

3.0 and 3.5 sit on top of 2.0, so there is no big deal here. All you will
find in the 3.x directories is extra stuff. Check it out yourself.

Not sure why one is referenced in one spot and not in the main spot. Most
likely someone was working with it from there and did not reset the link. As
long as it works, it is not a big deal.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces...list...

or just read it:
http://gregorybeamer.spaces...

********************************************
| Think outside the box! |
********************************************
"....DotNet4Ever...." <hate.spam@nowhere.com> wrote in message
news:uOvvpyY7IHA.3480@TK2MSFTNGP03.phx.gbl...
>I got a problem in one of my solutions and ran into something that I
>suppose is what I think but I find the versioning a bit confusing.
>
> I was trying the Add Reference in Visual Studio and noticed that it lists
> both "Version" and "Runtime". Apparently the .NET Framework version is in
> the "Version" but all of them (v2.0, v3.0 & v3.5) have the same runtime
> "v2.0.50727" which maps to the
> c:\windows\Microsoft.NET\Framework\v2.0.50727>
> So, System.NET shows as follows:
> System.Net 3.5.0.0 v2.0.50727 c:\Program Files\Reference
> Assemblies\.....
> System.Messaging 2.0.0.0 v2.0.50727 c:\Windows\Microsoft.NET\Fra....
>
> why does the v3.5 framework DLL shows the same runtime as the v2.0 and
> v3.0 frameworks? and why is it in a different directory root (C:\Program
> Files\Reference Assemblies\*) instead of the standard
> C:\Windows\Microsoft.NET\Framework\v3.5\... ?
>
> Shouldn't Visual Studio 2.5 not restrict itself to showing only Framework
> 2.0 assemblies?
>
> Emilio

....DotNet4Ever....

7/24/2008 3:24:00 PM

0

So if I understand correctly it should be no problem if I reference the v3.5
System.Net assembly (apparently not available in previous frameworks) from a
v2.0 solution?

Emilio
http://www.PanamaS...
http://www.Virtual-Avia...


"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> wrote in
message news:O6pXjRZ7IHA.4108@TK2MSFTNGP04.phx.gbl...
> 3.0 and 3.5 sit on top of 2.0, so there is no big deal here. All you will
> find in the 3.x directories is extra stuff. Check it out yourself.
>
> Not sure why one is referenced in one spot and not in the main spot. Most
> likely someone was working with it from there and did not reset the link.
> As long as it works, it is not a big deal.
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> Subscribe to my blog
> http://gregorybeamer.spaces...list...
>
> or just read it:
> http://gregorybeamer.spaces...
>
> ********************************************
> | Think outside the box! |
> ********************************************
> "....DotNet4Ever...." <hate.spam@nowhere.com> wrote in message
> news:uOvvpyY7IHA.3480@TK2MSFTNGP03.phx.gbl...
>>I got a problem in one of my solutions and ran into something that I
>>suppose is what I think but I find the versioning a bit confusing.
>>
>> I was trying the Add Reference in Visual Studio and noticed that it lists
>> both "Version" and "Runtime". Apparently the .NET Framework version is in
>> the "Version" but all of them (v2.0, v3.0 & v3.5) have the same runtime
>> "v2.0.50727" which maps to the
>> c:\windows\Microsoft.NET\Framework\v2.0.50727>>
>> So, System.NET shows as follows:
>> System.Net 3.5.0.0 v2.0.50727 c:\Program Files\Reference
>> Assemblies\.....
>> System.Messaging 2.0.0.0 v2.0.50727 c:\Windows\Microsoft.NET\Fra....
>>
>> why does the v3.5 framework DLL shows the same runtime as the v2.0 and
>> v3.0 frameworks? and why is it in a different directory root (C:\Program
>> Files\Reference Assemblies\*) instead of the standard
>> C:\Windows\Microsoft.NET\Framework\v3.5\... ?
>>
>> Shouldn't Visual Studio 2.5 not restrict itself to showing only Framework
>> 2.0 assemblies?
>>
>> Emilio
>

Cowboy

7/24/2008 3:38:00 PM

0

Okay, I may have misread.

As long as you are referencing a 2.0 assembly, you should be fine. These can
be found in a variety of locations, but you cannot mix 2.0 and 3.5 without
some form of service boundary. If you need 3.5 funcationality in an app that
cannot be upgraded, you will have to wrap it with a service and call it.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces...list...

or just read it:
http://gregorybeamer.spaces...

********************************************
| Think outside the box! |
********************************************
"....DotNet4Ever...." <hate.spam@nowhere.com> wrote in message
news:uJdOdFa7IHA.1952@TK2MSFTNGP02.phx.gbl...
> So if I understand correctly it should be no problem if I reference the
> v3.5 System.Net assembly (apparently not available in previous frameworks)
> from a v2.0 solution?
>
> Emilio
> http://www.PanamaS...
> http://www.Virtual-Avia...
>
>
> "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> wrote in
> message news:O6pXjRZ7IHA.4108@TK2MSFTNGP04.phx.gbl...
>> 3.0 and 3.5 sit on top of 2.0, so there is no big deal here. All you will
>> find in the 3.x directories is extra stuff. Check it out yourself.
>>
>> Not sure why one is referenced in one spot and not in the main spot. Most
>> likely someone was working with it from there and did not reset the link.
>> As long as it works, it is not a big deal.
>>
>> --
>> Gregory A. Beamer
>> MVP, MCP: +I, SE, SD, DBA
>>
>> Subscribe to my blog
>> http://gregorybeamer.spaces...list...
>>
>> or just read it:
>> http://gregorybeamer.spaces...
>>
>> ********************************************
>> | Think outside the box! |
>> ********************************************
>> "....DotNet4Ever...." <hate.spam@nowhere.com> wrote in message
>> news:uOvvpyY7IHA.3480@TK2MSFTNGP03.phx.gbl...
>>>I got a problem in one of my solutions and ran into something that I
>>>suppose is what I think but I find the versioning a bit confusing.
>>>
>>> I was trying the Add Reference in Visual Studio and noticed that it
>>> lists both "Version" and "Runtime". Apparently the .NET Framework
>>> version is in the "Version" but all of them (v2.0, v3.0 & v3.5) have the
>>> same runtime "v2.0.50727" which maps to the
>>> c:\windows\Microsoft.NET\Framework\v2.0.50727>>>
>>> So, System.NET shows as follows:
>>> System.Net 3.5.0.0 v2.0.50727 c:\Program Files\Reference
>>> Assemblies\.....
>>> System.Messaging 2.0.0.0 v2.0.50727 c:\Windows\Microsoft.NET\Fra....
>>>
>>> why does the v3.5 framework DLL shows the same runtime as the v2.0 and
>>> v3.0 frameworks? and why is it in a different directory root (C:\Program
>>> Files\Reference Assemblies\*) instead of the standard
>>> C:\Windows\Microsoft.NET\Framework\v3.5\... ?
>>>
>>> Shouldn't Visual Studio 2.5 not restrict itself to showing only
>>> Framework 2.0 assemblies?
>>>
>>> Emilio
>>
>

Rory Becker

7/24/2008 3:43:00 PM

0

Hello ....DotNet4Ever....,

> So if I understand correctly it should be no problem if I reference
> the v3.5 System.Net assembly (apparently not available in previous
> frameworks) from a v2.0 solution?

Indeed it is technically possible and should work, but you are not allowed
to distribute the additional dll by itself (which would not work anyway)

Your solution would now require the .Net 3.5 framework and your distribution
method should take account of this.

--
Rory


Rory Becker

7/24/2008 4:03:00 PM

0

Hello Cowboy (Gregory A. Beamer),

> Okay, I may have misread.
>
> As long as you are referencing a 2.0 assembly, you should be fine.
> These can be found in a variety of locations, but you cannot mix 2.0
> and 3.5 without some form of service boundary. If you need 3.5
> funcationality in an app that cannot be upgraded, you will have to
> wrap it with a service and call it.


I'm not sure why this is an issue....Doesn't it just mean that after the
reference is made, he is developing a 3.5 application under VS2005

They are all runnable under the 2.0 CLR... right? but to distribute he would
need the 3.5 framework in place



--
Rory


Cowboy

7/25/2008 1:28:00 PM

0

The 2.0 framework will work fine with anything that is in the 2.0.x
folder(s), as they are considered 2.0, even if 3.5 has updated them. None of
the interfaces have changed. I know of nothing that breaks this rule.

If one references something out of the 3.0- directory or the 3.5 directory,
you will have to retarget for 3.5, as it will not compile. You can get
around the compilation "problem" by using reflection (late binding), but it
will fail at runtime, which is probably worse.

This is why I state you can use 3.5 in 2.0 if you wrap it with a service
boundary. This can be a web service or a WCF service (as long as it is
exposed like a web service - WCF allows you to expose in ways only WCF
understands). But you cannot directly access a 3.5 assembly that is marked
3.5, unless you move up to 3.5 as your target framework.

There may be some exceptions to this rule, but I don't know of any.

Am I making this clearer or am I just digging a deeper hole? :-)

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces...list...

or just read it:
http://gregorybeamer.spaces...

********************************************
| Think outside the box! |
********************************************
"Rory Becker" <rorybecker@newsgroup.nospam> wrote in message
news:3af103471a71d8cabbc6344fbbbe@news.microsoft.com...
> Hello Cowboy (Gregory A. Beamer),
>
>> Okay, I may have misread.
>>
>> As long as you are referencing a 2.0 assembly, you should be fine.
>> These can be found in a variety of locations, but you cannot mix 2.0
>> and 3.5 without some form of service boundary. If you need 3.5
>> funcationality in an app that cannot be upgraded, you will have to
>> wrap it with a service and call it.
>
>
> I'm not sure why this is an issue....Doesn't it just mean that after the
> reference is made, he is developing a 3.5 application under VS2005
>
> They are all runnable under the 2.0 CLR... right? but to distribute he
> would need the 3.5 framework in place
>
>
> --
> Rory
>
>

Family Tree Mike

7/25/2008 9:39:00 PM

0

A co-worker sent an executable (3.5) developed which used an openfiledialog.
For no apparent reason, the SafeFileName property was used in the code.
This is only available in 2.0 SP 1, and therefore was failing on the 2.0
only machine. In this case, the user friendly message was that the property
does not exist.

It was an easy fix though and none of us really know why the new property is
there, but that is another discussion...

"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> wrote in
message news:ufaeFpl7IHA.5164@TK2MSFTNGP02.phx.gbl...
> The 2.0 framework will work fine with anything that is in the 2.0.x
> folder(s), as they are considered 2.0, even if 3.5 has updated them. None
> of the interfaces have changed. I know of nothing that breaks this rule.
>
> If one references something out of the 3.0- directory or the 3.5
> directory, you will have to retarget for 3.5, as it will not compile. You
> can get around the compilation "problem" by using reflection (late
> binding), but it will fail at runtime, which is probably worse.
>
> This is why I state you can use 3.5 in 2.0 if you wrap it with a service
> boundary. This can be a web service or a WCF service (as long as it is
> exposed like a web service - WCF allows you to expose in ways only WCF
> understands). But you cannot directly access a 3.5 assembly that is marked
> 3.5, unless you move up to 3.5 as your target framework.
>
> There may be some exceptions to this rule, but I don't know of any.
>
> Am I making this clearer or am I just digging a deeper hole? :-)
>
> --
> Gregory A. Beamer
> MVP, MCP: +I, SE, SD, DBA
>
> Subscribe to my blog
> http://gregorybeamer.spaces...list...
>
> or just read it:
> http://gregorybeamer.spaces...
>
> ********************************************
> | Think outside the box! |
> ********************************************
> "Rory Becker" <rorybecker@newsgroup.nospam> wrote in message
> news:3af103471a71d8cabbc6344fbbbe@news.microsoft.com...
>> Hello Cowboy (Gregory A. Beamer),
>>
>>> Okay, I may have misread.
>>>
>>> As long as you are referencing a 2.0 assembly, you should be fine.
>>> These can be found in a variety of locations, but you cannot mix 2.0
>>> and 3.5 without some form of service boundary. If you need 3.5
>>> funcationality in an app that cannot be upgraded, you will have to
>>> wrap it with a service and call it.
>>
>>
>> I'm not sure why this is an issue....Doesn't it just mean that after the
>> reference is made, he is developing a 3.5 application under VS2005
>>
>> They are all runnable under the 2.0 CLR... right? but to distribute he
>> would need the 3.5 framework in place
>>
>>
>> --
>> Rory
>>
>>
>

Ramon F Herrera

8/21/2012 4:57:00 PM

0

On Aug 21, 11:38 am, Hisler <His...@cocks.net> wrote:
> On 8/21/2012 10:11 AM, Ramon F. Herrera wrote:
>
>
>
>
>
>
>
>
>
> > On Aug 21, 11:07 am, Hisler <His...@cocks.net> wrote:
> >>http://www.newsday.com/news/nation/immigrants-protest-illeg......
>
> >>    A small group of immigrants (sic) gathered in Woodbury Monday to
> >> protest the use of the word "illegal" to describe those who have entered
> >> the United States without documentation.
>
> >> "By saying illegal, they're assuming that we broke a criminal law," said
> >> Jackeline Saavedra, 27, of Bay Shore, a Touro Law Center student who
> >> identified herself as undocumented. "Not everybody enters illegally."
>
> >> (Only illegals enter illegally.)
>
> >> Coordinators (sic) said they prefer the phrase "undocumented immigrant.."
>
> >> Osman Canales, 23, an immigrant rights advocate in Huntington who
> >> organized the protest, said using the word "illegal" criminalizes a
> >> whole community. "It's a racist word against our community, so we're
> >> just here to raise awareness," he said.
>
> >> (What race is an illegal?)
>
> >> The protest mirrored a larger effort nationwide to push media outlets
> >> and people in general to stop using the word "illegal" when referring to
> >> immigrants.
>
> >> (Immigrants aren't illegals. Illegals aren't immigrants.)
>
> >> The "Drop The I-Word" campaign was organized by The Applied Research
> >> Center, a New York City-based racial justice think tank. Its goal,
> >> according to its news website, Colorlines.com, is to "eradicate the slur
> >> 'illegals' from everyday use and public discourse."
>
> >> (That begs the question, how would this "racial justice think tank" ban
> >> a word that they can't use?)
>
> >> Campaign coordinator Monica Novoa said that in two years, 14,000 people
> >> have signed the group's pledge.
>
> >> "Using a phrase like 'illegal aliens' or 'illegals' . . . reinforces the
> >> notion that you could treat another individual as less than a human
> >> being," said Alina Das, assistant professor of clinical law at New York
> >> University. "One action -- whether it's a crime -- shouldn't be used to
> >> define a whole group of people or one individual."
>
> >> (This shows how illegals who flee their Hispanic failed countries are
> >> trying to corrupt the English language in order to prevent Americans
> >> from even having the words to describe illegals.)
>
> >> But Gallya Lahav, associate professor of political science at Stony
> >> Brook University, said the term "undocumented" has flaws.
>
> >> "It's a politically correct way of saying illegal," she said. "What
> >> you're also talking about in proper form are the real undocumented --
> >> asylum seekers -- people who are fleeing for threats of their life or
> >> freedom."
>
> >> Still, the word "illegal" makes Elias Llivicura, 18, who described
> >> himself as undocumented, feel "uncomfortable."
>
> >> (So the word "uncomfortable" also goes in quotes, just like the naughty
> >> word "illegal.")
>
> >> "We also have feelings too," said Llivicura, of Bellport, who came to
> >> Long Island from Ecuador at age 8. "It makes me feel like I'm different
> >> from everybody else," he said. "It makes me feel like really bad inside."
>
> > Mr. Histler:
>
> > You should not use parentheses when editing somebody else's writing.
> > Why? Because the original author uses them, and this leads to
> > confusion. If you had ever worked in media, or professional writing
> > you would know this.
>
> > The proper format is "square brackets". As follows: [sic]
>
> Thank you for the correction.
>
>
>
> > De nada,
>
> > -Ramon
>
> > ps: That is a clear symptom of the conservative's inability to place
> > themselves in other shoes, btw.
>

> There was an immigrant who felt badly about a conservative's
inability
> to place themselves (sic) in other shoes until he met an illegal
alien
> who had no feet.

But could outrun and outswim Olympic medalists....

http://tinyurl.c...

-Ramon

Lourdes Ivonne Diaz

8/21/2012 11:20:00 PM

0

Ramon is a foreign transplant originally from Venezuela, probably a
beaner terrorist, and definitely a Fraud. Ramon F Herrera also goes by
"Cambridge Ray," "Google Poster," "Lucius Sanctimonious," and
"Hadron." An ultra-left, open-borders pretend-American. He lives and
works in Houston, TX. Note that when you reply to a Proven Liar you
encourage them to continue lying.

Ramon F Herrera
13313 Cutten Rd, Apt 7102
Houston, TX 77069-2374

[][][][][][]
The DemocRAT Hall Of Shame http://www.democrathallof... asks
"Why do you always LIE?"

[Courtesy of Buster Norris]

On Tue, 8 May 2012 18:11:06 -0700 (PDT), "Ramon F. Herrera"
<ramon@conexus.net> wrote:
>Re: The conservative's worst nightmare is about to become true:
>the takeover of the GOP by the Mexican-Cuban-Mormon cartel
>Marco was a very enthusiastic Mormon, and huge fan of the Osmonds.

LIAR!!!!!!!!!!!!!!!!!!!!!

Sen. Marco Rubio was baptized as a Mormon at age 8, when his family
lived in Las Vegas. A few years later, he converted to Catholicism.

http://www.miamiherald.com/2012/02/23/2657517/sen-rubios-mormon-past-com...

Posted from:
The DemocRATs Hall of Shame!
http://www.democrathallof...