Csharp/C#教程:将GNU GPL许可证添加到C#App分享


将GNU GPL许可证添加到C#App

我知道怎么做但我不知道StyleCop方法是真的/工作的。 通常在StyleCop规则中,您必须将此示例添加到标题(需要编辑):

//----------------------------------------------------------------------- //  // Copyright (c) Sprocket Enterprises. All rights reserved. //  //----------------------------------------------------------------------- 

使用StyleCop for ReSharper:

 // -------------------------------------------------------------------------------------------------------------------- //  // //  //  // Defines the Form1 type. //  // -------------------------------------------------------------------------------------------------------------------- 

我的最后标题是:

 // -------------------------------------------------------------------------------------------------------------------- //  // // 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 https://www.gnu.org/licenses/. //  //  // {one line to give the program's name and a brief idea of what it does.} // // Email: {Email} // XFire and Steam: {Username} //  // -------------------------------------------------------------------------------------------------------------------- 

如果我将此标题添加到我的所有来源并分享,我的应用程序是否会获得GPL许可? 如果没有,问题出在哪里? 我希望StyleCop方法能够运行。 也许我应该移动“{一行给出程序的名称并简要了解它的作用。}”高于版权标记。 谢谢。

在我看来很好。 您是否阅读了GPL常见问题解答,有关于为您的程序使用GNU许可证的整个部分。 也许你可以仔细检查那里。

有一个如何将许可证应用于源代码。

这将是一个利用代码区域的好机会:

 #region Copyright // your copyright goes here #endregion 

这样开发人员可以解决所有的问题:-)

此外,创建一个代码段,以便您不必记住。

上述就是C#学习教程:将GNU GPL许可证添加到C#App分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/cdevelopment/1030594.html

(0)
上一篇 2022年1月13日
下一篇 2022年1月13日

精彩推荐