targeting 2.0, 4.0 and Mono runtimes

View: New views
13 Messages — Rating Filter:   Alert me  

targeting 2.0, 4.0 and Mono runtimes

by Dotan N. :: Rate this Message:

| View Threaded | Show Only this Message

Hi All,
I'm wondering if anyone can point me to a resource regarding building a
project for .net 2.0 , 4.0 runtimes in a single build as well as for Mono.
I guess what i'm looking for is a structured way to create such a build
without me as the developer having any friction of the technicalities
(IFDEFs etc),
assuming that my code is basic and common to all runtimes.


Any suggestions from people who already done such a thing?

Thanks

Re: targeting 2.0, 4.0 and Mono runtimes

by Greg Young-2 :: Rate this Message:

| View Threaded | Show Only this Message

If your code already works with 2.0 and doesny use anything not available in
mono your dll should already work in all 3 no need to targey specifically

On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:

> Hi All,
> I'm wondering if anyone can point me to a resource regarding building a
> project for .net 2.0 , 4.0 runtimes in a single build as well as for Mono.
> I guess what i'm looking for is a structured way to create such a build
> without me as the developer having any friction of the technicalities
> (IFDEFs etc),
> assuming that my code is basic and common to all runtimes.
>
>
> Any suggestions from people who already done such a thing?
>
> Thanks

Re: targeting 2.0, 4.0 and Mono runtimes

by Dotan N. :: Rate this Message:

| View Threaded | Show Only this Message

Thanks Greg,
If I build my binaries to be on the .net 4.0 runtime someone with only a 2.0
runtime wouldn't be able to run it.
If I choose the lowest common denominator i would use strictly the 2.0
runtime but i'd like to fade that off gradually.
Thats the kind of dilemma i'm facing


On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...> wrote:

>
>
> If your code already works with 2.0 and doesny use anything not available
> in mono your dll should already work in all 3 no need to targey specifically
>
> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
> > Hi All,
> > I'm wondering if anyone can point me to a resource regarding building a
> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
> Mono.
> > I guess what i'm looking for is a structured way to create such a build
> > without me as the developer having any friction of the technicalities
> > (IFDEFs etc),
> > assuming that my code is basic and common to all runtimes.
> >
> >
> > Any suggestions from people who already done such a thing?
> >
> > Thanks
>
>  
>

RE: targeting 2.0, 4.0 and Mono runtimes

by SerialSeb :: Rate this Message:

| View Threaded | Show Only this Message

If you use openwrap, it's as simple as

build: msbuild; profile=net20;profile=net40



From: altdotnet@... [mailto:altdotnet@...] On Behalf Of Dotan N.
Sent: 01 May 2011 20:54
To: altdotnet@...
Subject: Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes




Thanks Greg,
If I build my binaries to be on the .net 4.0 runtime someone with only a 2.0 runtime wouldn't be able to run it.
If I choose the lowest common denominator i would use strictly the 2.0 runtime but i'd like to fade that off gradually.
Thats the kind of dilemma i'm facing


On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...<mailto:gregoryyoung1@...>> wrote:


If your code already works with 2.0 and doesny use anything not available in mono your dll should already work in all 3 no need to targey specifically

On 1 May 2011 14:32, "Dotan N." <dipidi@...<mailto:dipidi@...>> wrote:

> Hi All,
> I'm wondering if anyone can point me to a resource regarding building a
> project for .net 2.0 , 4.0 runtimes in a single build as well as for Mono.
> I guess what i'm looking for is a structured way to create such a build
> without me as the developer having any friction of the technicalities
> (IFDEFs etc),
> assuming that my code is basic and common to all runtimes.
>
>
> Any suggestions from people who already done such a thing?
>
> Thanks






Re: targeting 2.0, 4.0 and Mono runtimes

by Dotan N. :: Rate this Message:

| View Threaded | Show Only this Message

Thanks Seb, didn't know about that one.
is 'profile' an msbuild or openwrap concept?

