添加GNU GPL许可证到C#应用程序 [英] Adding GNU GPL Licence to C# App

查看:166
本文介绍了添加GNU GPL许可证到C#应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何做到这一点,但我不知道是方法StyleCop的真/工作。通常,在规则的StyleCop的,你必须添加这个东西像这样的例子头(需要编辑):

I know how to do this but I don't know is the StyleCop method true/working. Normally in StyleCop rules you must add this thing like this example to header (need to edit):

//-----------------------------------------------------------------------
// <copyright file="Widget.cs" company="Sprocket Enterprises">
//     Copyright (c) Sprocket Enterprises. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

和使用了StyleCop ReSharper的:

And with 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方法会奏效。也许我应该搬到{一行给程序的名称和它用来做什么的简单说明。}除著作权标签上。
感谢。

If I add this header to all my sources and share, will my application be GPL licenced? If not, where's the problem? I hope the StyleCop method will work. Maybe I should move "{one line to give the program's name and a brief idea of what it does.}" to upper than Copyright tag. Thanks.

推荐答案

我看不错。你看了GPL FAQ,对使用GNU许可证的程序一整节。也许你可以仔细检查那里。

Looks good to me. Have you read the GPL FAQ, there is a whole section on Using GNU licenses for your programs. Maybe you could double check there.

  • GNU General Public License
  • GPL FAQ

这篇关于添加GNU GPL许可证到C#应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