Re: Force use of original .Net 4.0 when .Net 4.5 is installed

Oskar Berggren <[email protected]> Tue, 30 Oct 2012 09:34:19 +0100
Newsgroups gmane.comp.windows.dotnet.nant.devel
Message-ID <CAHOuc7PHqAD7DY5x4tcf-_r0C4+5ZcB5wzecN5_RksXjQt9beA@mail.gmail.com>
--===============6251852721611389160==
Content-Type: multipart/alternative; boundary=e89a8fb2058e2d348904cd42a87d

--e89a8fb2058e2d348904cd42a87d
Content-Type: text/plain; charset=ISO-8859-1

I've created it:
https://github.com/nant/nant/issues/78

I discovered this while working to bring NHibernate to .Net 4.

/Oskar


2012/10/30 Dominik Guder <[email protected]>

> Hi Oskar,
>
> do you have a github account? If so then it would be nice if you add
> your issue to nant
> I would prefer to discuss it there.
>
> If not, then I could create this issue also. Thanks so far.
>
> Dominik
>
>
> On 2012-10-29 08:06, Oskar Berggren wrote:
> > Thanks Dominik,
> >
> > Here's some more information I've discovered:
> >
> >
> http://blogs.msdn.com/b/msbuild/archive/2007/04/12/new-reference-assemblies-location.aspx
> > [8]
> >
> > I suspect a possible complication would be that the reference
> > assemblies seems to be installed by the SDK or visual studio, and
> > thus
> > not available if either of these are not installed.
> >
> > /Oskar
> >
> >  2012/10/28 Dominik Guder <[email protected] [9]>
> >
> >> Hi,
> >>
> >> the develelopers are taking a look. From my point of view I want to
> >> check the proper usage of "Referenced Assemblies" folder.
> >> Maybe someone can point me to some detail information in MSDN or
> >> some
> >> where else.
> >>
> >> So far Dominik
> >>
> >> Am 27.10.2012 19:57, schrieb Oskar Berggren:
> >>
> >>> Hi,
> >> >
> >> > .Net 4.5 is an inplace upgrade for .Net 4.0. If you want to
> >> ensure that
> >> > your software runs on a machine with only the original .Net 4.0
> >> > installed, you need to take care when building, so that you don't
> >> cause
> >> > dependencies on .Net 4.5 versions of the assemblies.
> >> >
> >> > This thread discuss the issue and there is a proposed solution
> >> that
> >> > involves editing nant.exe.config to avoid referencing updated
> >> assemblies
> >> > found under C:Windows...:
> >> >
> >>
> >
> >
> http://stackoverflow.com/questions/11991383/nant-build-using-net-4-5-beta-assembly-references-despite-specifying-net-4-0
> >> [1]
> >> >
> >> > What are the nant developers' take on this? Is the solution on
> >> stack
> >> > overflow the way to go? If so, should this be regarded as a bug
> >> in nant?
> >> > It doesn't seem "proper" to edit nant.exe.config in a runtime
> >> installation.
> >> >
> >> >
> >> > /Oskar
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
> ------------------------------------------------------------------------------
> >> > WINDOWS 8 is here.
> >> > Millions of people.  Your app in 30 days.
> >> > Visit The Windows 8 Center at Sourceforge for all your go to
> >> resources.
> >> > http://windows8center.sourceforge.net/ [2]
> >> > join-generation-app-and-make-money-coding-fast/
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > nant-developers mailing list
> >> > [email protected] [3]
> >> > https://lists.sourceforge.net/lists/listinfo/nant-developers [4]
> >> >
> >>
> >> --
> >> The answer to the great question of life,
> >> the universe and everything is 42 (Douglas Adams)
> >>
> >>
> >
> >
> ------------------------------------------------------------------------------
> >> WINDOWS 8 is here.
> >> Millions of people.  Your app in 30 days.
> >> Visit The Windows 8 Center at Sourceforge for all your go to
> >> resources.
> >> http://windows8center.sourceforge.net/ [5]
> >> join-generation-app-and-make-money-coding-fast/
> >> _______________________________________________
> >> nant-developers mailing list
> >> [email protected] [6]
> >> https://lists.sourceforge.net/lists/listinfo/nant-developers [7]
> >
> >
> >
> > Links:
> > ------
> > [1]
> >
> >
> http://stackoverflow.com/questions/11991383/nant-build-using-net-4-5-beta-assembly-references-despite-specifying-net-4-0
> > [2] http://windows8center.sourceforge.net/
> > [3] mailto:[email protected]
> > [4] https://lists.sourceforge.net/lists/listinfo/nant-developers
> > [5] http://windows8center.sourceforge.net/
> > [6] mailto:[email protected]
> > [7] https://lists.sourceforge.net/lists/listinfo/nant-developers
> > [8]
> >
> >
> http://blogs.msdn.com/b/msbuild/archive/2007/04/12/new-reference-assemblies-location.aspx
> > [9] mailto:[email protected]
>
> --
> The answer to the great question of life,
> the universe and everything is 42 (Douglas Adams)
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> nant-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>