On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...> wrote:

>
>
> If you use openwrap, it’s as simple as
>
>
>
> build: msbuild; profile=net20;profile=net40
>
>
>
>
>
>
>
> *From:* altdotnet@... [mailto:altdotnet@...] *On
> Behalf Of *Dotan N.
> *Sent:* 01 May 2011 20:54
> *To:* altdotnet@...
> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>
>
>
>
>
>
> Thanks Greg,
>
> If I build my binaries to be on the .net 4.0 runtime someone with only a
> 2.0 runtime wouldn't be able to run it.
>
> If I choose the lowest common denominator i would use strictly the 2.0
> runtime but i'd like to fade that off gradually.
> Thats the kind of dilemma i'm facing
>
>
>
>
>
> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
> wrote:
>
>
>
> If your code already works with 2.0 and doesny use anything not available
> in mono your dll should already work in all 3 no need to targey specifically
>
> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
> > Hi All,
> > I'm wondering if anyone can point me to a resource regarding building a
> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
> Mono.
> > I guess what i'm looking for is a structured way to create such a build
> > without me as the developer having any friction of the technicalities
> > (IFDEFs etc),
> > assuming that my code is basic and common to all runtimes.
> >
> >
> > Any suggestions from people who already done such a thing?
> >
> > Thanks
>
>
>
>
>
>
>  
>

RE: targeting 2.0, 4.0 and Mono runtimes

by SerialSeb :: Rate this Message:

| View Threaded | Show Only this Message

An openwrap one. We automate the calling of msbuild to enable retargeting dynamically your build so you can generate packages for multiple versions of .net in one go.

From: altdotnet@... [mailto:altdotnet@...] On Behalf Of Dotan N.
Sent: 01 May 2011 21:36
To: altdotnet@...
Subject: Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes




Thanks Seb, didn't know about that one.
is 'profile' an msbuild or openwrap concept?
On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...<mailto:seb@...>> wrote:

If you use openwrap, it's as simple as

build: msbuild; profile=net20;profile=net40



From: altdotnet@...<mailto:altdotnet@...> [mailto:altdotnet@...<mailto:altdotnet@...>] On Behalf Of Dotan N.
Sent: 01 May 2011 20:54
To: altdotnet@...<mailto:altdotnet@...>
Subject: Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes



Thanks Greg,
If I build my binaries to be on the .net 4.0 runtime someone with only a 2.0 runtime wouldn't be able to run it.
If I choose the lowest common denominator i would use strictly the 2.0 runtime but i'd like to fade that off gradually.
Thats the kind of dilemma i'm facing


On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...<mailto:gregoryyoung1@...>> wrote:


If your code already works with 2.0 and doesny use anything not available in mono your dll should already work in all 3 no need to targey specifically

On 1 May 2011 14:32, "Dotan N." <dipidi@...<mailto:dipidi@...>> wrote:

> Hi All,
> I'm wondering if anyone can point me to a resource regarding building a
> project for .net 2.0 , 4.0 runtimes in a single build as well as for Mono.
> I guess what i'm looking for is a structured way to create such a build
> without me as the developer having any friction of the technicalities
> (IFDEFs etc),
> assuming that my code is basic and common to all runtimes.
>
>
> Any suggestions from people who already done such a thing?
>
> Thanks









Re: targeting 2.0, 4.0 and Mono runtimes

by simone_b :: Rate this Message:

| View Threaded | Show Only this Message

I think you can more or less do the same with bare msbuild:
http://msdn.microsoft.com/en-us/library/bb397456.aspx

On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...> wrote:

