L'aggiunta di GNU GPL License to C # App [chiusa]
Domanda
Io so come fare questo, ma non so è il metodo StyleCop vero / lavoro. Normalmente in StyleCop regole è necessario aggiungere questa cosa come in questo esempio di intestazione (necessità di modificare):
//-----------------------------------------------------------------------
// <copyright file="Widget.cs" company="Sprocket Enterprises">
// Copyright (c) Sprocket Enterprises. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
E con StyleCop per ReSharper:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Form1.cs" company="">
//
// </copyright>
// <summary>
// Defines the Form1 type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
Il mio colpo di testa finale è:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Form1.cs" company="{Company}">
//
// Copyright (C) 2009 {Company}
//
// This program is free software: you can redistribute it and/or modify
// it under the +terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
// </copyright>
// <summary>
// {one line to give the program's name and a brief idea of what it does.}
//
// Email: {Email}
// XFire and Steam: {Username}
// </summary>
// --------------------------------------------------------------------------------------------------------------------
Se posso aggiungere questa intestazione a tutti i miei fonti e condivisione, sarà la mia domanda sia con licenza GPL? Se no, dove è il problema? Mi auguro che il metodo StyleCop funzionerà. Forse dovrei andare "{una riga per dire il nome del programma e una breve idea di ciò che fa.}" Per superiore di tag Copyright. Grazie.
Soluzione
Sembra buono con me. Hai letto il GPL FAQ, v'è una sezione intera su Uso di licenze GNU per i vostri programmi . Forse si potrebbe controllare due volte lì.
Altri suggerimenti
C'è un how-to applicare la licenza al codice sorgente.
Questa sarebbe una buona occasione per fare uso di aree di codice:
#region Copyright
// your copyright goes here
#endregion
che gli sviluppatori vie possono crollare tutto il fluff: -)
Inoltre, creare un frammento in modo che non c'è bisogno di ricordare.