From 68b1b91a208b5c649002deb84542bbf7b970277c Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Wed, 6 Mar 2024 09:43:54 -0800 Subject: [PATCH] [build] Include MIT license in most NuGet packages (#8787) Fixes: https://github.com/xamarin/xamarin-android/issues/8779 Updates all NuGet packages other than Microsoft.Android.Sdk to include the MIT license at the root of the repo. The license file name and contents have also been updated to improve consistency with other dotnet repos. --- LICENSE => LICENSE.TXT | 5 +---- build-tools/create-packs/Directory.Build.targets | 3 +-- build-tools/create-packs/License.targets | 6 +++--- 3 files changed, 5 insertions(+), 9 deletions(-) rename LICENSE => LICENSE.TXT (94%) diff --git a/LICENSE b/LICENSE.TXT similarity index 94% rename from LICENSE rename to LICENSE.TXT index a9eb82df55a..984713a4962 100644 --- a/LICENSE +++ b/LICENSE.TXT @@ -1,8 +1,6 @@ -Xamarin.Android SDK - The MIT License (MIT) -Copyright (c) .NET Foundation Contributors +Copyright (c) .NET Foundation and Contributors All rights reserved. @@ -23,4 +21,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/build-tools/create-packs/Directory.Build.targets b/build-tools/create-packs/Directory.Build.targets index ff6d4f99933..5bfd934d2f1 100644 --- a/build-tools/create-packs/Directory.Build.targets +++ b/build-tools/create-packs/Directory.Build.targets @@ -47,7 +47,6 @@ <_GlobalProperties Include="-p:Configuration=$(Configuration)" /> - <_GlobalProperties Include="-p:NuGetLicense=$(NuGetLicense)" /> <_GlobalProperties Include="-p:IncludeSymbols=False" /> @@ -103,7 +102,7 @@ /> - <_WLExtractedFiles Include="$(_SdkManifestsFolder)temp\LICENSE" /> + <_WLExtractedFiles Include="$(_SdkManifestsFolder)temp\LICENSE.TXT" /> <_WLExtractedFiles Include="$(_SdkManifestsFolder)temp\data\*" /> diff --git a/build-tools/create-packs/License.targets b/build-tools/create-packs/License.targets index 603b5ed5520..2a80dbae5bf 100644 --- a/build-tools/create-packs/License.targets +++ b/build-tools/create-packs/License.targets @@ -1,12 +1,12 @@ - + Microsoft © Microsoft Corporation. All rights reserved. https://github.com/xamarin/xamarin-android $(XamarinAndroidSourcePath)external\monodroid\tools\scripts\License.txt - $(XamarinAndroidSourcePath)LICENSE - LICENSE + $(XamarinAndroidSourcePath)LICENSE.TXT + LICENSE.TXT _GetLicense;$(BeforePack)