>
>
> An openwrap one. We automate the calling of msbuild to enable retargeting
> dynamically your build so you can generate packages for multiple versions of
> .net in one go.
>
>
>
> *From:* altdotnet@... [mailto:altdotnet@...] *On
> Behalf Of *Dotan N.
> *Sent:* 01 May 2011 21:36
>
> *To:* altdotnet@...
> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>
>
>
>
>
>
> Thanks Seb, didn't know about that one.
>
> is 'profile' an msbuild or openwrap concept?
>
> On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...>
> wrote:
>
>
>
> If you use openwrap, it’s as simple as
>
>
>
> build: msbuild; profile=net20;profile=net40
>
>
>
>
>
>
>
> *From:* altdotnet@... [mailto:altdotnet@...] *On
> Behalf Of *Dotan N.
> *Sent:* 01 May 2011 20:54
> *To:* altdotnet@...
> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>
>
>
>
>
> Thanks Greg,
>
> If I build my binaries to be on the .net 4.0 runtime someone with only a
> 2.0 runtime wouldn't be able to run it.
>
> If I choose the lowest common denominator i would use strictly the 2.0
> runtime but i'd like to fade that off gradually.
> Thats the kind of dilemma i'm facing
>
>
>
>
>
> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
> wrote:
>
>
>
> If your code already works with 2.0 and doesny use anything not available
> in mono your dll should already work in all 3 no need to targey specifically
>
> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
> > Hi All,
> > I'm wondering if anyone can point me to a resource regarding building a
> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
> Mono.
> > I guess what i'm looking for is a structured way to create such a build
> > without me as the developer having any friction of the technicalities
> > (IFDEFs etc),
> > assuming that my code is basic and common to all runtimes.
> >
> >
> > Any suggestions from people who already done such a thing?
> >
> > Thanks
>
>
>
>
>
>
>
>
>
>
>  
>

RE: targeting 2.0, 4.0 and Mono runtimes

by SerialSeb :: Rate this Message:

| View Threaded | Show Only this Message

Be ready for very ugly scripts that you'll have to maintain manually *a lot*. This stuff gets nasty real quick.

From: altdotnet@... [mailto:altdotnet@...] On Behalf Of Simone Busoli
Sent: 01 May 2011 22:39
To: altdotnet@...
Subject: Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes



I think you can more or less do the same with bare msbuild: http://msdn.microsoft.com/en-us/library/bb397456.aspx
On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...<mailto:seb@...>> wrote:

An openwrap one. We automate the calling of msbuild to enable retargeting dynamically your build so you can generate packages for multiple versions of .net in one go.

From: altdotnet@...<mailto:altdotnet@...> [mailto:altdotnet@...<mailto:altdotnet@...>] On Behalf Of Dotan N.
Sent: 01 May 2011 21:36

To: altdotnet@...<mailto:altdotnet@...>
Subject: Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes



Thanks Seb, didn't know about that one.
is 'profile' an msbuild or openwrap concept?
On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...<mailto:seb@...>> wrote:

If you use openwrap, it's as simple as

build: msbuild; profile=net20;profile=net40



From: altdotnet@...<mailto:altdotnet@...> [mailto:altdotnet@...<mailto:altdotnet@...>] On Behalf Of Dotan N.
Sent: 01 May 2011 20:54
To: altdotnet@...<mailto:altdotnet@...>
Subject: Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes


Thanks Greg,
If I build my binaries to be on the .net 4.0 runtime someone with only a 2.0 runtime wouldn't be able to run it.
If I choose the lowest common denominator i would use strictly the 2.0 runtime but i'd like to fade that off gradually.
Thats the kind of dilemma i'm facing


On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...<mailto:gregoryyoung1@...>> wrote:


If your code already works with 2.0 and doesny use anything not available in mono your dll should already work in all 3 no need to targey specifically

On 1 May 2011 14:32, "Dotan N." <dipidi@...<mailto:dipidi@...>> wrote:

> Hi All,
> I'm wondering if anyone can point me to a resource regarding building a
> project for .net 2.0 , 4.0 runtimes in a single build as well as for Mono.
> I guess what i'm looking for is a structured way to create such a build
> without me as the developer having any friction of the technicalities
> (IFDEFs etc),
> assuming that my code is basic and common to all runtimes.
>
>
> Any suggestions from people who already done such a thing?
>
> Thanks











