You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opt-in for ancient frameworks (I don't want them) #322
Realistically anything below .Net 3.5 (Windows Server 2008) should be opt-in. Especially since lower versions of their server OSes aren't supported and are likely to be attacked.
Frameworks I personally don't care about for new code:
Silverlight
.Net 1.0
.Net 1.1
.Net 2.0
.Net 3.5 (and SP2)
Portable subset / profiles (breaks more than if fixes)
Windows Phone
You probably need a switch between 4.0 and 4.5 since that's when it's not a framework anymore, but a runtime.
Here are some stats from the code I'm working on:
Left side: additions, right side: deletions.
Would it be feasible to specify a number of target frameworks in paket.dependencies and only have those targets generated in the files (and if it's just a single target, avoiding switches all-together)?
Shouldn't this go into the paket.references file instead of paket.dependencies?
This is about controlling references not dependencies, and this way it can also be varied per project.
I assume in the end we will see both. Global settings and project specific
settings
On Nov 2, 2014 12:55 PM, "Christoph Ruegg" [email protected] wrote:
Shouldn't this go into the paket.references file instead of
paket.dependencies?
—
Reply to this email directly or view it on GitHub #322 (comment).
.Net 4.5 is a runtime though, not a framework, so that's not correct either, no matter what the MSDN page says (this is from speaking with Microsoft employees and common sense, too).
You can't install 4.0 and 4.5 side-by-side, because 4.5 subsumes 4.0. For all intents and purposes there's really the CLR 2.0, 4.0 and 4.5 since 4.5 can't be run side-by-side with 4.0 and 4.5 added changes to how the clr works. 4.5 breaks 4.0 apps in general.
MonoAndroid is an API-shim mostly, from what I understand.
Given this, how about api 'net45 and api 'monoandroid'? Common ground?
.Net 4.5 is a runtime though, not a framework, so that's not correct
either, no matter what the MSDN page says (this is from speaking with
Microsoft employees and common sense, too).
You can't install 4.0 and 4.5 side-by-side, because 4.5 subsumes 4.0. For
all intents and purposes there's really the CLR 2.0, 4.0 and 4.5 since 4.5
can't be run side-by-side with 4.0 and 4.5 added changes to how the clr
works. 4.5 breaks 4.0 apps in general.
MonoAndroid is an API-shim mostly, from what I understand.
Given this, how about api 'net45 and api 'monoandroid'? Common ground?
—
Reply to this email directly or view it on GitHub #322 (comment).
@haf But is it about installed framework, isn't it about the target framework for compilation purposes?
Further I mean people are familiar with the term framework, why introduce a new term and need to explain it to Paket users.
It's about the APIs that you target; they change between different CLR versions and shims of the BCL. And afaik the mono-android targets mostly invoke the JVM behind the scenes?
You ask about 'installed' versus 'targeted': we had to set up a server with the single purpose of not having .Net Framework 4.0 clobbered by WinRT/4.5. It didn't mattered that we 'targeted' 4.0, the compilation unit was still broken out of the compiler and crashed with strange error messages.
That said, I could wager my pants that the Paket users understand the name 'api', too.
Given I write api "net45" in paket.dependencies - what would you expect to
happen on install?
On Nov 9, 2014 2:23 PM, "Henrik Feldt" [email protected] wrote:
It's about the APIs that you target; they change between different CLR
versions and shims of the BCL. And afaik the mono-android targets mostly
invoke the JVM behind the scenes?
You ask about 'installed' versus 'targeted': we had to set up a server
with the single purpose of not having .Net Framework 4.0 clobbered by
WinRT/4.5. It didn't mattered that we 'targeted' 4.0, the compilation unit
was still broken out of the compiler and crashed with strange error
messages.
That said, I could wager my pants that the Paket users understand the name
'api', too.
—
Reply to this email directly or view it on GitHub #322 (comment).
Activity
forki commentedon Nov 2, 2014
yes opting out might be a good idea.
can you come up with a syntax for the dependencies file?
haf commentedon Nov 2, 2014
clr 'net45'like bundler does withruby '1.9.3'? http://bundler.io/v1.3/gemfile.html (bottom of page)The keys could be the same as in the nugets packages.
For multiple targets:
forki commentedon Nov 2, 2014
@agross @ilkerde is this another case for "groups"?
agross commentedon Nov 2, 2014
@forki Rather not. Groups: production/dev dependencies.
ruby/clr: Minimum supported platform version.cdrnet commentedon Nov 2, 2014
Shouldn't this go into the
paket.referencesfile instead ofpaket.dependencies?This is about controlling references not dependencies, and this way it can also be varied per project.
forki commentedon Nov 2, 2014
I assume in the end we will see both. Global settings and project specific
settings
On Nov 2, 2014 12:55 PM, "Christoph Ruegg" [email protected] wrote:
forki commentedon Nov 7, 2014
three question before I start:
clr 'monoandroid'?clr 'net45'do we generate for monoandroid and portable?mexx commentedon Nov 9, 2014
Can we please name the option not
clr, it's not correct, what we really means is the framework.CLR version is not Framework version, look http://msdn.microsoft.com/en-us/library/bb822049(v=vs.110).aspx
A better name would be
fxorframework.forki commentedon Nov 9, 2014
I prefer
frameworkhaf commentedon Nov 9, 2014
.Net 4.5 is a runtime though, not a framework, so that's not correct either, no matter what the MSDN page says (this is from speaking with Microsoft employees and common sense, too).
You can't install 4.0 and 4.5 side-by-side, because 4.5 subsumes 4.0. For all intents and purposes there's really the CLR 2.0, 4.0 and 4.5 since 4.5 can't be run side-by-side with 4.0 and 4.5 added changes to how the clr works. 4.5 breaks 4.0 apps in general.
MonoAndroid is an API-shim mostly, from what I understand.
Given this, how about
api 'net45andapi 'monoandroid'? Common ground?forki commentedon Nov 9, 2014
api is quite nice - also shorter
2014-11-09 14:08 GMT+01:00 Henrik Feldt [email protected]:
mexx commentedon Nov 9, 2014
@haf But is it about installed framework, isn't it about the target framework for compilation purposes?
Further I mean people are familiar with the term
framework, why introduce a new term and need to explain it to Paket users.haf commentedon Nov 9, 2014
It's about the APIs that you target; they change between different CLR versions and shims of the BCL. And afaik the mono-android targets mostly invoke the JVM behind the scenes?
You ask about 'installed' versus 'targeted': we had to set up a server with the single purpose of not having .Net Framework 4.0 clobbered by WinRT/4.5. It didn't mattered that we 'targeted' 4.0, the compilation unit was still broken out of the compiler and crashed with strange error messages.
That said, I could wager my pants that the Paket users understand the name 'api', too.
forki commentedon Nov 9, 2014
Ok. Let's move discussion to the actual feature.
Given I write api "net45" in paket.dependencies - what would you expect to
happen on install?
On Nov 9, 2014 2:23 PM, "Henrik Feldt" [email protected] wrote:
haf commentedon Nov 9, 2014
I would probably think it meant I support net45 and upwards.
I would not think it meant I support the various shims.
I could imagine a number of flag for the API-shims:
How would you keep this list up-to-date? How do you declare that a shim subsumes another?
forki commentedon Dec 30, 2014
Since the impact is much smaller now I think we should close this one.
haf commentedon Dec 30, 2014
Alright :)