0

I found this article on the msdn magazine and would like to use the code included in there in a commercial program. Is this allowed?

https://docs.microsoft.com/en-us/archive/msdn-magazine/2017/october/test-run-time-series-regression-using-a-csharp-neural-network

The code is not complete here, but is given complete in the following site

https://blog.dragansr.com/2017/10/ai-time-series-regression-using-c.html?m=1

  • @MadHatter No, I just read it, thank you –  Oct 07 '20 at 07:14
  • Does it answer your questions about code published without licence, or do you still have questions remaining? If the latter, it would be helpful if you would edit your original question so it reflects what you now want to know. Thanks! – MadHatter Oct 07 '20 at 07:18
  • @MadHatter I posed the question, because I originally read on another question here,that anything posted in the msdn is free for commercial use, but only if the application is on Windows. However this article was posted in the msdn magasine by a (former?) empoloyee of microsoft. Therefore I was not sure about what was correct –  Oct 07 '20 at 07:22
  • Could you link to the other question here that told you that MSDN-published content is covered by a blanket licence? – MadHatter Oct 07 '20 at 07:25
  • @MadHatter https://opensource.stackexchange.com/questions/2318/using-open-source-sample-code-provided-by-microsoft-for-commercial-software –  Oct 07 '20 at 07:28
  • Either the code isn't covered by the MS-LPL, in which case you have no rights as per the linked canonical question, or it is, in which case (as the linked MS-LPL question makes clear) it only applies to code running on Windows, which is non-free (see Freedom 0), and so off-topic here. The use you intend to make of the code is proprietary (ie, non-free). I'm sorry, but I can't see any way this question is on-topic for this site; can you? – MadHatter Oct 07 '20 at 07:42
  • @MadHatter I saw the other one and thought if that was not flagged, then both questions are ok –  Oct 07 '20 at 07:59
  • @MadHatter I found this code available here: http://www.quaetrix.com/Build2014.html saying that the code can be used however we want at our own risk –  Oct 07 '20 at 08:42

1 Answers1

0

I thought this question was a simple duplicate, but it's now ramified enough that I thought I'd write an answer.

You've found an old article in MSDN Magazine, with some code available either by cutting-and-pasteing from the main page, or via a separate link; we'll call this code A. You also found the same code discussed in another article, which offers a download link for the code; we'll call this code B. You've then found it in a third place; we'll call this code C. You want to know what rights, if any, you have to reuse the code.

Code A has no explicit licensing statement in it. You contend that code is available under the MS-LPL on the authority of this answer, but I cannot find a similar licensing statement anywhere on the current "magazine back issues" website. There is a pointer to MS's generic terms of use, but those don't give you anything useful ("The Software is made available for download solely for use by end users according to the License Agreement"). That puts us back to the usual default position for code-without-licence found on the internet, ie, you have no right to use it at all.

Code B is in fact a link directly back to the repository of code A, so there are no new rights there.

Code C contains an explicit licence statement at the top, which is more generous than the MS-LPL (the MS-LPL is non-free, because it has a platform restriction). Specifically, it says

// You can use this code however you wish subject to the usual disclaimers
// (use at your own risk, etc.)

The question becomes: can you rely on that declaration? My initial inclination was no, because it's so clearly the same body of code as A and B; it has all the look-and-feel of a grant bolted on after the event, without authority, as a fig-leaf. But it's also clear about the provenance of the code (2014 Microsoft Build Conference, April 2-4, 2014, San Francisco, CA). So my gut feeling - and it's only a feeling - is that the licence declaration can be relied on.

However, you intend to re-use this code as part of a commercial program, which raises the stakes. If I were you, I'd try to establish that such code was indeed given to attendees at that conference; if you can, then it's re-usable as you would wish. Otherwise, steer clear of it. And as ever, IANAL/IANYL.

MadHatter
  • 48,547
  • 4
  • 122
  • 166