Re: targeting 2.0, 4.0 and Mono runtimes

by simone_b :: Rate this Message:

| View Threaded | Show Only this Message

Also, NUnit is building for .net 1, 2, 3.5 and mono 1 and 2 with NAnt. Maybe
not the most easily maintainable solution as you have to set up a parallel
build process to MSBuild but it's proven to work quite well.

On Sun, May 1, 2011 at 23:48, Sebastien Lambla <seb@...> wrote:

>
>
> Be ready for very ugly scripts that you’ll have to maintain manually **a
> lot**. This stuff gets nasty real quick.
>
>
>
> *From:* altdotnet@... [mailto:altdotnet@...] *On
> Behalf Of *Simone Busoli
> *Sent:* 01 May 2011 22:39
>
> *To:* altdotnet@...
> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>
>
>
>
>
> I think you can more or less do the same with bare msbuild:
> http://msdn.microsoft.com/en-us/library/bb397456.aspx
>
> On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...> wrote:
>
>
>
> An openwrap one. We automate the calling of msbuild to enable retargeting
> dynamically your build so you can generate packages for multiple versions of
> .net in one go.
>
>
>
> *From:* altdotnet@... [mailto:altdotnet@...] *On
> Behalf Of *Dotan N.
> *Sent:* 01 May 2011 21:36
>
>
> *To:* altdotnet@...
> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>
>
>
>
>
> Thanks Seb, didn't know about that one.
>
> is 'profile' an msbuild or openwrap concept?
>
> On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...>
> wrote:
>
>
>
> If you use openwrap, it’s as simple as
>
>
>
> build: msbuild; profile=net20;profile=net40
>
>
>
>
>
>
>
> *From:* altdotnet@... [mailto:altdotnet@...] *On
> Behalf Of *Dotan N.
> *Sent:* 01 May 2011 20:54
> *To:* altdotnet@...
> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>
>
>
>
>
> Thanks Greg,
>
> If I build my binaries to be on the .net 4.0 runtime someone with only a
> 2.0 runtime wouldn't be able to run it.
>
> If I choose the lowest common denominator i would use strictly the 2.0
> runtime but i'd like to fade that off gradually.
> Thats the kind of dilemma i'm facing
>
>
>
>
>
> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
> wrote:
>
>
>
> If your code already works with 2.0 and doesny use anything not available
> in mono your dll should already work in all 3 no need to targey specifically
>
> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
> > Hi All,
> > I'm wondering if anyone can point me to a resource regarding building a
> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
> Mono.
> > I guess what i'm looking for is a structured way to create such a build
> > without me as the developer having any friction of the technicalities
> > (IFDEFs etc),
> > assuming that my code is basic and common to all runtimes.
> >
> >
> > Any suggestions from people who already done such a thing?
> >
> > Thanks
>
>
>
>
>
>
>
>
>
>
>
>
>
>  
>

Re: targeting 2.0, 4.0 and Mono runtimes

by Dotan N. :: Rate this Message:

| View Threaded | Show Only this Message

NUnit build process came to mind when i was considering this.. I wonder what
are the maintainers' impression of this.
I guess the best way is to review it.


On Mon, May 2, 2011 at 9:57 PM, Simone Busoli <simone.busoli@...>wrote:

