版权

通常,.NET 基金会中项目的版权声明如下: “Copyright (c) .NET Foundation and Contributors. All Rights Reserved”. 版权声明应放在项目的 LICENSE 文件中,因此 MIT 许可项目的 LICENSE 开头如下:

The MIT License (MIT)

Copyright (c) .NET Foundation and Contributors
All Rights Reserved

Permission is hereby granted... 

Apache 2.0 许可项目的 LICENSE 则以如下内容开头:

Copyright (c) .NET Foundation and Contributors
All Rights Reserved

Apache License, Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions... 

在项目中引入第三方开源代码时,任何第三方的版权声明都应随代码一起保留。一种很好的做法是,把项目中需要展示的第三方声明汇总到项目根目录下名为 NOTICE.md(或 ThirdPartyNotices.txt)的文件中。

文件头

以下文件头格式用于 .NET Foundation 项目。请在新文件中使用该格式,并酌情更新现有代码文件的文件头。注意,项目的一般版权声明在项目的 LICENSE 文件中给出,但任何第三方的版权声明都应保留。

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the <<LICENSE_TYPE>> license.
// See the LICENSE file in the project root for more information.

因此,MIT 许可项目的文件头如下:

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information. 

而 Apache 2.0 许可项目的文件头则为:

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information. 

添加其他项目中的现有文件是根据具体情况进行处理的。