--e89a8fb2058e2d348904cd42a87d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I&#39;ve created it:<br><a href=3D"https://github.com/nant/nant/issues/78">=
https://github.com/nant/nant/issues/78</a><br><br>I discovered this while w=
orking to bring NHibernate to .Net 4.<br><br>/Oskar<br><br><br><div class=
=3D"gmail_quote">

2012/10/30 Dominik Guder <span dir=3D"ltr">&lt;<a href=3D"mailto:osc@guder.=
org" target=3D"_blank">[email protected]</a>&gt;</span><br><blockquote class=3D=
"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding=
-left:1ex">

Hi Oskar,<br>
<br>
do you have a github account? If so then it would be nice if you add<br>
your issue to nant<br>
I would prefer to discuss it there.<br>
<br>
If not, then I could create this issue also. Thanks so far.<br>
<br>
Dominik<br>
<div class=3D"im"><br>
<br>
On 2012-10-29 08:06, Oskar Berggren wrote:<br>
&gt; Thanks Dominik,<br>
&gt;<br>
&gt; Here&#39;s some more information I&#39;ve discovered:<br>
&gt;<br>
&gt; <a href=3D"http://blogs.msdn.com/b/msbuild/archive/2007/04/12/new-refe=
rence-assemblies-location.aspx" target=3D"_blank">http://blogs.msdn.com/b/m=
sbuild/archive/2007/04/12/new-reference-assemblies-location.aspx</a><br>
</div>&gt; [8]<br>
<div class=3D"im">&gt;<br>
&gt; I suspect a possible complication would be that the reference<br>
&gt; assemblies seems to be installed by the SDK or visual studio, and<br>
&gt; thus<br>
&gt; not available if either of these are not installed.<br>
&gt;<br>
&gt; /Oskar<br>
&gt;<br>
</div>&gt; =A02012/10/28 Dominik Guder &lt;<a href=3D"mailto:[email protected]"=
>[email protected]</a> [9]&gt;<br>
<div class=3D"im">&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; the develelopers are taking a look. From my point of view I want t=
o<br>
&gt;&gt; check the proper usage of &quot;Referenced Assemblies&quot; folder=
.<br>
&gt;&gt; Maybe someone can point me to some detail information in MSDN or<b=
r>
&gt;&gt; some<br>
&gt;&gt; where else.<br>
&gt;&gt;<br>
&gt;&gt; So far Dominik<br>
&gt;&gt;<br>
&gt;&gt; Am 27.10.2012 19:57, schrieb Oskar Berggren:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; .Net 4.5 is an inplace upgrade for .Net 4.0. If you want to<b=
r>
&gt;&gt; ensure that<br>
&gt;&gt; &gt; your software runs on a machine with only the original .Net 4=
.0<br>
&gt;&gt; &gt; installed, you need to take care when building, so that you d=
on&#39;t<br>
&gt;&gt; cause<br>
&gt;&gt; &gt; dependencies on .Net 4.5 versions of the assemblies.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This thread discuss the issue and there is a proposed solutio=
n<br>
&gt;&gt; that<br>
&gt;&gt; &gt; involves editing nant.exe.config to avoid referencing updated=
<br>
&gt;&gt; assemblies<br>
</div>&gt;&gt; &gt; found under C:Windows...:<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; <a href=3D"http://stackoverflow.com/questions/11991383/nant-build-usin=
g-net-4-5-beta-assembly-references-despite-specifying-net-4-0" target=3D"_b=
lank">http://stackoverflow.com/questions/11991383/nant-build-using-net-4-5-=
beta-assembly-references-despite-specifying-net-4-0</a><br>