>
>
> Also, NUnit is building for .net 1, 2, 3.5 and mono 1 and 2 with NAnt.
> Maybe not the most easily maintainable solution as you have to set up a
> parallel build process to MSBuild but it's proven to work quite well.
>
> On Sun, May 1, 2011 at 23:48, Sebastien Lambla <seb@...> wrote:
>
>>
>>
>> Be ready for very ugly scripts that you’ll have to maintain manually **a
>> lot**. This stuff gets nasty real quick.
>>
>>
>>
>> *From:* altdotnet@... [mailto:altdotnet@...] *On
>> Behalf Of *Simone Busoli
>> *Sent:* 01 May 2011 22:39
>>
>> *To:* altdotnet@...
>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>>
>>
>>
>>
>>
>> I think you can more or less do the same with bare msbuild:
>> http://msdn.microsoft.com/en-us/library/bb397456.aspx
>>
>> On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...> wrote:
>>
>>
>>
>> An openwrap one. We automate the calling of msbuild to enable retargeting
>> dynamically your build so you can generate packages for multiple versions of
>> .net in one go.
>>
>>
>>
>> *From:* altdotnet@... [mailto:altdotnet@...] *On
>> Behalf Of *Dotan N.
>> *Sent:* 01 May 2011 21:36
>>
>>
>> *To:* altdotnet@...
>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>>
>>
>>
>>
>>
>> Thanks Seb, didn't know about that one.
>>
>> is 'profile' an msbuild or openwrap concept?
>>
>> On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...>
>> wrote:
>>
>>
>>
>> If you use openwrap, it’s as simple as
>>
>>
>>
>> build: msbuild; profile=net20;profile=net40
>>
>>
>>
>>
>>
>>
>>
>> *From:* altdotnet@... [mailto:altdotnet@...] *On
>> Behalf Of *Dotan N.
>> *Sent:* 01 May 2011 20:54
>> *To:* altdotnet@...
>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>>
>>
>>
>>
>>
>> Thanks Greg,
>>
>> If I build my binaries to be on the .net 4.0 runtime someone with only a
>> 2.0 runtime wouldn't be able to run it.
>>
>> If I choose the lowest common denominator i would use strictly the 2.0
>> runtime but i'd like to fade that off gradually.
>> Thats the kind of dilemma i'm facing
>>
>>
>>
>>
>>
>> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
>> wrote:
>>
>>
>>
>> If your code already works with 2.0 and doesny use anything not available
>> in mono your dll should already work in all 3 no need to targey specifically
>>
>> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
>> > Hi All,
>> > I'm wondering if anyone can point me to a resource regarding building a
>> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
>> Mono.
>> > I guess what i'm looking for is a structured way to create such a build
>> > without me as the developer having any friction of the technicalities
>> > (IFDEFs etc),
>> > assuming that my code is basic and common to all runtimes.
>> >
>> >
>> > Any suggestions from people who already done such a thing?
>> >
>> > Thanks
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>  
>

Re: targeting 2.0, 4.0 and Mono runtimes

by Greg Young-2 :: Rate this Message:

| View Threaded | Show Only this Message

Do you have ifdefs?

On 2 May 2011 20:02, "Dotan N." <dipidi@...> wrote:
> NUnit build process came to mind when i was considering this.. I wonder
what

> are the maintainers' impression of this.
> I guess the best way is to review it.
>
>
> On Mon, May 2, 2011 at 9:57 PM, Simone Busoli <simone.busoli@...
>wrote:
>
>>
>>
>> Also, NUnit is building for .net 1, 2, 3.5 and mono 1 and 2 with NAnt.
>> Maybe not the most easily maintainable solution as you have to set up a
>> parallel build process to MSBuild but it's proven to work quite well.
>>
>> On Sun, May 1, 2011 at 23:48, Sebastien Lambla <seb@...> wrote:
>>
>>>
>>>
>>> Be ready for very ugly scripts that you’ll have to maintain manually **a
>>> lot**. This stuff gets nasty real quick.
>>>
>>>
>>>
>>> *From:* altdotnet@... [mailto:altdotnet@...] *On
>>> Behalf Of *Simone Busoli
>>> *Sent:* 01 May 2011 22:39
>>>
>>> *To:* altdotnet@...
>>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>>>
>>>
>>>
>>>
>>>
>>> I think you can more or less do the same with bare msbuild:
>>> http://msdn.microsoft.com/en-us/library/bb397456.aspx
>>>
>>> On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...>
wrote:
>>>
>>>
>>>
>>> An openwrap one. We automate the calling of msbuild to enable
retargeting
>>> dynamically your build so you can generate packages for multiple
versions of

