我知道怎么做,但我不知道StyleCop方法是否正确/有效。通常,在StyleCop规则中,您必须将类似于此示例的内容添加到头部(需要编辑):
//-----------------------------------------------------------------------
// <copyright file="Widget.cs" company="Sprocket Enterprises">
// Copyright (c) Sprocket Enterprises. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
再加上Stylecop for Resharper:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Form1.cs" company="">
//
// </copyright>
// <summary>
// Defines the Form1 type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
我最后的标题是:
// --------------------------------------------------------------------------------------------------------------------
// <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>
// --------------------------------------------------------------------------------------------------------------------
如果我将此标题添加到所有源和共享中,我的应用程序将获得GPL许可吗?如果没有,问题在哪里?我希望StyleCop方法可以工作。也许我应该移动“一行来给出程序的名称和它做什么的简要概念。”到比版权标签更高的位置。
谢谢。