&gt;&gt; [1]<br>
<div class=3D"im">&gt;&gt; &gt;<br>
&gt;&gt; &gt; What are the nant developers&#39; take on this? Is the soluti=
on on<br>
&gt;&gt; stack<br>
&gt;&gt; &gt; overflow the way to go? If so, should this be regarded as a b=
ug<br>
&gt;&gt; in nant?<br>
&gt;&gt; &gt; It doesn&#39;t seem &quot;proper&quot; to edit nant.exe.confi=
g in a runtime<br>
&gt;&gt; installation.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; /Oskar<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------=
--------<br>
&gt;&gt; &gt; WINDOWS 8 is here.<br>
&gt;&gt; &gt; Millions of people. =A0Your app in 30 days.<br>
&gt;&gt; &gt; Visit The Windows 8 Center at Sourceforge for all your go to<=
br>
&gt;&gt; resources.<br>
</div>&gt;&gt; &gt; <a href=3D"http://windows8center.sourceforge.net/" targ=
et=3D"_blank">http://windows8center.sourceforge.net/</a> [2]<br>
<div class=3D"im">&gt;&gt; &gt; join-generation-app-and-make-money-coding-f=
ast/<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; nant-developers mailing list<br>
</div>&gt;&gt; &gt; <a href=3D"mailto:[email protected]=
">[email protected]</a> [3]<br>
&gt;&gt; &gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/nant-=
developers" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/=
nant-developers</a> [4]<br>
<div class=3D"im">&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; The answer to the great question of life,<br>
&gt;&gt; the universe and everything is 42 (Douglas Adams)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------=
--------<br>
&gt;&gt; WINDOWS 8 is here.<br>
&gt;&gt; Millions of people. =A0Your app in 30 days.<br>
&gt;&gt; Visit The Windows 8 Center at Sourceforge for all your go to<br>
&gt;&gt; resources.<br>
</div>&gt;&gt; <a href=3D"http://windows8center.sourceforge.net/" target=3D=
"_blank">http://windows8center.sourceforge.net/</a> [5]<br>
<div class=3D"im">&gt;&gt; join-generation-app-and-make-money-coding-fast/<=
br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; nant-developers mailing list<br>
</div>&gt;&gt; <a href=3D"mailto:[email protected]">nan=
[email protected]</a> [6]<br>
&gt;&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/nant-devel=
opers" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/nant-=
developers</a> [7]<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Links:<br>
&gt; ------<br>
&gt; [1]<br>
&gt;<br>
&gt; <a href=3D"http://stackoverflow.com/questions/11991383/nant-build-usin=
g-net-4-5-beta-assembly-references-despite-specifying-net-4-0" target=3D"_b=
lank">http://stackoverflow.com/questions/11991383/nant-build-using-net-4-5-=
beta-assembly-references-despite-specifying-net-4-0</a><br>


&gt; [2] <a href=3D"http://windows8center.sourceforge.net/" target=3D"_blan=
k">http://windows8center.sourceforge.net/</a><br>
&gt; [3] mailto:<a href=3D"mailto:[email protected]">na=
[email protected]</a><br>
&gt; [4] <a href=3D"https://lists.sourceforge.net/lists/listinfo/nant-devel=
opers" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/nant-=
developers</a><br>
&gt; [5] <a href=3D"http://windows8center.sourceforge.net/" target=3D"_blan=
k">http://windows8center.sourceforge.net/</a><br>
&gt; [6] mailto:<a href=3D"mailto:[email protected]">na=
[email protected]</a><br>
&gt; [7] <a href=3D"https://lists.sourceforge.net/lists/listinfo/nant-devel=
opers" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/nant-=
developers</a><br>
&gt; [8]<br>
&gt;<br>
&gt; <a href=3D"http://blogs.msdn.com/b/msbuild/archive/2007/04/12/new-refe=
rence-assemblies-location.aspx" target=3D"_blank">http://blogs.msdn.com/b/m=
sbuild/archive/2007/04/12/new-reference-assemblies-location.aspx</a><br>
&gt; [9] mailto:<a href=3D"mailto:[email protected]">[email protected]</a><br>
<div class=3D"im"><br>
--<br>
The answer to the great question of life,<br>
the universe and everything is 42 (Douglas Adams)<br>
<br>
---------------------------------------------------------------------------=
---<br>
</div>Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href=3D"http://p.sf.net/sfu/appdyn_sfd2d_oct" target=3D"_blank">http://p=
.sf.net/sfu/appdyn_sfd2d_oct</a><br>
<div class=3D"HOEnZb"><div class=3D"h5">___________________________________=
____________<br>
nant-developers mailing list<br>
<a href=3D"mailto:[email protected]">nant-developers@li=
sts.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/nant-developers" ta=
rget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/nant-developer=
s</a><br>
</div></div></blockquote></div><br>

--e89a8fb2058e2d348904cd42a87d--


--===============6251852721611389160==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
--===============6251852721611389160==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers

--===============6251852721611389160==--