>>> .net in one go.
>>>
>>>
>>>
>>> *From:* altdotnet@... [mailto:altdotnet@...] *On
>>> Behalf Of *Dotan N.
>>> *Sent:* 01 May 2011 21:36
>>>
>>>
>>> *To:* altdotnet@...
>>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>>>
>>>
>>>
>>>
>>>
>>> Thanks Seb, didn't know about that one.
>>>
>>> is 'profile' an msbuild or openwrap concept?
>>>
>>> On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...>
>>> wrote:
>>>
>>>
>>>
>>> If you use openwrap, it’s as simple as
>>>
>>>
>>>
>>> build: msbuild; profile=net20;profile=net40
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *From:* altdotnet@... [mailto:altdotnet@...] *On
>>> Behalf Of *Dotan N.
>>> *Sent:* 01 May 2011 20:54
>>> *To:* altdotnet@...
>>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>>>
>>>
>>>
>>>
>>>
>>> Thanks Greg,
>>>
>>> If I build my binaries to be on the .net 4.0 runtime someone with only a
>>> 2.0 runtime wouldn't be able to run it.
>>>
>>> If I choose the lowest common denominator i would use strictly the 2.0
>>> runtime but i'd like to fade that off gradually.
>>> Thats the kind of dilemma i'm facing
>>>
>>>
>>>
>>>
>>>
>>> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
>>> wrote:
>>>
>>>
>>>
>>> If your code already works with 2.0 and doesny use anything not
available
>>> in mono your dll should already work in all 3 no need to targey
specifically
>>>
>>> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
>>> > Hi All,
>>> > I'm wondering if anyone can point me to a resource regarding building
a
>>> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
>>> Mono.
>>> > I guess what i'm looking for is a structured way to create such a
build

>>> > without me as the developer having any friction of the technicalities
>>> > (IFDEFs etc),
>>> > assuming that my code is basic and common to all runtimes.
>>> >
>>> >
>>> > Any suggestions from people who already done such a thing?
>>> >
>>> > Thanks
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>

Re: targeting 2.0, 4.0 and Mono runtimes

by simone_b :: Rate this Message:

| View Threaded | Show Only this Message

I cannot speak for others, in my opinion NAnt is quite good especially if
you need to target multiple platforms (ie .NET and mono), but comes with its
set of issues, the first one being that it's a parallel build system
compared to what you necessarily have - MSBuild within Visual Studio, and
thus you have to maintain both.
NUnit has #ifs but just (afaik) because it exposes different APIs to allow
newer framework versions to leverage more features.

On Mon, May 2, 2011 at 21:03, Greg Young <gregoryyoung1@...> wrote:

>
>
> Do you have ifdefs?
>
> On 2 May 2011 20:02, "Dotan N." <dipidi@...> wrote:
> > NUnit build process came to mind when i was considering this.. I wonder
> what
> > are the maintainers' impression of this.
> > I guess the best way is to review it.
> >
> >
> > On Mon, May 2, 2011 at 9:57 PM, Simone Busoli <simone.busoli@...
> >wrote:
> >
> >>
> >>
> >> Also, NUnit is building for .net 1, 2, 3.5 and mono 1 and 2 with NAnt.
> >> Maybe not the most easily maintainable solution as you have to set up a
> >> parallel build process to MSBuild but it's proven to work quite well.
> >>
> >> On Sun, May 1, 2011 at 23:48, Sebastien Lambla <seb@...>
> wrote:
> >>
> >>>
> >>>
> >>> Be ready for very ugly scripts that you’ll have to maintain manually
> **a
> >>> lot**. This stuff gets nasty real quick.
> >>>
> >>>
> >>>
> >>> *From:* altdotnet@... [mailto:altdotnet@...]
> *On
> >>> Behalf Of *Simone Busoli
> >>> *Sent:* 01 May 2011 22:39
> >>>
> >>> *To:* altdotnet@...
> >>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> I think you can more or less do the same with bare msbuild:
> >>> http://msdn.microsoft.com/en-us/library/bb397456.aspx
> >>>
> >>> On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...>
> wrote:
> >>>
> >>>
> >>>
> >>> An openwrap one. We automate the calling of msbuild to enable
> retargeting
> >>> dynamically your build so you can generate packages for multiple
> versions of
> >>> .net in one go.
> >>>
> >>>
> >>>
> >>> *From:* altdotnet@... [mailto:altdotnet@...]
> *On
> >>> Behalf Of *Dotan N.
> >>> *Sent:* 01 May 2011 21:36
> >>>
> >>>
> >>> *To:* altdotnet@...
> >>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Thanks Seb, didn't know about that one.
> >>>
> >>> is 'profile' an msbuild or openwrap concept?
> >>>
> >>> On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...>
> >>> wrote:
> >>>
> >>>
> >>>
> >>> If you use openwrap, it’s as simple as
> >>>
> >>>
> >>>
> >>> build: msbuild; profile=net20;profile=net40
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> *From:* altdotnet@... [mailto:altdotnet@...]
> *On
> >>> Behalf Of *Dotan N.
> >>> *Sent:* 01 May 2011 20:54
> >>> *To:* altdotnet@...
> >>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> Thanks Greg,
> >>>
> >>> If I build my binaries to be on the .net 4.0 runtime someone with only
> a
> >>> 2.0 runtime wouldn't be able to run it.
> >>>
> >>> If I choose the lowest common denominator i would use strictly the 2.0
> >>> runtime but i'd like to fade that off gradually.
> >>> Thats the kind of dilemma i'm facing
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
> >>> wrote:
> >>>
> >>>
> >>>
> >>> If your code already works with 2.0 and doesny use anything not
> available
> >>> in mono your dll should already work in all 3 no need to targey
> specifically
> >>>
> >>> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
> >>> > Hi All,
> >>> > I'm wondering if anyone can point me to a resource regarding building
> a
> >>> > project for .net 2.0 , 4.0 runtimes in a single build as well as for
> >>> Mono.
> >>> > I guess what i'm looking for is a structured way to create such a
> build
> >>> > without me as the developer having any friction of the technicalities
> >>> > (IFDEFs etc),
> >>> > assuming that my code is basic and common to all runtimes.
> >>> >
> >>> >
> >>> > Any suggestions from people who already done such a thing?
> >>> >
> >>> > Thanks
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
>
>  
>

Re: targeting 2.0, 4.0 and Mono runtimes

by Greg Young-2 :: Rate this Message:

| View Threaded | Show Only this Message

Yes it does. If however you have no ifdefs a 2.0 build works in all those
places which is why i asked :)

On 2 May 2011 20:10, "Simone Busoli" <simone.busoli@...> wrote:
> I cannot speak for others, in my opinion NAnt is quite good especially if
> you need to target multiple platforms (ie .NET and mono), but comes with
its

> set of issues, the first one being that it's a parallel build system
> compared to what you necessarily have - MSBuild within Visual Studio, and
> thus you have to maintain both.
> NUnit has #ifs but just (afaik) because it exposes different APIs to allow
> newer framework versions to leverage more features.
>
> On Mon, May 2, 2011 at 21:03, Greg Young <gregoryyoung1@...> wrote:
>
>>
>>
>> Do you have ifdefs?
>>
>> On 2 May 2011 20:02, "Dotan N." <dipidi@...> wrote:
>> > NUnit build process came to mind when i was considering this.. I wonder
>> what
>> > are the maintainers' impression of this.
>> > I guess the best way is to review it.
>> >
>> >
>> > On Mon, May 2, 2011 at 9:57 PM, Simone Busoli <simone.busoli@...
>> >wrote:
>> >
>> >>
>> >>
>> >> Also, NUnit is building for .net 1, 2, 3.5 and mono 1 and 2 with NAnt.
>> >> Maybe not the most easily maintainable solution as you have to set up
a

>> >> parallel build process to MSBuild but it's proven to work quite well.
>> >>
>> >> On Sun, May 1, 2011 at 23:48, Sebastien Lambla <seb@...>
>> wrote:
>> >>
>> >>>
>> >>>
>> >>> Be ready for very ugly scripts that you’ll have to maintain manually
>> **a
>> >>> lot**. This stuff gets nasty real quick.
>> >>>
>> >>>
>> >>>
>> >>> *From:* altdotnet@... [mailto:altdotnet@...]
>> *On
>> >>> Behalf Of *Simone Busoli
>> >>> *Sent:* 01 May 2011 22:39
>> >>>
>> >>> *To:* altdotnet@...
>> >>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> I think you can more or less do the same with bare msbuild:
>> >>> http://msdn.microsoft.com/en-us/library/bb397456.aspx
>> >>>
>> >>> On Sun, May 1, 2011 at 23:21, Sebastien Lambla <seb@...>
>> wrote:
>> >>>
>> >>>
>> >>>
>> >>> An openwrap one. We automate the calling of msbuild to enable
>> retargeting
>> >>> dynamically your build so you can generate packages for multiple
>> versions of
>> >>> .net in one go.
>> >>>
>> >>>
>> >>>
>> >>> *From:* altdotnet@... [mailto:altdotnet@...]
>> *On
>> >>> Behalf Of *Dotan N.
>> >>> *Sent:* 01 May 2011 21:36
>> >>>
>> >>>
>> >>> *To:* altdotnet@...
>> >>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Thanks Seb, didn't know about that one.
>> >>>
>> >>> is 'profile' an msbuild or openwrap concept?
>> >>>
>> >>> On Sun, May 1, 2011 at 11:20 PM, Sebastien Lambla <seb@...>
>> >>> wrote:
>> >>>
>> >>>
>> >>>
>> >>> If you use openwrap, it’s as simple as
>> >>>
>> >>>
>> >>>
>> >>> build: msbuild; profile=net20;profile=net40
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> *From:* altdotnet@... [mailto:altdotnet@...]
>> *On
>> >>> Behalf Of *Dotan N.
>> >>> *Sent:* 01 May 2011 20:54
>> >>> *To:* altdotnet@...
>> >>> *Subject:* Re: [altdotnet] targeting 2.0, 4.0 and Mono runtimes
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> Thanks Greg,
>> >>>
>> >>> If I build my binaries to be on the .net 4.0 runtime someone with
only
>> a
>> >>> 2.0 runtime wouldn't be able to run it.
>> >>>
>> >>> If I choose the lowest common denominator i would use strictly the
2.0

>> >>> runtime but i'd like to fade that off gradually.
>> >>> Thats the kind of dilemma i'm facing
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> On Sun, May 1, 2011 at 5:11 PM, Greg Young <gregoryyoung1@...>
>> >>> wrote:
>> >>>
>> >>>
>> >>>
>> >>> If your code already works with 2.0 and doesny use anything not
>> available
>> >>> in mono your dll should already work in all 3 no need to targey
>> specifically
>> >>>
>> >>> On 1 May 2011 14:32, "Dotan N." <dipidi@...> wrote:
>> >>> > Hi All,
>> >>> > I'm wondering if anyone can point me to a resource regarding
building
>> a
>> >>> > project for .net 2.0 , 4.0 runtimes in a single build as well as
for
>> >>> Mono.
>> >>> > I guess what i'm looking for is a structured way to create such a
>> build
>> >>> > without me as the developer having any friction of the
technicalities

>> >>> > (IFDEFs etc),
>> >>> > assuming that my code is basic and common to all runtimes.
>> >>> >
>> >>> >
>> >>> > Any suggestions from people who already done such a thing?
>> >>> >
>> >>> > Thanks
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>>
>>
>>