diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 2256616a..a7863408 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -35,6 +35,8 @@ jobs: with: dotnet-version: ${{ matrix.dotnetVersion }} + - uses: browser-actions/setup-chrome@latest + - name: restore run: dotnet restore -p:TargetFramework=${{ matrix.framework }} @@ -53,6 +55,8 @@ jobs: - uses: nuget/setup-nuget@v2 - run: nuget restore NuGetUtility.sln + - uses: browser-actions/setup-chrome@latest + - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9738b81c..86fb1e24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,8 @@ jobs: - name: build run: msbuild -t:rebuild -property:Configuration=Release + - uses: browser-actions/setup-chrome@latest + - name: test uses: microsoft/vstest-action@v1.0.0 with: @@ -81,4 +83,6 @@ jobs: - name: publish nuget package to nuget.org id: publish_nuget - run: dotnet nuget push ${{ steps.artifacts_path.outputs.path }}/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET_KEY }} --skip-duplicate + shell: pwsh + run: | + Get-ChildItem -Path ${{ steps.artifacts_path.outputs.path }} -Include *.nupkg | Select-Object -ExpandProperty FullName | foreach { dotnet nuget push "$_" -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET_KEY }} --skip-duplicate } diff --git a/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs b/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs index 55157c67..5f88c80a 100644 --- a/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs +++ b/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs @@ -20,7 +20,6 @@ public static class UrlToLicenseMapping new KeyValuePair( new Uri("http://www.apache.org/licenses/LICENSE-2.0.html"), Apache20 ), new KeyValuePair( new Uri("http://www.apache.org/licenses/LICENSE-2.0"), Apache20 ), new KeyValuePair( new Uri("http://aws.amazon.com/apache2.0/"), Apache20 ), - new KeyValuePair( new Uri("http://logging.apache.org/log4net/license.html"), Apache20 ), new KeyValuePair( new Uri("https://github.com/owin-contrib/owin-hosting/blob/master/LICENSE.txt"), Apache20 ), new KeyValuePair( new Uri("https://raw.githubusercontent.com/aspnet/Home/2.0.0/LICENSE.txt"), Apache20 ), new KeyValuePair( diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_22e062c15379c13a.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_22e062c15379c13a.verified.txt index 366302b3..43ef178e 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_22e062c15379c13a.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_22e062c15379c13a.verified.txt @@ -1,21 +1,6 @@ The MIT License (MIT) - - Copyright © 2024 Max Hauser - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the “Software”), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - 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. \ No newline at end of file +Copyright © 2024 Max Hauser +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 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. +Fork this project to create your own MIT license that you can always link to. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_428b264ee36ee41a.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_428b264ee36ee41a.verified.txt index 5f282702..8cad9305 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_428b264ee36ee41a.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_428b264ee36ee41a.verified.txt @@ -1 +1,9 @@ - \ No newline at end of file +The MIT License (MIT) + +Copyright (c) 2010 Jimmy Bogard + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4361ac729d63963d.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4361ac729d63963d.verified.txt index 5f282702..651d56c6 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4361ac729d63963d.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4361ac729d63963d.verified.txt @@ -1 +1,21 @@ - \ No newline at end of file +The MIT License (MIT) + +Copyright (c) 2015-2016 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + 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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4dd15ac9f11cd17c.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4dd15ac9f11cd17c.verified.txt index 5df504ed..12fef5a5 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4dd15ac9f11cd17c.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4dd15ac9f11cd17c.verified.txt @@ -1,215 +1,44 @@ - - - - -MICROSOFT SOFTWARE -LICENSE TERMS - -MICROSOFT .NET LIBRARY -(INSTALL AND USE) - -These license terms are -an agreement between Microsoft Corporation (or based on where you live, one of -its affiliates) and you. Please read them. They apply to the software named -above, which includes the media on which you received it, if any. The terms also -apply to any Microsoft - -·         -updates, - -·         -supplements, - -·         -Internet-based -services, and - -·         -support -services - -for this software, -unless other terms accompany those items. If so, those terms apply. - -BY USING THE SOFTWARE, -YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. - -IF YOU COMPLY WITH -THESE LICENSE TERMS, YOU HAVE THE PERPETUAL RIGHTS BELOW. - -1.    INSTALLATION AND USE -RIGHTS. - -a.    Installation and Use. You may install and -use any number of copies of the software to design, develop and test your -programs. - -b.    Third Party Programs. The software may -include third party programs that Microsoft, not the third party, licenses to -you under this agreement. Notices, if any, for the third party program are included -for your information only. - -2.    SCOPE OF LICENSE. The software is -licensed, not sold. This agreement only gives you some rights to use the -software. Microsoft reserves all other rights. Unless applicable law gives you -more rights despite this limitation, you may use the software only as expressly -permitted in this agreement. In doing so, you must comply with any technical -limitations in the software that only allow you to use it in certain ways. You -may not - -·         -work -around any technical limitations in the software; - -·         -reverse -engineer, decompile or disassemble the software, except and only to the extent -that applicable law expressly permits, despite this limitation; - -·         -publish -the software for others to copy; - -·         -rent, -lease or lend the software; - -·         -transfer -the software or this agreement to any third party; or - -3.    BACKUP COPY. You may make one backup -copy of the software. You may use it only to reinstall the software. - -4.    DOCUMENTATION. Any person that has -valid access to your computer or internal network may copy and use the -documentation for your internal, reference purposes. - -5.    EXPORT RESTRICTIONS. The software is subject -to United States export laws and regulations. You must comply with all domestic -and international export laws and regulations that apply to the software. These -laws include restrictions on destinations, end users and end use. For -additional information, see www.microsoft.com/exporting. - -6.    SUPPORT SERVICES. Because this software -is “as is,” we may not provide support services for it. - -7.    ENTIRE AGREEMENT. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -8.    APPLICABLE LAW. - -a.    United States. If you acquired the -software in the United States, Washington state law governs the interpretation -of this agreement and applies to claims for breach of it, regardless of -conflict of laws principles. The laws of the state where you live govern all -other claims, including claims under state consumer protection laws, unfair -competition laws, and in tort. - -b.    Outside the United -States. If you acquired the software in any other country, the laws of that -country apply. - -9.  LEGAL EFFECT. This agreement -describes certain legal rights. You may have other rights under the laws of -your country. You may also have rights with respect to the party from whom you -acquired the software. This agreement does not change your rights under the -laws of your country if the laws of your country do not permit it to do so. - -10.  DISCLAIMER OF WARRANTY. -THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT -GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL -CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS -AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT -EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NON-INFRINGEMENT. - -FOR AUSTRALIA – YOU -HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN -THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS. - -11.  LIMITATION ON AND -EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS -SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER -DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL -DAMAGES. - -This limitation applies -to - -·         -anything -related to the software, services, content (including code) on third party -Internet sites, or third party programs; and - -·         -claims for -breach of contract, breach of warranty, guarantee or condition, strict -liability, negligence, or other tort to the extent permitted by applicable law. - -It also applies even if Microsoft knew -or should have known about the possibility of the damages. The above limitation -or exclusion may not apply to you because your country may not allow the -exclusion or limitation of incidental, consequential or other damages. - -Please note: As this -software is distributed in Quebec, Canada, some of the clauses in this -agreement are provided below in French. - -Remarque : Ce logiciel -étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont -fournies ci-dessous en français. - -EXONÉRATION DE -GARANTIE. Le -logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce -logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre -garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du -droit local sur la protection des consommateurs, que ce contrat ne peut -modifier. La ou elles sont permises par le droit locale, les garanties implicites -de qualité marchande, d’adéquation à un usage particulier et d’absence de -contrefaçon sont exclues. - -LIMITATION DES -DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de -Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs -uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune -indemnisation pour les autres dommages, y compris les dommages spéciaux, -indirects ou accessoires et pertes de bénéfices. - -Cette limitation -concerne : - -·         -tout -ce qui est relié au logiciel, aux services ou au contenu (y compris le code) -figurant sur des sites Internet tiers ou dans des programmes tiers ; et - -·         -les -réclamations au titre de violation de contrat ou de garantie, ou au titre de -responsabilité stricte, de négligence ou d’une autre faute dans la limite -autorisée par la loi en vigueur. - -Elle s’applique -également, même si Microsoft connaissait ou devrait connaître l’éventualité -d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de -responsabilité pour les dommages indirects, accessoires ou de quelque nature -que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera -pas à votre égard. - -EFFET JURIDIQUE. Le présent contrat -décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus -par les lois de votre pays. Le présent contrat ne modifie pas les droits que -vous confèrent les lois de votre pays si celles-ci ne le permettent pas. - -  - -  - - - - - - +MICROSOFT SOFTWARE LICENSE TERMS +MICROSOFT .NET LIBRARY (INSTALL AND USE) +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE PERPETUAL RIGHTS BELOW. +1. INSTALLATION AND USE RIGHTS. +a. Installation and Use. You may install and use any number of copies of the software to design, develop and test your programs. +b. Third Party Programs. The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party program are included for your information only. +2. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; +· transfer the software or this agreement to any third party; or +3. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +4. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +5. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +6. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +7. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +8. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +9. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +10. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +FOR AUSTRALIA – YOU HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS. +11. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. +Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French. +Remarque : Ce logiciel étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français. +EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues. +LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. +Cette limitation concerne : +· tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et +· les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur. +Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard. +EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_56f779c494389d69.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_56f779c494389d69.verified.txt index 0c6a631b..165ba70e 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_56f779c494389d69.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_56f779c494389d69.verified.txt @@ -1,231 +1,43 @@ - - - - -MICROSOFT SOFTWARE LICENSE -TERMS - - - -MICROSOFT .NET -LIBRARY - - - -These -license terms are an agreement between you and Microsoft Corporation (or based -on where you live, one of its affiliates). They apply to the software named -above. The terms also apply to any Microsoft services or updates for the -software, except to the extent those have different terms. - - - -If -you comply with these license terms, you have the rights below. - - - -1.    INSTALLATION AND USE RIGHTS. - -You may -install and use any number of copies of the software to develop and test your applications.  - - -2.    -THIRD PARTY COMPONENTS. The software may include third party components with -separate legal notices or governed by other agreements, as may be described in -the ThirdPartyNotices file(s) accompanying the software. - -3.    -ADDITIONAL LICENSING -REQUIREMENTS AND/OR USE RIGHTS. - -a.     -DISTRIBUTABLE -CODE.  The software is -comprised of Distributable Code. “Distributable Code” is code that you are -permitted to distribute in applications you develop if you comply with the -terms below. - -i.      Right to Use and Distribute. - -·        -You may copy and distribute the object code form of the software. - -·        -Third Party Distribution. You may permit distributors of your applications -to copy and distribute the Distributable Code as part of those applications. - -ii.     Distribution Requirements. For any -Distributable Code you distribute, you must - -·        -use the Distributable Code in your applications and not as a -standalone distribution; - -·        -require distributors and external end users to agree to terms that -protect it at least as much as this agreement; and - -·        -indemnify, defend, and hold harmless Microsoft from any claims, -including attorneys’ fees, related to the distribution or use of your applications, -except to the extent that any claim is based solely on the unmodified Distributable -Code. - -iii.   Distribution Restrictions. You may not - -·        -use Microsoft’s trademarks in your applications’ names or in a way -that suggests your applications come from or are endorsed by Microsoft; or - -·        -modify or distribute the source code of any Distributable Code so -that any part of it becomes subject to an Excluded License. An “Excluded -License” is one that requires, as a condition of use, modification or -distribution of code, that (i) it be disclosed or distributed in source code -form; or (ii) others have the right to modify it. - -4.    -DATA. - -a.     -Data Collection. The software may collect -information about you and your use of the software, and send that to Microsoft. -Microsoft may use this information to provide services and improve our products -and services.  You may opt-out of many of these scenarios, but not all, as -described in the software documentation.  There are also some features in the software that may enable you and -Microsoft to collect data from users of your applications. If you use -these features, you must comply with applicable law, including providing -appropriate notices to users of your applications together with Microsoft’s -privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data -collection and its use from the software documentation and our privacy -statement. Your use of the software operates as your consent to these -practices. - -b.    -Processing of Personal Data. To the extent Microsoft is a -processor or subprocessor of personal data in connection with the software, -Microsoft makes the commitments in the European Union General Data Protection -Regulation Terms of the Online Services Terms to all customers effective May -25, 2018, at https://learn.microsoft.com/en-us/legal/gdpr. - -5.    -Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·        -work around any technical -limitations in the software; - -·        -reverse engineer, decompile or -disassemble the software, or otherwise attempt to derive the source code for -the software, except and to the extent required by third party licensing terms -governing use of certain open source components that may be included in the -software; - -·        -remove, minimize, block or modify -any notices of Microsoft or its suppliers in the software; - -·        -use the software in any way that -is against the law; or - -·        -share, publish, rent or lease the -software, provide the software as a stand-alone offering for others to use, or -transfer the software or this agreement to any third party. - -6.    -Export -Restrictions. You must comply with all domestic and international -export laws and regulations that apply to the software, which include -restrictions on destinations, end users, and end use. For further information -on export restrictions, visit www.microsoft.com/exporting. - -7.    -SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -8.    -Entire -Agreement. This -agreement, and the terms for supplements, updates, Internet-based services and -support services that you use, are the entire agreement for the software and -support services. - -9.    Applicable Law.  If you acquired the software in the United States, Washington law -applies to interpretation of and claims for breach of this agreement, and the -laws of the state where you live apply to all other claims. If you acquired the -software in any other country, its laws apply. - -10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You -may have other rights, including consumer rights, under the laws of your state -or country. Separate and apart from your relationship with Microsoft, you may -also have rights with respect to the party from which you acquired the -software. This agreement does not change those other rights if the laws of your -state or country do not permit it to do so. For example, if you acquired the -software in one of the below regions, or mandatory country law applies, then -the following provisions apply to you: - -a)    Australia. You have statutory guarantees under the Australian Consumer -Law and nothing in this agreement is intended to affect those rights. - -b)    Canada. If you acquired this software in Canada, you may stop -receiving updates by turning off the automatic update feature, disconnecting -your device from the Internet (if and when you re-connect to the Internet, -however, the software will resume checking for and installing updates), or uninstalling -the software. The product documentation, if any, may also specify how to turn -off updates for your specific device or software. - -c)    Germany and Austria. - -(i)        Warranty. The software will perform -substantially as described in any Microsoft materials that accompany it. -However, Microsoft gives no contractual guarantee in relation to the software. - -(ii)       Limitation of Liability. In case of -intentional conduct, gross negligence, claims based on the Product Liability -Act, as well as in case of death or personal or physical injury, Microsoft is -liable according to the statutory law. - -Subject to the foregoing clause (ii), Microsoft will only -be liable for slight negligence if Microsoft is in breach of such material -contractual obligations, the fulfillment of which facilitate the due -performance of this agreement, the breach of which would endanger the purpose -of this agreement and the compliance with which a party may constantly trust in -(so-called "cardinal obligations"). In other cases of slight negligence, -Microsoft will not be liable for slight negligence - -11. Disclaimer of Warranty. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK -OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. -TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NON-INFRINGEMENT. - -12. -Limitation -on and Exclusion of Remedies and Damages. YOU -CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - -This limitation applies to (a) -anything related to the software, services, content (including code) on third -party Internet sites, or third party applications; and (b) claims for breach of -contract, breach of warranty, guarantee or condition, strict liability, -negligence, or other tort to the extent permitted by applicable law. - -It -also applies even if Microsoft knew or should have known about the possibility -of the damages. The above limitation or exclusion may not apply to you because -your state or country may not allow the exclusion or limitation of incidental, -consequential or other damages. +MICROSOFT SOFTWARE LICENSE TERMS +MICROSOFT .NET LIBRARY +These license terms are an agreement between you and Microsoft Corporation (or based on where you live, one of its affiliates). They apply to the software named above. The terms also apply to any Microsoft services or updates for the software, except to the extent those have different terms. +IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. +1. INSTALLATION AND USE RIGHTS. +You may install and use any number of copies of the software to develop and test your applications. +2. THIRD PARTY COMPONENTS. The software may include third party components with separate legal notices or governed by other agreements, as may be described in the ThirdPartyNotices file(s) accompanying the software. +3. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. DISTRIBUTABLE CODE. The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in applications you develop if you comply with the terms below. +i. Right to Use and Distribute. +· You may copy and distribute the object code form of the software. +· Third Party Distribution. You may permit distributors of your applications to copy and distribute the Distributable Code as part of those applications. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· use the Distributable Code in your applications and not as a standalone distribution; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your applications, except to the extent that any claim is based solely on the unmodified Distributable Code. +iii. Distribution Restrictions. You may not +· use Microsoft’s trademarks in your applications’ names or in a way that suggests your applications come from or are endorsed by Microsoft; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An “Excluded License” is one that requires, as a condition of use, modification or distribution of code, that (i) it be disclosed or distributed in source code form; or (ii) others have the right to modify it. +4. DATA. +a. Data Collection. The software may collect information about you and your use of the software, and send that to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may opt-out of many of these scenarios, but not all, as described in the software documentation. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and its use from the software documentation and our privacy statement. Your use of the software operates as your consent to these practices. +b. Processing of Personal Data. To the extent Microsoft is a processor or subprocessor of personal data in connection with the software, Microsoft makes the commitments in the European Union General Data Protection Regulation Terms of the Online Services Terms to all customers effective May 25, 2018, at https://learn.microsoft.com/en-us/legal/gdpr. +5. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; +· remove, minimize, block or modify any notices of Microsoft or its suppliers in the software; +· use the software in any way that is against the law; or +· share, publish, rent or lease the software, provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party. +6. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit www.microsoft.com/exporting. +7. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +8. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +9. APPLICABLE LAW. If you acquired the software in the United States, Washington law applies to interpretation of and claims for breach of this agreement, and the laws of the state where you live apply to all other claims. If you acquired the software in any other country, its laws apply. +10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you: +a) Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights. +b) Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software. +c) Germany and Austria. +(i) Warranty. The software will perform substantially as described in any Microsoft materials that accompany it. However, Microsoft gives no contractual guarantee in relation to the software. +(ii) Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as in case of death or personal or physical injury, Microsoft is liable according to the statutory law. +Subject to the foregoing clause (ii), Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence +11. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +12. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state or country may not allow the exclusion or limitation of incidental, consequential or other damages. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5a6a8426f157cb07.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5a6a8426f157cb07.verified.txt index 5508e5e7..12fef5a5 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5a6a8426f157cb07.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5a6a8426f157cb07.verified.txt @@ -1,205 +1,44 @@ - - - - -MICROSOFT SOFTWARE -LICENSE TERMS - -MICROSOFT .NET LIBRARY -(INSTALL AND USE) - -These license terms are -an agreement between Microsoft Corporation (or based on where you live, one of -its affiliates) and you. Please read them. They apply to the software named -above, which includes the media on which you received it, if any. The terms also -apply to any Microsoft - -·         -updates, - -·         -supplements, - -·         -Internet-based -services, and - -·         -support -services - -for this software, -unless other terms accompany those items. If so, those terms apply. - -BY USING THE SOFTWARE, -YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. - -IF YOU COMPLY WITH -THESE LICENSE TERMS, YOU HAVE THE PERPETUAL RIGHTS BELOW. - -1.    INSTALLATION AND USE -RIGHTS. - -a.    Installation and Use. You may install and -use any number of copies of the software to design, develop and test your -programs. - -b.    Third Party Programs. The software may -include third party programs that Microsoft, not the third party, licenses to -you under this agreement. Notices, if any, for the third party program are included -for your information only. - -2.    SCOPE OF LICENSE. The software is -licensed, not sold. This agreement only gives you some rights to use the -software. Microsoft reserves all other rights. Unless applicable law gives you -more rights despite this limitation, you may use the software only as expressly -permitted in this agreement. In doing so, you must comply with any technical -limitations in the software that only allow you to use it in certain ways. You -may not - -·         -work -around any technical limitations in the software; - -·         -reverse -engineer, decompile or disassemble the software, except and only to the extent -that applicable law expressly permits, despite this limitation; - -·         -publish -the software for others to copy; - -·         -rent, -lease or lend the software; - -·         -transfer -the software or this agreement to any third party; or - -3.    BACKUP COPY. You may make one backup -copy of the software. You may use it only to reinstall the software. - -4.    DOCUMENTATION. Any person that has -valid access to your computer or internal network may copy and use the -documentation for your internal, reference purposes. - -5.    EXPORT RESTRICTIONS. The software is subject -to United States export laws and regulations. You must comply with all domestic -and international export laws and regulations that apply to the software. These -laws include restrictions on destinations, end users and end use. For -additional information, see www.microsoft.com/exporting. - -6.    SUPPORT SERVICES. Because this software -is “as is,” we may not provide support services for it. - -7.    ENTIRE AGREEMENT. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -8.    APPLICABLE LAW. - -a.    United States. If you acquired the -software in the United States, Washington state law governs the interpretation -of this agreement and applies to claims for breach of it, regardless of -conflict of laws principles. The laws of the state where you live govern all -other claims, including claims under state consumer protection laws, unfair -competition laws, and in tort. - -b.    Outside the United -States. If you acquired the software in any other country, the laws of that -country apply. - -9.  LEGAL EFFECT. This agreement -describes certain legal rights. You may have other rights under the laws of -your country. You may also have rights with respect to the party from whom you -acquired the software. This agreement does not change your rights under the -laws of your country if the laws of your country do not permit it to do so. - -10.  DISCLAIMER OF WARRANTY. -THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT -GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL -CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS -AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT -EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NON-INFRINGEMENT. - -FOR AUSTRALIA – YOU -HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN -THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS. - -11.  LIMITATION ON AND -EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS -SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER -DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL -DAMAGES. - -This limitation applies -to - -·         -anything -related to the software, services, content (including code) on third party -Internet sites, or third party programs; and - -·         -claims for -breach of contract, breach of warranty, guarantee or condition, strict -liability, negligence, or other tort to the extent permitted by applicable law. - -It also applies even if Microsoft knew -or should have known about the possibility of the damages. The above limitation -or exclusion may not apply to you because your country may not allow the -exclusion or limitation of incidental, consequential or other damages. - -Please note: As this -software is distributed in Quebec, Canada, some of the clauses in this -agreement are provided below in French. - -Remarque : Ce logiciel -étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont -fournies ci-dessous en français. - -EXONÉRATION DE -GARANTIE. Le -logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce -logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre -garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du -droit local sur la protection des consommateurs, que ce contrat ne peut -modifier. La ou elles sont permises par le droit locale, les garanties implicites -de qualité marchande, d’adéquation à un usage particulier et d’absence de -contrefaçon sont exclues. - -LIMITATION DES -DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de -Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs -uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune -indemnisation pour les autres dommages, y compris les dommages spéciaux, -indirects ou accessoires et pertes de bénéfices. - -Cette limitation -concerne : - -·         -tout -ce qui est relié au logiciel, aux services ou au contenu (y compris le code) -figurant sur des sites Internet tiers ou dans des programmes tiers ; et - -·         -les -réclamations au titre de violation de contrat ou de garantie, ou au titre de -responsabilité stricte, de négligence ou d’une autre faute dans la limite -autorisée par la loi en vigueur. - -Elle s’applique -également, même si Microsoft connaissait ou devrait connaître l’éventualité -d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de -responsabilité pour les dommages indirects, accessoires ou de quelque nature -que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera -pas à votre égard. - -EFFET JURIDIQUE. Le présent contrat -décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus -par les lois de votre pays. Le présent contrat ne modifie pas les droits que -vous confèrent les lois de votre pays si celles-ci ne le permettent pas. +MICROSOFT SOFTWARE LICENSE TERMS +MICROSOFT .NET LIBRARY (INSTALL AND USE) +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE PERPETUAL RIGHTS BELOW. +1. INSTALLATION AND USE RIGHTS. +a. Installation and Use. You may install and use any number of copies of the software to design, develop and test your programs. +b. Third Party Programs. The software may include third party programs that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party program are included for your information only. +2. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; +· transfer the software or this agreement to any third party; or +3. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +4. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +5. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +6. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +7. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +8. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +9. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +10. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS OR STATUTORY GUARANTEES UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +FOR AUSTRALIA – YOU HAVE STATUTORY GUARANTEES UNDER THE AUSTRALIAN CONSUMER LAW AND NOTHING IN THESE TERMS IS INTENDED TO AFFECT THOSE RIGHTS. +11. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. +Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French. +Remarque : Ce logiciel étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français. +EXONÉRATION DE GARANTIE. Le logiciel visé par une licence est offert « tel quel ». Toute utilisation de ce logiciel est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues. +LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. +Cette limitation concerne : +· tout ce qui est relié au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et +· les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur. +Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre égard. +EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre pays si celles-ci ne le permettent pas. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5b045172ae56c820.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5b045172ae56c820.verified.txt index d6f46eef..92a6a3e9 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5b045172ae56c820.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5b045172ae56c820.verified.txt @@ -1,174 +1,35 @@ -Apache License, Version 2.0¶ - -Text version: https://www.apache.org/licenses/LICENSE-2.0.txt -SPDX short identifier: Apache-2.0 -OSI Approved License: https://opensource.org/licenses/Apache-2.0 - -The 2.0 version of the Apache License, approved by the ASF in 2004, helps us achieve our goal of providing -reliable and long-lived software products through collaborative, open-source software development. -All packages produced by the ASF are implicitly licensed under the Apache -License, Version 2.0, unless otherwise explicitly stated. - - -Apache LicenseVersion 2.0, January 2004 +Apache License +Version 2.0, January 2004 http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. -"Licensor" shall mean the copyright owner or entity authorized by the -copyright owner that is granting the License. -"Legal Entity" shall mean the union of the acting entity and all other -entities that control, are controlled by, or are under common control with -that entity. For the purposes of this definition, "control" means (i) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (ii) ownership of fifty -percent (50%) or more of the outstanding shares, or (iii) beneficial -ownership of such entity. -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media types. -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under the License, as indicated by a copyright notice that -is included in or attached to the work (an example is provided in the -Appendix below). -"Derivative Works" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as -a whole, an original work of authorship. For the purposes of this License, -Derivative Works shall not include works that remain separable from, or -merely link (or bind by name) to the interfaces of, the Work and Derivative -Works thereof. -"Contribution" shall mean any work of authorship, including the original -version of the Work and any modifications or additions to that Work or -Derivative Works thereof, that is intentionally submitted to Licensor for -inclusion in the Work by the copyright owner or by an individual or Legal -Entity authorized to submit on behalf of the copyright owner. For the -purposes of this definition, "submitted" means any form of electronic, -verbal, or written communication sent to the Licensor or its -representatives, including but not limited to communication on electronic -mailing lists, source code control systems, and issue tracking systems that -are managed by, or on behalf of, the Licensor for the purpose of discussing -and improving the Work, but excluding communication that is conspicuously -marked or otherwise designated in writing by the copyright owner as "Not a -Contribution." -"Contributor" shall mean Licensor and any individual or Legal Entity on -behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the -terms and conditions of this License, each Contributor hereby grants to You -a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable -copyright license to reproduce, prepare Derivative Works of, publicly -display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. -3. Grant of Patent License. Subject to the terms -and conditions of this License, each Contributor hereby grants to You a -perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable -(except as stated in this section) patent license to make, have made, use, -offer to sell, sell, import, and otherwise transfer the Work, where such -license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by -combination of their Contribution(s) with the Work to which such -Contribution(s) was submitted. If You institute patent litigation against -any entity (including a cross-claim or counterclaim in a lawsuit) alleging -that the Work or a Contribution incorporated within the Work constitutes -direct or contributory patent infringement, then any patent licenses -granted to You under this License for that Work shall terminate as of the -date such litigation is filed. -4. Redistribution. You may reproduce and -distribute copies of the Work or Derivative Works thereof in any medium, -with or without modifications, and in Source or Object form, provided that -You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a -copy of this License; and -You must cause any modified files to carry prominent notices stating -that You changed the files; and -You must retain, in the Source form of any Derivative Works that You -distribute, all copyright, patent, trademark, and attribution notices from -the Source form of the Work, excluding those notices that do not pertain to -any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, -then any Derivative Works that You distribute must include a readable copy -of the attribution notices contained within such NOTICE file, excluding -those notices that do not pertain to any part of the Derivative Works, in -at least one of the following places: within a NOTICE text file distributed -as part of the Derivative Works; within the Source form or documentation, -if provided along with the Derivative Works; or, within a display generated -by the Derivative Works, if and wherever such third-party notices normally -appear. The contents of the NOTICE file are for informational purposes only -and do not modify the License. You may add Your own attribution notices -within Derivative Works that You distribute, alongside or as an addendum to -the NOTICE text from the Work, provided that such additional attribution -notices cannot be construed as modifying the License. - - -You may add Your own copyright statement to Your modifications and may -provide additional or different license terms and conditions for use, -reproduction, or distribution of Your modifications, or for any such -Derivative Works as a whole, provided Your use, reproduction, and -distribution of the Work otherwise complies with the conditions stated in -this License. -5. Submission of Contributions. Unless You -explicitly state otherwise, any Contribution intentionally submitted for -inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the -terms of any separate license agreement you may have executed with Licensor -regarding such Contributions. -6. Trademarks. This License does not grant -permission to use the trade names, trademarks, service marks, or product -names of the Licensor, except as required for reasonable and customary use -in describing the origin of the Work and reproducing the content of the -NOTICE file. -7. Disclaimer of Warranty. Unless required by -applicable law or agreed to in writing, Licensor provides the Work (and -each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, -without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You -are solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise -of permissions under this License. -8. Limitation of Liability. In no event and -under no legal theory, whether in tort (including negligence), contract, or -otherwise, unless required by applicable law (such as deliberate and -grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, -incidental, or consequential damages of any character arising as a result -of this License or out of the use or inability to use the Work (including -but not limited to damages for loss of goodwill, work stoppage, computer -failure or malfunction, or any and all other commercial damages or losses), -even if such Contributor has been advised of the possibility of such -damages. -9. Accepting Warranty or Additional Liability. -While redistributing the Work or Derivative Works thereof, You may choose -to offer, and charge a fee for, acceptance of support, warranty, indemnity, -or other liability obligations and/or rights consistent with this License. -However, in accepting such obligations, You may act only on Your own behalf -and on Your sole responsibility, not on behalf of any other Contributor, -and only if You agree to indemnify, defend, and hold each Contributor -harmless for any liability incurred by, or claims asserted against, such -Contributor by reason of your accepting any such warranty or additional -liability. +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: +You must give any other recipients of the Work or Derivative Works a copy of this License; and +You must cause any modified files to carry prominent notices stating that You changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS - -How to apply the Apache License to your work¶ -Include a copy of the Apache License, typically in a file called -LICENSE, in your work, and consider also including a NOTICE file that references the License. -To apply the Apache License to specific files in your work, attach the following boilerplate -declaration, replacing the fields enclosed by brackets "[]" with your own -identifying information. (Don't include the brackets!) Enclose the text in the appropriate comment syntax for the file format. We also -recommend that you include a file or class name and description of purpose on the same "printed page" as the copyright notice for easier -identification within third-party archives. +HOW TO APPLY THE APACHE LICENSE TO YOUR WORK +Include a copy of the Apache License, typically in a file called LICENSE, in your work, and consider also including a NOTICE file that references the License. +To apply the Apache License to specific files in your work, attach the following boilerplate declaration, replacing the fields enclosed by brackets "[]" with your own identifying information. (Don't include the brackets!) Enclose the text in the appropriate comment syntax for the file format. We also recommend that you include a file or class name and description of purpose on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5e3ed529434f955d.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5e3ed529434f955d.verified.txt index 5f282702..fa4e4593 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5e3ed529434f955d.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5e3ed529434f955d.verified.txt @@ -1 +1,5 @@ - \ No newline at end of file +Copyright (c) 2015-2016 Xamarin, Inc. +Copyright (c) 2017-2018 Microsoft Corporation. +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5ee1cd856c331a32.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5ee1cd856c331a32.verified.txt index d6f46eef..a4f4d554 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5ee1cd856c331a32.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5ee1cd856c331a32.verified.txt @@ -1,174 +1,42 @@ -Apache License, Version 2.0¶ - + +APACHE LICENSE, VERSION 2.0 Text version: https://www.apache.org/licenses/LICENSE-2.0.txt SPDX short identifier: Apache-2.0 OSI Approved License: https://opensource.org/licenses/Apache-2.0 - -The 2.0 version of the Apache License, approved by the ASF in 2004, helps us achieve our goal of providing -reliable and long-lived software products through collaborative, open-source software development. -All packages produced by the ASF are implicitly licensed under the Apache -License, Version 2.0, unless otherwise explicitly stated. - - -Apache LicenseVersion 2.0, January 2004 +The 2.0 version of the Apache License, approved by the ASF in 2004, helps us achieve our goal of providing reliable and long-lived software products through collaborative, open-source software development. +All packages produced by the ASF are implicitly licensed under the Apache License, Version 2.0, unless otherwise explicitly stated. +Apache License +Version 2.0, January 2004 http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. -"Licensor" shall mean the copyright owner or entity authorized by the -copyright owner that is granting the License. -"Legal Entity" shall mean the union of the acting entity and all other -entities that control, are controlled by, or are under common control with -that entity. For the purposes of this definition, "control" means (i) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (ii) ownership of fifty -percent (50%) or more of the outstanding shares, or (iii) beneficial -ownership of such entity. -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media types. -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under the License, as indicated by a copyright notice that -is included in or attached to the work (an example is provided in the -Appendix below). -"Derivative Works" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as -a whole, an original work of authorship. For the purposes of this License, -Derivative Works shall not include works that remain separable from, or -merely link (or bind by name) to the interfaces of, the Work and Derivative -Works thereof. -"Contribution" shall mean any work of authorship, including the original -version of the Work and any modifications or additions to that Work or -Derivative Works thereof, that is intentionally submitted to Licensor for -inclusion in the Work by the copyright owner or by an individual or Legal -Entity authorized to submit on behalf of the copyright owner. For the -purposes of this definition, "submitted" means any form of electronic, -verbal, or written communication sent to the Licensor or its -representatives, including but not limited to communication on electronic -mailing lists, source code control systems, and issue tracking systems that -are managed by, or on behalf of, the Licensor for the purpose of discussing -and improving the Work, but excluding communication that is conspicuously -marked or otherwise designated in writing by the copyright owner as "Not a -Contribution." -"Contributor" shall mean Licensor and any individual or Legal Entity on -behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the -terms and conditions of this License, each Contributor hereby grants to You -a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable -copyright license to reproduce, prepare Derivative Works of, publicly -display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. -3. Grant of Patent License. Subject to the terms -and conditions of this License, each Contributor hereby grants to You a -perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable -(except as stated in this section) patent license to make, have made, use, -offer to sell, sell, import, and otherwise transfer the Work, where such -license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by -combination of their Contribution(s) with the Work to which such -Contribution(s) was submitted. If You institute patent litigation against -any entity (including a cross-claim or counterclaim in a lawsuit) alleging -that the Work or a Contribution incorporated within the Work constitutes -direct or contributory patent infringement, then any patent licenses -granted to You under this License for that Work shall terminate as of the -date such litigation is filed. -4. Redistribution. You may reproduce and -distribute copies of the Work or Derivative Works thereof in any medium, -with or without modifications, and in Source or Object form, provided that -You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a -copy of this License; and -You must cause any modified files to carry prominent notices stating -that You changed the files; and -You must retain, in the Source form of any Derivative Works that You -distribute, all copyright, patent, trademark, and attribution notices from -the Source form of the Work, excluding those notices that do not pertain to -any part of the Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, -then any Derivative Works that You distribute must include a readable copy -of the attribution notices contained within such NOTICE file, excluding -those notices that do not pertain to any part of the Derivative Works, in -at least one of the following places: within a NOTICE text file distributed -as part of the Derivative Works; within the Source form or documentation, -if provided along with the Derivative Works; or, within a display generated -by the Derivative Works, if and wherever such third-party notices normally -appear. The contents of the NOTICE file are for informational purposes only -and do not modify the License. You may add Your own attribution notices -within Derivative Works that You distribute, alongside or as an addendum to -the NOTICE text from the Work, provided that such additional attribution -notices cannot be construed as modifying the License. - - -You may add Your own copyright statement to Your modifications and may -provide additional or different license terms and conditions for use, -reproduction, or distribution of Your modifications, or for any such -Derivative Works as a whole, provided Your use, reproduction, and -distribution of the Work otherwise complies with the conditions stated in -this License. -5. Submission of Contributions. Unless You -explicitly state otherwise, any Contribution intentionally submitted for -inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the -terms of any separate license agreement you may have executed with Licensor -regarding such Contributions. -6. Trademarks. This License does not grant -permission to use the trade names, trademarks, service marks, or product -names of the Licensor, except as required for reasonable and customary use -in describing the origin of the Work and reproducing the content of the -NOTICE file. -7. Disclaimer of Warranty. Unless required by -applicable law or agreed to in writing, Licensor provides the Work (and -each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT -WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, -without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You -are solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise -of permissions under this License. -8. Limitation of Liability. In no event and -under no legal theory, whether in tort (including negligence), contract, or -otherwise, unless required by applicable law (such as deliberate and -grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, -incidental, or consequential damages of any character arising as a result -of this License or out of the use or inability to use the Work (including -but not limited to damages for loss of goodwill, work stoppage, computer -failure or malfunction, or any and all other commercial damages or losses), -even if such Contributor has been advised of the possibility of such -damages. -9. Accepting Warranty or Additional Liability. -While redistributing the Work or Derivative Works thereof, You may choose -to offer, and charge a fee for, acceptance of support, warranty, indemnity, -or other liability obligations and/or rights consistent with this License. -However, in accepting such obligations, You may act only on Your own behalf -and on Your sole responsibility, not on behalf of any other Contributor, -and only if You agree to indemnify, defend, and hold each Contributor -harmless for any liability incurred by, or claims asserted against, such -Contributor by reason of your accepting any such warranty or additional -liability. +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: +You must give any other recipients of the Work or Derivative Works a copy of this License; and +You must cause any modified files to carry prominent notices stating that You changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS - -How to apply the Apache License to your work¶ -Include a copy of the Apache License, typically in a file called -LICENSE, in your work, and consider also including a NOTICE file that references the License. -To apply the Apache License to specific files in your work, attach the following boilerplate -declaration, replacing the fields enclosed by brackets "[]" with your own -identifying information. (Don't include the brackets!) Enclose the text in the appropriate comment syntax for the file format. We also -recommend that you include a file or class name and description of purpose on the same "printed page" as the copyright notice for easier -identification within third-party archives. +HOW TO APPLY THE APACHE LICENSE TO YOUR WORK +Include a copy of the Apache License, typically in a file called LICENSE, in your work, and consider also including a NOTICE file that references the License. +To apply the Apache License to specific files in your work, attach the following boilerplate declaration, replacing the fields enclosed by brackets "[]" with your own identifying information. (Don't include the brackets!) Enclose the text in the appropriate comment syntax for the file format. We also recommend that you include a file or class name and description of purpose on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63a0ec25be40d11a.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63a0ec25be40d11a.verified.txt index d510c495..fa08493f 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63a0ec25be40d11a.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63a0ec25be40d11a.verified.txt @@ -1,25 +1,5 @@ MIT License - - - - Copyright (c) - - - - - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and - associated documentation files (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, - and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice - (including the next paragraph) - shall be included in all copies or substantial - portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT - LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN - NO EVENT SHALL THE 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. \ No newline at end of file +Copyright (c) +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63cad523536fe5ca.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63cad523536fe5ca.verified.txt index 92ea1593..e72154a6 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63cad523536fe5ca.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63cad523536fe5ca.verified.txt @@ -1,409 +1,55 @@ GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - - Preamble - - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - - - The precise terms and conditions for copying, distribution and -modification follow. - - - +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. +The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - -0. - This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - - - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - - -1. - You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - - - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - - -2. - You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - - - - - a) - You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - - - b) - You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - - - c) - If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - - - - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - - - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - - - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - - -3. - You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - - - - - - - - a) - Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - - - b) - Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - - - c) - Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - - - - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - - - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - - -4. - You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - - -5. - You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - - -6. - Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - - -7. - If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - - - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - - - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - - - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - - -8. - If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - - -9. - The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - - -10. - If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: +a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. +b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. +c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: +a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, +b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, +c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. +Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY - - -11. - BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - - -12. - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author @@ -420,39 +66,15 @@ 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - - Also add information on how to contact you by electronic and paper mail. - - - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. - - - -The hypothetical commands `show w' and `show c' should show -the appropriate parts of the General Public License. Of course, the -commands you use may be called something other than `show w' and -`show c'; they could even be mouse-clicks or menu items--whatever -suits your program. - - - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - - +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written @@ -460,12 +82,4 @@ by James Hacker. signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice - - - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the -GNU Lesser General Public License -instead of this License. \ No newline at end of file +This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_675228b0289c97b9.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_675228b0289c97b9.verified.txt index 5f282702..89d7c4fc 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_675228b0289c97b9.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_675228b0289c97b9.verified.txt @@ -1 +1,23 @@ - \ No newline at end of file +The MIT License (MIT) + +Copyright (c) .NET Foundation and Contributors + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_97f12ec44714bb11.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_97f12ec44714bb11.verified.txt index a08d1123..aeb3b6f3 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_97f12ec44714bb11.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_97f12ec44714bb11.verified.txt @@ -1,48 +1,26 @@ -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - - 1. Definitions. - “License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - “Licensor” shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - “Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - “You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License. - “Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - “Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - “Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - “Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - “Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.” - “Contributor” shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - - - 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - - - 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - - - 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - - You must give any other recipients of the Work or Derivative Works a copy of this License; and - You must cause any modified files to carry prominent notices stating that You changed the files; and - You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. - - You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - - - 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - - - 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - - - 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - - - 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - - - 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - - - END OF TERMS AND CONDITIONS \ No newline at end of file +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION +1. Definitions. +“License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. +“Licensor” shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. +“Legal Entity” shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. +“You” (or “Your”) shall mean an individual or Legal Entity exercising permissions granted by this License. +“Source” form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. +“Object” form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. +“Work” shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). +“Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. +“Contribution” shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as “Not a Contribution.” +“Contributor” shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: +You must give any other recipients of the Work or Derivative Works a copy of this License; and +You must cause any modified files to carry prominent notices stating that You changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and +If the Work includes a “NOTICE” text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. +END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_9b93b4d121368c0c.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_9b93b4d121368c0c.verified.txt index 74b41bec..4853741d 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_9b93b4d121368c0c.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_9b93b4d121368c0c.verified.txt @@ -1,231 +1,43 @@ - - - - -MICROSOFT SOFTWARE LICENSE -TERMS - - - -MICROSOFT .NET -LIBRARY - - - -These -license terms are an agreement between you and Microsoft Corporation (or based -on where you live, one of its affiliates). They apply to the software named -above. The terms also apply to any Microsoft services or updates for the -software, except to the extent those have different terms. - - - -If -you comply with these license terms, you have the rights below. - - - -1.    INSTALLATION AND USE RIGHTS. - -You may -install and use any number of copies of the software to develop and test your applications.  - - -2.    -THIRD PARTY COMPONENTS. The software may include third party components with -separate legal notices or governed by other agreements, as may be described in -the ThirdPartyNotices file(s) accompanying the software. - -3.    -ADDITIONAL LICENSING -REQUIREMENTS AND/OR USE RIGHTS. - -a.     -DISTRIBUTABLE -CODE.  The software is -comprised of Distributable Code. “Distributable Code” is code that you are -permitted to distribute in applications you develop if you comply with the -terms below. - -i.      Right to Use and Distribute. - -·        -You may copy and distribute the object code form of the software. - -·        -Third Party Distribution. You may permit distributors of your applications -to copy and distribute the Distributable Code as part of those applications. - -ii.     Distribution Requirements. For any -Distributable Code you distribute, you must - -·        -use the Distributable Code in your applications and not as a -standalone distribution; - -·        -require distributors and external end users to agree to terms that -protect it at least as much as this agreement; and - -·        -indemnify, defend, and hold harmless Microsoft from any claims, -including attorneys’ fees, related to the distribution or use of your applications, -except to the extent that any claim is based solely on the unmodified Distributable -Code. - -iii.   Distribution Restrictions. You may not - -·        -use Microsoft’s trademarks in your applications’ names or in a way -that suggests your applications come from or are endorsed by Microsoft; or - -·        -modify or distribute the source code of any Distributable Code so -that any part of it becomes subject to an Excluded License. An “Excluded -License” is one that requires, as a condition of use, modification or -distribution of code, that (i) it be disclosed or distributed in source code -form; or (ii) others have the right to modify it. - -4.    -DATA. - -a.     -Data Collection. The software may collect -information about you and your use of the software, and send that to Microsoft. -Microsoft may use this information to provide services and improve our products -and services.  You may opt-out of many of these scenarios, but not all, as -described in the software documentation.  There are also some features in the software that may enable you and -Microsoft to collect data from users of your applications. If you use -these features, you must comply with applicable law, including providing -appropriate notices to users of your applications together with Microsoft’s -privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data -collection and its use from the software documentation and our privacy -statement. Your use of the software operates as your consent to these -practices. - -b.    -Processing of Personal Data. To the extent Microsoft is a -processor or subprocessor of personal data in connection with the software, -Microsoft makes the commitments in the European Union General Data Protection -Regulation Terms of the Online Services Terms to all customers effective May -25, 2018, at https://docs.microsoft.com/en-us/legal/gdpr. - -5.    -Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·        -work around any technical -limitations in the software; - -·        -reverse engineer, decompile or -disassemble the software, or otherwise attempt to derive the source code for -the software, except and to the extent required by third party licensing terms -governing use of certain open source components that may be included in the -software; - -·        -remove, minimize, block or modify -any notices of Microsoft or its suppliers in the software; - -·        -use the software in any way that -is against the law; or - -·        -share, publish, rent or lease the -software, provide the software as a stand-alone offering for others to use, or -transfer the software or this agreement to any third party. - -6.    -Export -Restrictions. You must comply with all domestic and international -export laws and regulations that apply to the software, which include -restrictions on destinations, end users, and end use. For further information -on export restrictions, visit www.microsoft.com/exporting.   - -7.    -SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -8.    -Entire -Agreement. This -agreement, and the terms for supplements, updates, Internet-based services and -support services that you use, are the entire agreement for the software and -support services. - -9.    Applicable Law.  If you acquired the software in the United States, Washington law -applies to interpretation of and claims for breach of this agreement, and the -laws of the state where you live apply to all other claims. If you acquired the -software in any other country, its laws apply. - -10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You -may have other rights, including consumer rights, under the laws of your state -or country. Separate and apart from your relationship with Microsoft, you may -also have rights with respect to the party from which you acquired the -software. This agreement does not change those other rights if the laws of your -state or country do not permit it to do so. For example, if you acquired the -software in one of the below regions, or mandatory country law applies, then -the following provisions apply to you: - -a)    Australia. You have statutory guarantees under the Australian Consumer -Law and nothing in this agreement is intended to affect those rights. - -b)    Canada. If you acquired this software in Canada, you may stop -receiving updates by turning off the automatic update feature, disconnecting -your device from the Internet (if and when you re-connect to the Internet, -however, the software will resume checking for and installing updates), or uninstalling -the software. The product documentation, if any, may also specify how to turn -off updates for your specific device or software. - -c)    Germany and Austria. - -(i)        Warranty. The software will perform -substantially as described in any Microsoft materials that accompany it. -However, Microsoft gives no contractual guarantee in relation to the software. - -(ii)       Limitation of Liability. In case of -intentional conduct, gross negligence, claims based on the Product Liability -Act, as well as in case of death or personal or physical injury, Microsoft is -liable according to the statutory law. - -Subject to the foregoing clause (ii), Microsoft will only -be liable for slight negligence if Microsoft is in breach of such material -contractual obligations, the fulfillment of which facilitate the due -performance of this agreement, the breach of which would endanger the purpose -of this agreement and the compliance with which a party may constantly trust in -(so-called "cardinal obligations"). In other cases of slight negligence, -Microsoft will not be liable for slight negligence - -11. Disclaimer of Warranty. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK -OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. -TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NON-INFRINGEMENT. - -12. -Limitation -on and Exclusion of Remedies and Damages. YOU -CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - -This limitation applies to (a) -anything related to the software, services, content (including code) on third -party Internet sites, or third party applications; and (b) claims for breach of -contract, breach of warranty, guarantee or condition, strict liability, -negligence, or other tort to the extent permitted by applicable law. - -It -also applies even if Microsoft knew or should have known about the possibility -of the damages. The above limitation or exclusion may not apply to you because -your state or country may not allow the exclusion or limitation of incidental, -consequential or other damages. +MICROSOFT SOFTWARE LICENSE TERMS +MICROSOFT .NET LIBRARY +These license terms are an agreement between you and Microsoft Corporation (or based on where you live, one of its affiliates). They apply to the software named above. The terms also apply to any Microsoft services or updates for the software, except to the extent those have different terms. +IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. +1. INSTALLATION AND USE RIGHTS. +You may install and use any number of copies of the software to develop and test your applications. +2. THIRD PARTY COMPONENTS. The software may include third party components with separate legal notices or governed by other agreements, as may be described in the ThirdPartyNotices file(s) accompanying the software. +3. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. DISTRIBUTABLE CODE. The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in applications you develop if you comply with the terms below. +i. Right to Use and Distribute. +· You may copy and distribute the object code form of the software. +· Third Party Distribution. You may permit distributors of your applications to copy and distribute the Distributable Code as part of those applications. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· use the Distributable Code in your applications and not as a standalone distribution; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your applications, except to the extent that any claim is based solely on the unmodified Distributable Code. +iii. Distribution Restrictions. You may not +· use Microsoft’s trademarks in your applications’ names or in a way that suggests your applications come from or are endorsed by Microsoft; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An “Excluded License” is one that requires, as a condition of use, modification or distribution of code, that (i) it be disclosed or distributed in source code form; or (ii) others have the right to modify it. +4. DATA. +a. Data Collection. The software may collect information about you and your use of the software, and send that to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may opt-out of many of these scenarios, but not all, as described in the software documentation. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and its use from the software documentation and our privacy statement. Your use of the software operates as your consent to these practices. +b. Processing of Personal Data. To the extent Microsoft is a processor or subprocessor of personal data in connection with the software, Microsoft makes the commitments in the European Union General Data Protection Regulation Terms of the Online Services Terms to all customers effective May 25, 2018, at https://docs.microsoft.com/en-us/legal/gdpr. +5. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; +· remove, minimize, block or modify any notices of Microsoft or its suppliers in the software; +· use the software in any way that is against the law; or +· share, publish, rent or lease the software, provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party. +6. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit www.microsoft.com/exporting. +7. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +8. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +9. APPLICABLE LAW. If you acquired the software in the United States, Washington law applies to interpretation of and claims for breach of this agreement, and the laws of the state where you live apply to all other claims. If you acquired the software in any other country, its laws apply. +10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you: +a) Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights. +b) Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software. +c) Germany and Austria. +(i) Warranty. The software will perform substantially as described in any Microsoft materials that accompany it. However, Microsoft gives no contractual guarantee in relation to the software. +(ii) Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as in case of death or personal or physical injury, Microsoft is liable according to the statutory law. +Subject to the foregoing clause (ii), Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence +11. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +12. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state or country may not allow the exclusion or limitation of incidental, consequential or other damages. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8bbd9c75d4635f7.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8bbd9c75d4635f7.verified.txt index 5f282702..37038133 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8bbd9c75d4635f7.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8bbd9c75d4635f7.verified.txt @@ -1 +1,18 @@ - \ No newline at end of file +The MIT License (MIT) +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8e00974c5776df1.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8e00974c5776df1.verified.txt deleted file mode 100644 index 5f282702..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8e00974c5776df1.verified.txt +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a9fd1bef8d8d1baa.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a9fd1bef8d8d1baa.verified.txt index 0e6edd2c..6f3f54ce 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a9fd1bef8d8d1baa.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a9fd1bef8d8d1baa.verified.txt @@ -1,899 +1,188 @@ - - - - -This installation contains the following software, the -license terms of each of which are included below: - -·         -Microsoft ASP.NET -Model View Controller 3 Tools Update - -·         -Microsoft ASP.NET -Web Pages - -·         -Microsoft Package -Manager for .NET - -·         -Microsoft -software update to Visual Studio, KB2483190 - -MICROSOFT -SOFTWARE LICENSE TERMS - - - +MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT ASP.NET MODEL VIEW CONTROLLER 3 TOOLS UPDATE - - - -These -license terms are an agreement between Microsoft Corporation (or based on where -you live, one of its affiliates) and you. Please read them. They apply to the -software named above, which includes the media on which you received it, if -any. The terms also apply to any Microsoft - -·         -updates, - -·         -supplements, - -·         -Internet-based services, and - -·         -support services - -for -this software, unless other terms accompany those items. If so, those terms -apply. - -BY -USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT -USE THE SOFTWARE. - - - -If you comply with these license terms, you have the -rights below. - - - -1.   INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of -the software on your devices to design, develop and test your ASP.NET programs.  -You may modify, copy, and distribute or deploy any .js files contained in the -software as part of your ASP.NET programs. - -2.   ADDITIONAL LICENSING REQUIREMENTS -AND/OR USE RIGHTS. - -a.    -Distributable Code. In addition -to the .js files described above, the software contains code that you are -permitted to distribute in ASP.NET programs you develop if you comply with the -terms below. - -i.      Right to Use and Distribute. The code and -text files listed below are “Distributable Code.” - -·         -System.Web.Mvc.dll.  You may copy and distribute the object code form -of System.Web.Mvc.dll. - -·         -Third Party -Distribution.  You -may permit distributors of your programs to copy and distribute the -Distributable Code as part of those programs. - -ii.    -Distribution Requirements. For any Distributable Code you distribute, you must - -·         -add significant primary -functionality to it in your programs; - -·         -require distributors and external -end users to agree to terms that protect it at least as much as this agreement; - - -·         -display your valid copyright -notice on your programs; and - -·         -indemnify, defend, and hold -harmless Microsoft from any claims, including attorneys’ fees, related to the -distribution or use of your programs. - -iii.   Distribution Restrictions. You may not - -·         -alter any copyright, trademark or -patent notice in the Distributable Code; - -·         -use Microsoft’s trademarks in your -programs’ names or in a way that suggests your programs come from or are -endorsed by Microsoft; - -·         -distribute Distributable Code to -run on a platform other than the Windows platform; - -·         -include Distributable Code in -malicious, deceptive or unlawful programs; or - -·         -modify or distribute the source -code of any Distributable Code so that any part of it becomes subject to an -Excluded License. An Excluded License is one that requires, as a condition of -use, modification or distribution, that - -·         -the code be disclosed or -distributed in source code form; or - -·         -others have the right to modify -it. - -3.   THIRD PARTY NOTICES.  The software may include third party code that Microsoft, not the -third party, licenses to you under this agreement. Notices, if any, for the -third party code are included for your information only. Microsoft’s service -and support obligations, if any, apply only to the unmodified third party code running -on ASP.NET. - -4.   Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·         -work around any technical -limitations in the software; - -·         -reverse engineer, decompile or -disassemble the software, except and only to the extent that applicable law -expressly permits, despite this limitation; - -·         -make more copies of the software -than specified in this agreement or allowed by applicable law, despite this -limitation; - -·         -publish the software for others to -copy; - -·         -rent, lease or lend the software; -or - -·         -transfer the software or this -agreement to any third party. - -5.   BACKUP COPY. You may make one backup copy of the software. You may -use it only to reinstall the software. - -6.   DOCUMENTATION. Any person that has valid access to your computer or -internal network may copy and use the documentation for your internal, reference -purposes. - -7.   Export -Restrictions. The software is subject to United States export laws -and regulations. You must comply with all domestic and international export -laws and regulations that apply to the software. These laws include -restrictions on destinations, end users and end use. For additional -information, see www.microsoft.com/exporting. - -8.   SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -9.   Entire -Agreement. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -10. Applicable -Law. - -a.   United States. If you acquired the software in the United States, -Washington state law governs the interpretation of this agreement and applies -to claims for breach of it, regardless of conflict of laws principles. The laws -of the state where you live govern all other claims, including claims under -state consumer protection laws, unfair competition laws, and in tort. - -b.   Outside the United States. If you acquired the software in any other country, -the laws of that country apply. - -11. Legal -Effect. This agreement describes -certain legal rights. You may have other rights under the laws of your country. -You may also have rights with respect to the party from whom you acquired the -software. This agreement does not change your rights under the laws of your -country if the laws of your country do not permit it to do so. - -12. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED -“AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, -GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR -LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER -YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -13. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. -YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +If you comply with these license terms, you have the rights below. +1. INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of the software on your devices to design, develop and test your ASP.NET programs. You may modify, copy, and distribute or deploy any .js files contained in the software as part of your ASP.NET programs. +2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. Distributable Code. In addition to the .js files described above, the software contains code that you are permitted to distribute in ASP.NET programs you develop if you comply with the terms below. +i. Right to Use and Distribute. The code and text files listed below are “Distributable Code.” +· System.Web.Mvc.dll. You may copy and distribute the object code form of System.Web.Mvc.dll. +· Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· add significant primary functionality to it in your programs; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; +· display your valid copyright notice on your programs; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. +iii. Distribution Restrictions. You may not +· alter any copyright, trademark or patent notice in the Distributable Code; +· use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; +· distribute Distributable Code to run on a platform other than the Windows platform; +· include Distributable Code in malicious, deceptive or unlawful programs; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that +· the code be disclosed or distributed in source code form; or +· others have the right to modify it. +3. THIRD PARTY NOTICES. The software may include third party code that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party code are included for your information only. Microsoft’s service and support obligations, if any, apply only to the unmodified third party code running on ASP.NET. +4. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; or +· transfer the software or this agreement to any third party. +5. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +6. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +7. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +8. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +9. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +10. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +11. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +12. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +13. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to - -·         -anything related to the software, -services, content (including code) on third party Internet sites, or third -party programs; and - -·         -claims for breach of contract, -breach of warranty, guarantee or condition, strict liability, negligence, or -other tort to the extent permitted by applicable law. - -It also applies even if Microsoft knew or should have -known about the possibility of the damages. The above limitation or exclusion -may not apply to you because your country may not allow the exclusion or -limitation of incidental, consequential or other damages. - -  - -*    *   *   *   * - -MICROSOFT -SOFTWARE LICENSE TERMS - - - +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. + * * * * * +MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT ASP.NET WEB PAGES - - - -These -license terms are an agreement between Microsoft Corporation (or based on where -you live, one of its affiliates) and you. Please read them. They apply to the -software named above, which includes the media on which you received it, if -any. The terms also apply to any Microsoft - -·         -updates, - -·         -supplements, - -·         -Internet-based services, and - -·         -support services - -for -this software, unless other terms accompany those items. If so, those terms -apply. - -BY -USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT -USE THE SOFTWARE. - -AS -DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE -TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED -SERVICES. - - - -If you comply with these license terms, you have the -rights below. - - - -1.   INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of -the software on your devices to design, develop and test your ASP.NET programs. - -2.   ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS.  - -a.    -Distributable Code. The software contains code that you are permitted to -distribute in programs you develop if you comply with the terms below. - -i.      Right to Use and Distribute. The code and -text files listed below are “Distributable Code.” - -·         -Redistributable -DLL Files.  You -may copy and distribute the object code form of the following files: - -§  -Microsoft.Web.Infrastructure.dll; - -§  -NuGet.Core.dll; - -§  -System.Web.Helpers.dll; - -§  -System.Web.Razor.dll; - -§  -System.Web.WebPages.Administration.dll; - -§  -System.Web.WebPages.Deployment.dll; - -§  -System.Web.WebPages.dll; - -§  -System.Web.WebPages.Razor.dll; - -§  -WebMatrix.Data.dll; - -§  -WebMatrix.WebData.dll. - -·         -Third Party Distribution.  You may -permit distributors of your programs to copy and distribute the Distributable -Code as part of those programs. - -ii.    -Distribution Requirements. For any -Distributable Code you distribute, you must - -·         -add significant primary -functionality to it in your programs; - -·         -require distributors and external -end users to agree to terms that protect it at least as much as this agreement; - - -·         -display your valid copyright -notice on your programs; and - -·         -indemnify, defend, and hold -harmless Microsoft from any claims, including attorneys’ fees, related to the -distribution or use of your programs. - -iii.   Distribution Restrictions. You may not - -·         -alter any copyright, trademark or -patent notice in the Distributable Code; - -·         -use Microsoft’s trademarks in your -programs’ names or in a way that suggests your programs come from or are -endorsed by Microsoft; - -·         -distribute Distributable Code to -run on a platform other than the Windows platform; - -·         -include Distributable Code in -malicious, deceptive or unlawful programs; or - -·         -modify or distribute the source -code of any Distributable Code so that any part of it becomes subject to an -Excluded License. An Excluded License is one that requires, as a condition of -use, modification or distribution, that - -·         -the code be disclosed or -distributed in source code form; or - -·         -others have the right to modify -it. - -3.   INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. -It may change or cancel them at any time. - -a.    -Consent for Internet-Based -Services. The software -feature described below connects to Microsoft -or service provider computer systems over the Internet. -In some cases, you will not receive a separate notice when they connect. You -may elect to not use it. For more information about this feature, see the -software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS -INFORMATION. Microsoft -does not use the information to identify or contact you. - -i.      -Computer Information. The following feature uses Internet protocols, which -send to the appropriate systems computer information, such as your Internet -protocol address, the type of operating system, browser and name and version of -the software you are using, and the language code of the device where you -installed the software. Microsoft or a third-party service provider uses this -information to make the Internet-based service available to you. - -A.    Open Data Protocol (OData) Service. This software will access a list of packages that is -supplied by means of an OData service online from Microsoft or a third-party -service provider. - -ii.    -Installing Packages and their Dependencies.  Please refer to the -“Package Manager Feature” section below for a description of this feature. - -iii.   -Use of Information. We or a third-party service provider may use the -computer information, to improve our or their software and services. We or they -may also share it with others, such as hardware and software vendors.  They may -use the information to improve how their products run with Microsoft software. - -b.    Misuse of Internet-based Services. You may not use this service in -any way that could harm it or impair anyone else’s use of it. You may not use -the service to try to gain unauthorized access to any service, data, account or -network by any means. - -4.   PACKAGE -MANAGER FEATURE.  This -software includes a package manager feature, which enables you to obtain other -software packages from other sources.  Those packages are offered and -distributed in some cases by third parties or in some cases by Microsoft, but -each such package is under its own license terms.  Microsoft is not -developing, distributing or licensing any of the third-party packages to you, -but instead, as a convenience, is providing you with this package manager -feature in order to access any packages for your own use.  By using this -package manager feature, you acknowledge and agree that you may be accessing -and using the third-party packages as distributed by such third parties and -under the separate license terms applicable to each package, including any -terms applicable to software dependencies that may be included in the package. -You acknowledge and agree that it is your responsibility to locate, understand -and comply with all applicable license terms for each package and its -dependencies, for example, by following the package source (feed) URL or by -reviewing the packages for embedded notices or license terms.  The package -manager feature may have been pre-set to a feed that is hosted by Microsoft or -a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669.  The packages listed on this feed may include packages submitted by third parties.  Microsoft -makes no representations, warranties or guarantees as to the feed URL, any -feeds from such URL, the information contained therein, or any packages -referenced in or accessed by you through such feeds. Microsoft grants you no -license rights for third-party software that is obtained using this feature or -from the feed.  You may change the feed URL that the package manager feature -initially points to at any time at your discretion. - -5.   THIRD PARTY NOTICES.  The package manager feature of the software includes -third party code. However, such code is licensed to you by Microsoft under this -license agreement, rather than licensed to you by any third party under some -other license terms.  Notices, if any, for the third party code are included -with this software for your information only. - -6.   Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·         -work around any technical -limitations in the software; - -·         -reverse engineer, decompile or -disassemble the software, except and only to the extent that applicable law -expressly permits, despite this limitation; - -·         -make more copies of the software -than specified in this agreement or allowed by applicable law, despite this -limitation; - -·         -publish the software for others to -copy; - -·         -rent, lease or lend the software; -or - -·         -transfer the software or this -agreement to any third party. - -7.   BACKUP COPY. You may make one backup copy of the software. You may -use it only to reinstall the software. - -8.   DOCUMENTATION. Any person that has valid access to your computer or -internal network may copy and use the documentation for your internal, reference -purposes. - -9.   Export -Restrictions. The software is subject to United States export laws -and regulations. You must comply with all domestic and international export -laws and regulations that apply to the software. These laws include -restrictions on destinations, end users and end use. For additional -information, see www.microsoft.com/exporting. - -10. SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -11. Entire -Agreement. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -12. Applicable -Law. - -a.   United States. If you acquired the software in the United States, -Washington state law governs the interpretation of this agreement and applies -to claims for breach of it, regardless of conflict of laws principles. The laws -of the state where you live govern all other claims, including claims under -state consumer protection laws, unfair competition laws, and in tort. - -b.   Outside the United States. If you acquired the software in any other country, -the laws of that country apply. - -13. Legal -Effect. This agreement describes -certain legal rights. You may have other rights under the laws of your country. -You may also have rights with respect to the party from whom you acquired the -software. This agreement does not change your rights under the laws of your -country if the laws of your country do not permit it to do so. - -14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED -“AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, -GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR -LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER -YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. -YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. +If you comply with these license terms, you have the rights below. +1. INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of the software on your devices to design, develop and test your ASP.NET programs. +2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. Distributable Code. The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below. +i. Right to Use and Distribute. The code and text files listed below are “Distributable Code.” +· Redistributable DLL Files. You may copy and distribute the object code form of the following files: +§ Microsoft.Web.Infrastructure.dll; +§ NuGet.Core.dll; +§ System.Web.Helpers.dll; +§ System.Web.Razor.dll; +§ System.Web.WebPages.Administration.dll; +§ System.Web.WebPages.Deployment.dll; +§ System.Web.WebPages.dll; +§ System.Web.WebPages.Razor.dll; +§ WebMatrix.Data.dll; +§ WebMatrix.WebData.dll. +· Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· add significant primary functionality to it in your programs; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; +· display your valid copyright notice on your programs; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. +iii. Distribution Restrictions. You may not +· alter any copyright, trademark or patent notice in the Distributable Code; +· use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; +· distribute Distributable Code to run on a platform other than the Windows platform; +· include Distributable Code in malicious, deceptive or unlawful programs; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that +· the code be disclosed or distributed in source code form; or +· others have the right to modify it. +3. INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. It may change or cancel them at any time. +a. Consent for Internet-Based Services. The software feature described below connects to Microsoft or service provider computer systems over the Internet. In some cases, you will not receive a separate notice when they connect. You may elect to not use it. For more information about this feature, see the software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS INFORMATION. Microsoft does not use the information to identify or contact you. +i. Computer Information. The following feature uses Internet protocols, which send to the appropriate systems computer information, such as your Internet protocol address, the type of operating system, browser and name and version of the software you are using, and the language code of the device where you installed the software. Microsoft or a third-party service provider uses this information to make the Internet-based service available to you. +A. Open Data Protocol (OData) Service. This software will access a list of packages that is supplied by means of an OData service online from Microsoft or a third-party service provider. +ii. Installing Packages and their Dependencies. Please refer to the “Package Manager Feature” section below for a description of this feature. +iii. Use of Information. We or a third-party service provider may use the computer information, to improve our or their software and services. We or they may also share it with others, such as hardware and software vendors. They may use the information to improve how their products run with Microsoft software. +b. Misuse of Internet-based Services. You may not use this service in any way that could harm it or impair anyone else’s use of it. You may not use the service to try to gain unauthorized access to any service, data, account or network by any means. +4. PACKAGE MANAGER FEATURE. This software includes a package manager feature, which enables you to obtain other software packages from other sources. Those packages are offered and distributed in some cases by third parties or in some cases by Microsoft, but each such package is under its own license terms. Microsoft is not developing, distributing or licensing any of the third-party packages to you, but instead, as a convenience, is providing you with this package manager feature in order to access any packages for your own use. By using this package manager feature, you acknowledge and agree that you may be accessing and using the third-party packages as distributed by such third parties and under the separate license terms applicable to each package, including any terms applicable to software dependencies that may be included in the package. You acknowledge and agree that it is your responsibility to locate, understand and comply with all applicable license terms for each package and its dependencies, for example, by following the package source (feed) URL or by reviewing the packages for embedded notices or license terms. The package manager feature may have been pre-set to a feed that is hosted by Microsoft or a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669. The packages listed on this feed may include packages submitted by third parties. Microsoft makes no representations, warranties or guarantees as to the feed URL, any feeds from such URL, the information contained therein, or any packages referenced in or accessed by you through such feeds. Microsoft grants you no license rights for third-party software that is obtained using this feature or from the feed. You may change the feed URL that the package manager feature initially points to at any time at your discretion. +5. THIRD PARTY NOTICES. The package manager feature of the software includes third party code. However, such code is licensed to you by Microsoft under this license agreement, rather than licensed to you by any third party under some other license terms. Notices, if any, for the third party code are included with this software for your information only. +6. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; or +· transfer the software or this agreement to any third party. +7. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +8. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +9. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +10. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +11. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +12. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +13. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to - -·         -anything related to the software, -services, content (including code) on third party Internet sites, or third -party programs; and - -·         -claims for breach of contract, -breach of warranty, guarantee or condition, strict liability, negligence, or -other tort to the extent permitted by applicable law. - -It also applies even if Microsoft knew or should have known about the -possibility of the damages. The above limitation or exclusion may not apply to -you because your country may not allow the exclusion or limitation of -incidental, consequential or other damages. - -*    *   *   *   * - -MICROSOFT -SOFTWARE LICENSE TERMS - - - +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. +* * * * * +MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT PACKAGE MANAGER FOR .NET - - - -These -license terms are an agreement between Microsoft Corporation (or based on where -you live, one of its affiliates) and you. Please read them. They apply to the -software named above, which includes the media on which you received it, if -any. The terms also apply to any Microsoft - -·      updates, - -·      supplements, - -·      Internet-based services, and - -·      support services - -for -this software, unless other terms accompany those items. If so, those terms -apply. - -BY -USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT -USE THE SOFTWARE. - -AS -DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE -TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED -SERVICES. - - - -If you comply with these license terms, you have the -rights below. - - - -1.   INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of -the software on your devices to design, develop and test your programs. - -2.   ADDITIONAL -LICENSING REQUIREMENTS AND/OR USE RIGHTS. - -a.    -Distributable Code. The software contains code that you are permitted to -distribute in programs you develop if you comply with the terms below. - -i.      Right to Use and Distribute. The code and -text files listed below are “Distributable Code.” - -·         -NuGet.Core.dll. You may copy and distribute the -object code form of NuGet.Core.dll. - -·         -Third Party -Distribution. You -may permit distributors of your programs to copy and distribute the -Distributable Code as part of those programs. - -ii.    -Distribution Requirements. For any Distributable Code you distribute, you must - -·         -add significant primary -functionality to it in your programs; - -·         -require distributors and external -end users to agree to terms that protect it at least as much as this agreement; - - -·         -display your valid copyright -notice on your programs; and - -·         -indemnify, defend, and hold -harmless Microsoft from any claims, including attorneys’ fees, related to the -distribution or use of your programs. - -iii.   Distribution Restrictions. You may not - -·         -alter any copyright, trademark or -patent notice in the Distributable Code; - -·         -use Microsoft’s trademarks in your -programs’ names or in a way that suggests your programs come from or are -endorsed by Microsoft; - -·         -distribute Distributable Code to -run on a platform other than the Windows platform; - -·         -include Distributable Code in -malicious, deceptive or unlawful programs; or - -·         -modify or distribute the source -code of any Distributable Code so that any part of it becomes subject to an -Excluded License. An Excluded License is one that requires, as a condition of -use, modification or distribution, that - -·         -the code be disclosed or -distributed in source code form; or - -·         -others have the right to modify -it. - -3.   INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. -It may change or cancel them at any time. - -a.    -Consent for Internet-Based -Services. The software -feature described below connects to Microsoft -or service provider computer systems over the Internet. -In some cases, you will not receive a separate notice when they connect. You -may elect to not use it. For more information about this feature, see the -software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS -INFORMATION. Microsoft -does not use the information to identify or contact you. - -i.      -Computer Information. The following feature uses Internet protocols, which -send to the appropriate systems computer information, such as your Internet -protocol address, the type of operating system, browser and name and version of -the software you are using, and the language code of the device where you -installed the software. Microsoft or a third-party service provider uses this -information to make the Internet-based service available to you. - -A.    Open Data Protocol (OData) Service. This software will access a list of packages that is -supplied by means of an OData service online from Microsoft or a third-party -service provider. - -ii.    -Installing Packages and their Dependencies.  Please refer to the -“Package Manager Feature” section below for a description of this feature. - -iii.   -Use of Information. We or a third-party service provider may use the -computer information, to improve our or their software and services. We or they -may also share it with others, such as hardware and software vendors.  They may -use the information to improve how their products run with Microsoft software. - -b.    Misuse of Internet-based Services. You may not use this service in -any way that could harm it or impair anyone else’s use of it. You may not use the -service to try to gain unauthorized access to any service, data, account or -network by any means. - -4.   PACKAGE -MANAGER FEATURE.  This -software includes a package manager feature, which enables you to obtain other -software packages from other sources.  Those packages are offered and -distributed in some cases by third parties or in some cases by Microsoft, but -each such package is under its own license terms.  Microsoft is not -developing, distributing or licensing any of the third-party packages to you, -but instead, as a convenience, is providing you with this package manager -feature in order to access any packages for your own use.  By using this -package manager feature, you acknowledge and agree that you may be accessing -and using the third-party packages as distributed by such third parties and -under the separate license terms applicable to each package, including any -terms applicable to software dependencies that may be included in the package. -You acknowledge and agree that it is your responsibility to locate, understand -and comply with all applicable license terms for each package and its -dependencies, for example, by following the package source (feed) URL or by -reviewing the packages for embedded notices or license terms.  The package -manager feature may have been pre-set to a feed that is hosted by Microsoft or -a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669.  The packages listed on this feed may include packages submitted by third parties.  Microsoft -makes no representations, warranties or guarantees as to the feed URL, any -feeds from such URL, the information contained therein, or any packages -referenced in or accessed by you through such feeds. Microsoft grants you no -license rights for third-party software that is obtained using this feature or -from the feed.  You may change the feed URL that the package manager feature -initially points to at any time at your discretion. - -5.   THIRD PARTY NOTICES.  The package manager feature of the software includes -third party code. However, such code is licensed to you by Microsoft under this -license agreement, rather than licensed to you by any third party under some -other license terms.  Notices, if any, for the third party code are included -with this software for your information only. - -6.   Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·      work around any technical limitations in the software; - -·      reverse engineer, decompile or disassemble the -software, except and only to the extent that applicable law expressly permits, -despite this limitation; - -·      make more copies of the software than specified in -this agreement or allowed by applicable law, despite this limitation; - -·      publish the software for others to copy; - -·      rent, lease or lend the software; or - -·      transfer the software or this agreement to any third -party. - -7.   BACKUP COPY. You may make one backup copy of the software. You may -use it only to reinstall the software. - -8.   DOCUMENTATION. Any person that has valid access to your computer or -internal network may copy and use the documentation for your internal, -reference purposes. - -9.   Export -Restrictions. The software is subject to United States export laws -and regulations. You must comply with all domestic and international export -laws and regulations that apply to the software. These laws include -restrictions on destinations, end users and end use. For additional -information, see www.microsoft.com/exporting. - -10. SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -11. Entire -Agreement. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -12. Applicable -Law. - -a.   United States. If you acquired the software in the United States, -Washington state law governs the interpretation of this agreement and applies -to claims for breach of it, regardless of conflict of laws principles. The laws -of the state where you live govern all other claims, including claims under -state consumer protection laws, unfair competition laws, and in tort. - -b.   Outside the United States. If you acquired the software in any other country, -the laws of that country apply. - -13. Legal -Effect. This agreement describes -certain legal rights. You may have other rights under the laws of your country. -You may also have rights with respect to the party from whom you acquired the -software. This agreement does not change your rights under the laws of your -country if the laws of your country do not permit it to do so. - -14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED -“AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, -GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR -LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER -YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. -YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. +If you comply with these license terms, you have the rights below. +1. INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of the software on your devices to design, develop and test your programs. +2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. Distributable Code. The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below. +i. Right to Use and Distribute. The code and text files listed below are “Distributable Code.” +· NuGet.Core.dll. You may copy and distribute the object code form of NuGet.Core.dll. +· Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· add significant primary functionality to it in your programs; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; +· display your valid copyright notice on your programs; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. +iii. Distribution Restrictions. You may not +· alter any copyright, trademark or patent notice in the Distributable Code; +· use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; +· distribute Distributable Code to run on a platform other than the Windows platform; +· include Distributable Code in malicious, deceptive or unlawful programs; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that +· the code be disclosed or distributed in source code form; or +· others have the right to modify it. +3. INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. It may change or cancel them at any time. +a. Consent for Internet-Based Services. The software feature described below connects to Microsoft or service provider computer systems over the Internet. In some cases, you will not receive a separate notice when they connect. You may elect to not use it. For more information about this feature, see the software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS INFORMATION. Microsoft does not use the information to identify or contact you. +i. Computer Information. The following feature uses Internet protocols, which send to the appropriate systems computer information, such as your Internet protocol address, the type of operating system, browser and name and version of the software you are using, and the language code of the device where you installed the software. Microsoft or a third-party service provider uses this information to make the Internet-based service available to you. +A. Open Data Protocol (OData) Service. This software will access a list of packages that is supplied by means of an OData service online from Microsoft or a third-party service provider. +ii. Installing Packages and their Dependencies. Please refer to the “Package Manager Feature” section below for a description of this feature. +iii. Use of Information. We or a third-party service provider may use the computer information, to improve our or their software and services. We or they may also share it with others, such as hardware and software vendors. They may use the information to improve how their products run with Microsoft software. +b. Misuse of Internet-based Services. You may not use this service in any way that could harm it or impair anyone else’s use of it. You may not use the service to try to gain unauthorized access to any service, data, account or network by any means. +4. PACKAGE MANAGER FEATURE. This software includes a package manager feature, which enables you to obtain other software packages from other sources. Those packages are offered and distributed in some cases by third parties or in some cases by Microsoft, but each such package is under its own license terms. Microsoft is not developing, distributing or licensing any of the third-party packages to you, but instead, as a convenience, is providing you with this package manager feature in order to access any packages for your own use. By using this package manager feature, you acknowledge and agree that you may be accessing and using the third-party packages as distributed by such third parties and under the separate license terms applicable to each package, including any terms applicable to software dependencies that may be included in the package. You acknowledge and agree that it is your responsibility to locate, understand and comply with all applicable license terms for each package and its dependencies, for example, by following the package source (feed) URL or by reviewing the packages for embedded notices or license terms. The package manager feature may have been pre-set to a feed that is hosted by Microsoft or a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669. The packages listed on this feed may include packages submitted by third parties. Microsoft makes no representations, warranties or guarantees as to the feed URL, any feeds from such URL, the information contained therein, or any packages referenced in or accessed by you through such feeds. Microsoft grants you no license rights for third-party software that is obtained using this feature or from the feed. You may change the feed URL that the package manager feature initially points to at any time at your discretion. +5. THIRD PARTY NOTICES. The package manager feature of the software includes third party code. However, such code is licensed to you by Microsoft under this license agreement, rather than licensed to you by any third party under some other license terms. Notices, if any, for the third party code are included with this software for your information only. +6. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; or +· transfer the software or this agreement to any third party. +7. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +8. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +9. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +10. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +11. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +12. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +13. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to - -·      anything related to the software, services, content -(including code) on third party Internet sites, or third party programs; and - -·      claims for breach of contract, breach of warranty, -guarantee or condition, strict liability, negligence, or other tort to the -extent permitted by applicable law. - -It also applies even if Microsoft knew or should have known about the -possibility of the damages. The above limitation or exclusion may not apply to -you because your country may not allow the exclusion or limitation of -incidental, consequential or other damages. - -*    *   *   *   * - -  - -MICROSOFT SOFTWARE LICENSE TERMS - -MICROSOFT SOFTWARE UPDATE TO VISUAL STUDIO, KB2483190 - -____________________________________________________________________________________ - -PLEASE -NOTE: Microsoft Corporation (or based -on where you live, one of its affiliates) licenses this supplement to you. You -may use it with each validly licensed copy of Microsoft Visual Studio 2010 or -Microsoft Windows operating system  software (for which this supplement is -applicable) (the “software”). You may not use the supplement if you do not have -a license for the software. The license terms for the software apply to your -use of this supplement. Microsoft provides support services for the supplement -as described at www.support.microsoft.com/common/international.aspx. +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. +* * * * * + MICROSOFT SOFTWARE LICENSE TERMS \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_af6b3133371278b4.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_af6b3133371278b4.verified.txt index 0c6a631b..165ba70e 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_af6b3133371278b4.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_af6b3133371278b4.verified.txt @@ -1,231 +1,43 @@ - - - - -MICROSOFT SOFTWARE LICENSE -TERMS - - - -MICROSOFT .NET -LIBRARY - - - -These -license terms are an agreement between you and Microsoft Corporation (or based -on where you live, one of its affiliates). They apply to the software named -above. The terms also apply to any Microsoft services or updates for the -software, except to the extent those have different terms. - - - -If -you comply with these license terms, you have the rights below. - - - -1.    INSTALLATION AND USE RIGHTS. - -You may -install and use any number of copies of the software to develop and test your applications.  - - -2.    -THIRD PARTY COMPONENTS. The software may include third party components with -separate legal notices or governed by other agreements, as may be described in -the ThirdPartyNotices file(s) accompanying the software. - -3.    -ADDITIONAL LICENSING -REQUIREMENTS AND/OR USE RIGHTS. - -a.     -DISTRIBUTABLE -CODE.  The software is -comprised of Distributable Code. “Distributable Code” is code that you are -permitted to distribute in applications you develop if you comply with the -terms below. - -i.      Right to Use and Distribute. - -·        -You may copy and distribute the object code form of the software. - -·        -Third Party Distribution. You may permit distributors of your applications -to copy and distribute the Distributable Code as part of those applications. - -ii.     Distribution Requirements. For any -Distributable Code you distribute, you must - -·        -use the Distributable Code in your applications and not as a -standalone distribution; - -·        -require distributors and external end users to agree to terms that -protect it at least as much as this agreement; and - -·        -indemnify, defend, and hold harmless Microsoft from any claims, -including attorneys’ fees, related to the distribution or use of your applications, -except to the extent that any claim is based solely on the unmodified Distributable -Code. - -iii.   Distribution Restrictions. You may not - -·        -use Microsoft’s trademarks in your applications’ names or in a way -that suggests your applications come from or are endorsed by Microsoft; or - -·        -modify or distribute the source code of any Distributable Code so -that any part of it becomes subject to an Excluded License. An “Excluded -License” is one that requires, as a condition of use, modification or -distribution of code, that (i) it be disclosed or distributed in source code -form; or (ii) others have the right to modify it. - -4.    -DATA. - -a.     -Data Collection. The software may collect -information about you and your use of the software, and send that to Microsoft. -Microsoft may use this information to provide services and improve our products -and services.  You may opt-out of many of these scenarios, but not all, as -described in the software documentation.  There are also some features in the software that may enable you and -Microsoft to collect data from users of your applications. If you use -these features, you must comply with applicable law, including providing -appropriate notices to users of your applications together with Microsoft’s -privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data -collection and its use from the software documentation and our privacy -statement. Your use of the software operates as your consent to these -practices. - -b.    -Processing of Personal Data. To the extent Microsoft is a -processor or subprocessor of personal data in connection with the software, -Microsoft makes the commitments in the European Union General Data Protection -Regulation Terms of the Online Services Terms to all customers effective May -25, 2018, at https://learn.microsoft.com/en-us/legal/gdpr. - -5.    -Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·        -work around any technical -limitations in the software; - -·        -reverse engineer, decompile or -disassemble the software, or otherwise attempt to derive the source code for -the software, except and to the extent required by third party licensing terms -governing use of certain open source components that may be included in the -software; - -·        -remove, minimize, block or modify -any notices of Microsoft or its suppliers in the software; - -·        -use the software in any way that -is against the law; or - -·        -share, publish, rent or lease the -software, provide the software as a stand-alone offering for others to use, or -transfer the software or this agreement to any third party. - -6.    -Export -Restrictions. You must comply with all domestic and international -export laws and regulations that apply to the software, which include -restrictions on destinations, end users, and end use. For further information -on export restrictions, visit www.microsoft.com/exporting. - -7.    -SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -8.    -Entire -Agreement. This -agreement, and the terms for supplements, updates, Internet-based services and -support services that you use, are the entire agreement for the software and -support services. - -9.    Applicable Law.  If you acquired the software in the United States, Washington law -applies to interpretation of and claims for breach of this agreement, and the -laws of the state where you live apply to all other claims. If you acquired the -software in any other country, its laws apply. - -10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You -may have other rights, including consumer rights, under the laws of your state -or country. Separate and apart from your relationship with Microsoft, you may -also have rights with respect to the party from which you acquired the -software. This agreement does not change those other rights if the laws of your -state or country do not permit it to do so. For example, if you acquired the -software in one of the below regions, or mandatory country law applies, then -the following provisions apply to you: - -a)    Australia. You have statutory guarantees under the Australian Consumer -Law and nothing in this agreement is intended to affect those rights. - -b)    Canada. If you acquired this software in Canada, you may stop -receiving updates by turning off the automatic update feature, disconnecting -your device from the Internet (if and when you re-connect to the Internet, -however, the software will resume checking for and installing updates), or uninstalling -the software. The product documentation, if any, may also specify how to turn -off updates for your specific device or software. - -c)    Germany and Austria. - -(i)        Warranty. The software will perform -substantially as described in any Microsoft materials that accompany it. -However, Microsoft gives no contractual guarantee in relation to the software. - -(ii)       Limitation of Liability. In case of -intentional conduct, gross negligence, claims based on the Product Liability -Act, as well as in case of death or personal or physical injury, Microsoft is -liable according to the statutory law. - -Subject to the foregoing clause (ii), Microsoft will only -be liable for slight negligence if Microsoft is in breach of such material -contractual obligations, the fulfillment of which facilitate the due -performance of this agreement, the breach of which would endanger the purpose -of this agreement and the compliance with which a party may constantly trust in -(so-called "cardinal obligations"). In other cases of slight negligence, -Microsoft will not be liable for slight negligence - -11. Disclaimer of Warranty. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK -OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. -TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED -WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NON-INFRINGEMENT. - -12. -Limitation -on and Exclusion of Remedies and Damages. YOU -CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - -This limitation applies to (a) -anything related to the software, services, content (including code) on third -party Internet sites, or third party applications; and (b) claims for breach of -contract, breach of warranty, guarantee or condition, strict liability, -negligence, or other tort to the extent permitted by applicable law. - -It -also applies even if Microsoft knew or should have known about the possibility -of the damages. The above limitation or exclusion may not apply to you because -your state or country may not allow the exclusion or limitation of incidental, -consequential or other damages. +MICROSOFT SOFTWARE LICENSE TERMS +MICROSOFT .NET LIBRARY +These license terms are an agreement between you and Microsoft Corporation (or based on where you live, one of its affiliates). They apply to the software named above. The terms also apply to any Microsoft services or updates for the software, except to the extent those have different terms. +IF YOU COMPLY WITH THESE LICENSE TERMS, YOU HAVE THE RIGHTS BELOW. +1. INSTALLATION AND USE RIGHTS. +You may install and use any number of copies of the software to develop and test your applications. +2. THIRD PARTY COMPONENTS. The software may include third party components with separate legal notices or governed by other agreements, as may be described in the ThirdPartyNotices file(s) accompanying the software. +3. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. DISTRIBUTABLE CODE. The software is comprised of Distributable Code. “Distributable Code” is code that you are permitted to distribute in applications you develop if you comply with the terms below. +i. Right to Use and Distribute. +· You may copy and distribute the object code form of the software. +· Third Party Distribution. You may permit distributors of your applications to copy and distribute the Distributable Code as part of those applications. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· use the Distributable Code in your applications and not as a standalone distribution; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your applications, except to the extent that any claim is based solely on the unmodified Distributable Code. +iii. Distribution Restrictions. You may not +· use Microsoft’s trademarks in your applications’ names or in a way that suggests your applications come from or are endorsed by Microsoft; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An “Excluded License” is one that requires, as a condition of use, modification or distribution of code, that (i) it be disclosed or distributed in source code form; or (ii) others have the right to modify it. +4. DATA. +a. Data Collection. The software may collect information about you and your use of the software, and send that to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may opt-out of many of these scenarios, but not all, as described in the software documentation. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and its use from the software documentation and our privacy statement. Your use of the software operates as your consent to these practices. +b. Processing of Personal Data. To the extent Microsoft is a processor or subprocessor of personal data in connection with the software, Microsoft makes the commitments in the European Union General Data Protection Regulation Terms of the Online Services Terms to all customers effective May 25, 2018, at https://learn.microsoft.com/en-us/legal/gdpr. +5. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, or otherwise attempt to derive the source code for the software, except and to the extent required by third party licensing terms governing use of certain open source components that may be included in the software; +· remove, minimize, block or modify any notices of Microsoft or its suppliers in the software; +· use the software in any way that is against the law; or +· share, publish, rent or lease the software, provide the software as a stand-alone offering for others to use, or transfer the software or this agreement to any third party. +6. EXPORT RESTRICTIONS. You must comply with all domestic and international export laws and regulations that apply to the software, which include restrictions on destinations, end users, and end use. For further information on export restrictions, visit www.microsoft.com/exporting. +7. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +8. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +9. APPLICABLE LAW. If you acquired the software in the United States, Washington law applies to interpretation of and claims for breach of this agreement, and the laws of the state where you live apply to all other claims. If you acquired the software in any other country, its laws apply. +10. CONSUMER RIGHTS; REGIONAL VARIATIONS. This agreement describes certain legal rights. You may have other rights, including consumer rights, under the laws of your state or country. Separate and apart from your relationship with Microsoft, you may also have rights with respect to the party from which you acquired the software. This agreement does not change those other rights if the laws of your state or country do not permit it to do so. For example, if you acquired the software in one of the below regions, or mandatory country law applies, then the following provisions apply to you: +a) Australia. You have statutory guarantees under the Australian Consumer Law and nothing in this agreement is intended to affect those rights. +b) Canada. If you acquired this software in Canada, you may stop receiving updates by turning off the automatic update feature, disconnecting your device from the Internet (if and when you re-connect to the Internet, however, the software will resume checking for and installing updates), or uninstalling the software. The product documentation, if any, may also specify how to turn off updates for your specific device or software. +c) Germany and Austria. +(i) Warranty. The software will perform substantially as described in any Microsoft materials that accompany it. However, Microsoft gives no contractual guarantee in relation to the software. +(ii) Limitation of Liability. In case of intentional conduct, gross negligence, claims based on the Product Liability Act, as well as in case of death or personal or physical injury, Microsoft is liable according to the statutory law. +Subject to the foregoing clause (ii), Microsoft will only be liable for slight negligence if Microsoft is in breach of such material contractual obligations, the fulfillment of which facilitate the due performance of this agreement, the breach of which would endanger the purpose of this agreement and the compliance with which a party may constantly trust in (so-called "cardinal obligations"). In other cases of slight negligence, Microsoft will not be liable for slight negligence +11. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +12. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. +This limitation applies to (a) anything related to the software, services, content (including code) on third party Internet sites, or third party applications; and (b) claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state or country may not allow the exclusion or limitation of incidental, consequential or other damages. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_b1be5a7303cd1845.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_b1be5a7303cd1845.verified.txt index 5f282702..1fcf2661 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_b1be5a7303cd1845.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_b1be5a7303cd1845.verified.txt @@ -1 +1,4 @@ - \ No newline at end of file +Copyright +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 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. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_dacc9e1876bd896e.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_dacc9e1876bd896e.verified.txt index 5f282702..0b8bb865 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_dacc9e1876bd896e.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_dacc9e1876bd896e.verified.txt @@ -1 +1,201 @@ - \ No newline at end of file + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_f5509440f5d1de5e.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_f5509440f5d1de5e.verified.txt index 0e6edd2c..6f3f54ce 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_f5509440f5d1de5e.verified.txt +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_f5509440f5d1de5e.verified.txt @@ -1,899 +1,188 @@ - - - - -This installation contains the following software, the -license terms of each of which are included below: - -·         -Microsoft ASP.NET -Model View Controller 3 Tools Update - -·         -Microsoft ASP.NET -Web Pages - -·         -Microsoft Package -Manager for .NET - -·         -Microsoft -software update to Visual Studio, KB2483190 - -MICROSOFT -SOFTWARE LICENSE TERMS - - - +MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT ASP.NET MODEL VIEW CONTROLLER 3 TOOLS UPDATE - - - -These -license terms are an agreement between Microsoft Corporation (or based on where -you live, one of its affiliates) and you. Please read them. They apply to the -software named above, which includes the media on which you received it, if -any. The terms also apply to any Microsoft - -·         -updates, - -·         -supplements, - -·         -Internet-based services, and - -·         -support services - -for -this software, unless other terms accompany those items. If so, those terms -apply. - -BY -USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT -USE THE SOFTWARE. - - - -If you comply with these license terms, you have the -rights below. - - - -1.   INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of -the software on your devices to design, develop and test your ASP.NET programs.  -You may modify, copy, and distribute or deploy any .js files contained in the -software as part of your ASP.NET programs. - -2.   ADDITIONAL LICENSING REQUIREMENTS -AND/OR USE RIGHTS. - -a.    -Distributable Code. In addition -to the .js files described above, the software contains code that you are -permitted to distribute in ASP.NET programs you develop if you comply with the -terms below. - -i.      Right to Use and Distribute. The code and -text files listed below are “Distributable Code.” - -·         -System.Web.Mvc.dll.  You may copy and distribute the object code form -of System.Web.Mvc.dll. - -·         -Third Party -Distribution.  You -may permit distributors of your programs to copy and distribute the -Distributable Code as part of those programs. - -ii.    -Distribution Requirements. For any Distributable Code you distribute, you must - -·         -add significant primary -functionality to it in your programs; - -·         -require distributors and external -end users to agree to terms that protect it at least as much as this agreement; - - -·         -display your valid copyright -notice on your programs; and - -·         -indemnify, defend, and hold -harmless Microsoft from any claims, including attorneys’ fees, related to the -distribution or use of your programs. - -iii.   Distribution Restrictions. You may not - -·         -alter any copyright, trademark or -patent notice in the Distributable Code; - -·         -use Microsoft’s trademarks in your -programs’ names or in a way that suggests your programs come from or are -endorsed by Microsoft; - -·         -distribute Distributable Code to -run on a platform other than the Windows platform; - -·         -include Distributable Code in -malicious, deceptive or unlawful programs; or - -·         -modify or distribute the source -code of any Distributable Code so that any part of it becomes subject to an -Excluded License. An Excluded License is one that requires, as a condition of -use, modification or distribution, that - -·         -the code be disclosed or -distributed in source code form; or - -·         -others have the right to modify -it. - -3.   THIRD PARTY NOTICES.  The software may include third party code that Microsoft, not the -third party, licenses to you under this agreement. Notices, if any, for the -third party code are included for your information only. Microsoft’s service -and support obligations, if any, apply only to the unmodified third party code running -on ASP.NET. - -4.   Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·         -work around any technical -limitations in the software; - -·         -reverse engineer, decompile or -disassemble the software, except and only to the extent that applicable law -expressly permits, despite this limitation; - -·         -make more copies of the software -than specified in this agreement or allowed by applicable law, despite this -limitation; - -·         -publish the software for others to -copy; - -·         -rent, lease or lend the software; -or - -·         -transfer the software or this -agreement to any third party. - -5.   BACKUP COPY. You may make one backup copy of the software. You may -use it only to reinstall the software. - -6.   DOCUMENTATION. Any person that has valid access to your computer or -internal network may copy and use the documentation for your internal, reference -purposes. - -7.   Export -Restrictions. The software is subject to United States export laws -and regulations. You must comply with all domestic and international export -laws and regulations that apply to the software. These laws include -restrictions on destinations, end users and end use. For additional -information, see www.microsoft.com/exporting. - -8.   SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -9.   Entire -Agreement. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -10. Applicable -Law. - -a.   United States. If you acquired the software in the United States, -Washington state law governs the interpretation of this agreement and applies -to claims for breach of it, regardless of conflict of laws principles. The laws -of the state where you live govern all other claims, including claims under -state consumer protection laws, unfair competition laws, and in tort. - -b.   Outside the United States. If you acquired the software in any other country, -the laws of that country apply. - -11. Legal -Effect. This agreement describes -certain legal rights. You may have other rights under the laws of your country. -You may also have rights with respect to the party from whom you acquired the -software. This agreement does not change your rights under the laws of your -country if the laws of your country do not permit it to do so. - -12. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED -“AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, -GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR -LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER -YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -13. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. -YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +If you comply with these license terms, you have the rights below. +1. INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of the software on your devices to design, develop and test your ASP.NET programs. You may modify, copy, and distribute or deploy any .js files contained in the software as part of your ASP.NET programs. +2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. Distributable Code. In addition to the .js files described above, the software contains code that you are permitted to distribute in ASP.NET programs you develop if you comply with the terms below. +i. Right to Use and Distribute. The code and text files listed below are “Distributable Code.” +· System.Web.Mvc.dll. You may copy and distribute the object code form of System.Web.Mvc.dll. +· Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· add significant primary functionality to it in your programs; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; +· display your valid copyright notice on your programs; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. +iii. Distribution Restrictions. You may not +· alter any copyright, trademark or patent notice in the Distributable Code; +· use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; +· distribute Distributable Code to run on a platform other than the Windows platform; +· include Distributable Code in malicious, deceptive or unlawful programs; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that +· the code be disclosed or distributed in source code form; or +· others have the right to modify it. +3. THIRD PARTY NOTICES. The software may include third party code that Microsoft, not the third party, licenses to you under this agreement. Notices, if any, for the third party code are included for your information only. Microsoft’s service and support obligations, if any, apply only to the unmodified third party code running on ASP.NET. +4. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; or +· transfer the software or this agreement to any third party. +5. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +6. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +7. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +8. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +9. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +10. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +11. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +12. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +13. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to - -·         -anything related to the software, -services, content (including code) on third party Internet sites, or third -party programs; and - -·         -claims for breach of contract, -breach of warranty, guarantee or condition, strict liability, negligence, or -other tort to the extent permitted by applicable law. - -It also applies even if Microsoft knew or should have -known about the possibility of the damages. The above limitation or exclusion -may not apply to you because your country may not allow the exclusion or -limitation of incidental, consequential or other damages. - -  - -*    *   *   *   * - -MICROSOFT -SOFTWARE LICENSE TERMS - - - +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. + * * * * * +MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT ASP.NET WEB PAGES - - - -These -license terms are an agreement between Microsoft Corporation (or based on where -you live, one of its affiliates) and you. Please read them. They apply to the -software named above, which includes the media on which you received it, if -any. The terms also apply to any Microsoft - -·         -updates, - -·         -supplements, - -·         -Internet-based services, and - -·         -support services - -for -this software, unless other terms accompany those items. If so, those terms -apply. - -BY -USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT -USE THE SOFTWARE. - -AS -DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE -TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED -SERVICES. - - - -If you comply with these license terms, you have the -rights below. - - - -1.   INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of -the software on your devices to design, develop and test your ASP.NET programs. - -2.   ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS.  - -a.    -Distributable Code. The software contains code that you are permitted to -distribute in programs you develop if you comply with the terms below. - -i.      Right to Use and Distribute. The code and -text files listed below are “Distributable Code.” - -·         -Redistributable -DLL Files.  You -may copy and distribute the object code form of the following files: - -§  -Microsoft.Web.Infrastructure.dll; - -§  -NuGet.Core.dll; - -§  -System.Web.Helpers.dll; - -§  -System.Web.Razor.dll; - -§  -System.Web.WebPages.Administration.dll; - -§  -System.Web.WebPages.Deployment.dll; - -§  -System.Web.WebPages.dll; - -§  -System.Web.WebPages.Razor.dll; - -§  -WebMatrix.Data.dll; - -§  -WebMatrix.WebData.dll. - -·         -Third Party Distribution.  You may -permit distributors of your programs to copy and distribute the Distributable -Code as part of those programs. - -ii.    -Distribution Requirements. For any -Distributable Code you distribute, you must - -·         -add significant primary -functionality to it in your programs; - -·         -require distributors and external -end users to agree to terms that protect it at least as much as this agreement; - - -·         -display your valid copyright -notice on your programs; and - -·         -indemnify, defend, and hold -harmless Microsoft from any claims, including attorneys’ fees, related to the -distribution or use of your programs. - -iii.   Distribution Restrictions. You may not - -·         -alter any copyright, trademark or -patent notice in the Distributable Code; - -·         -use Microsoft’s trademarks in your -programs’ names or in a way that suggests your programs come from or are -endorsed by Microsoft; - -·         -distribute Distributable Code to -run on a platform other than the Windows platform; - -·         -include Distributable Code in -malicious, deceptive or unlawful programs; or - -·         -modify or distribute the source -code of any Distributable Code so that any part of it becomes subject to an -Excluded License. An Excluded License is one that requires, as a condition of -use, modification or distribution, that - -·         -the code be disclosed or -distributed in source code form; or - -·         -others have the right to modify -it. - -3.   INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. -It may change or cancel them at any time. - -a.    -Consent for Internet-Based -Services. The software -feature described below connects to Microsoft -or service provider computer systems over the Internet. -In some cases, you will not receive a separate notice when they connect. You -may elect to not use it. For more information about this feature, see the -software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS -INFORMATION. Microsoft -does not use the information to identify or contact you. - -i.      -Computer Information. The following feature uses Internet protocols, which -send to the appropriate systems computer information, such as your Internet -protocol address, the type of operating system, browser and name and version of -the software you are using, and the language code of the device where you -installed the software. Microsoft or a third-party service provider uses this -information to make the Internet-based service available to you. - -A.    Open Data Protocol (OData) Service. This software will access a list of packages that is -supplied by means of an OData service online from Microsoft or a third-party -service provider. - -ii.    -Installing Packages and their Dependencies.  Please refer to the -“Package Manager Feature” section below for a description of this feature. - -iii.   -Use of Information. We or a third-party service provider may use the -computer information, to improve our or their software and services. We or they -may also share it with others, such as hardware and software vendors.  They may -use the information to improve how their products run with Microsoft software. - -b.    Misuse of Internet-based Services. You may not use this service in -any way that could harm it or impair anyone else’s use of it. You may not use -the service to try to gain unauthorized access to any service, data, account or -network by any means. - -4.   PACKAGE -MANAGER FEATURE.  This -software includes a package manager feature, which enables you to obtain other -software packages from other sources.  Those packages are offered and -distributed in some cases by third parties or in some cases by Microsoft, but -each such package is under its own license terms.  Microsoft is not -developing, distributing or licensing any of the third-party packages to you, -but instead, as a convenience, is providing you with this package manager -feature in order to access any packages for your own use.  By using this -package manager feature, you acknowledge and agree that you may be accessing -and using the third-party packages as distributed by such third parties and -under the separate license terms applicable to each package, including any -terms applicable to software dependencies that may be included in the package. -You acknowledge and agree that it is your responsibility to locate, understand -and comply with all applicable license terms for each package and its -dependencies, for example, by following the package source (feed) URL or by -reviewing the packages for embedded notices or license terms.  The package -manager feature may have been pre-set to a feed that is hosted by Microsoft or -a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669.  The packages listed on this feed may include packages submitted by third parties.  Microsoft -makes no representations, warranties or guarantees as to the feed URL, any -feeds from such URL, the information contained therein, or any packages -referenced in or accessed by you through such feeds. Microsoft grants you no -license rights for third-party software that is obtained using this feature or -from the feed.  You may change the feed URL that the package manager feature -initially points to at any time at your discretion. - -5.   THIRD PARTY NOTICES.  The package manager feature of the software includes -third party code. However, such code is licensed to you by Microsoft under this -license agreement, rather than licensed to you by any third party under some -other license terms.  Notices, if any, for the third party code are included -with this software for your information only. - -6.   Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·         -work around any technical -limitations in the software; - -·         -reverse engineer, decompile or -disassemble the software, except and only to the extent that applicable law -expressly permits, despite this limitation; - -·         -make more copies of the software -than specified in this agreement or allowed by applicable law, despite this -limitation; - -·         -publish the software for others to -copy; - -·         -rent, lease or lend the software; -or - -·         -transfer the software or this -agreement to any third party. - -7.   BACKUP COPY. You may make one backup copy of the software. You may -use it only to reinstall the software. - -8.   DOCUMENTATION. Any person that has valid access to your computer or -internal network may copy and use the documentation for your internal, reference -purposes. - -9.   Export -Restrictions. The software is subject to United States export laws -and regulations. You must comply with all domestic and international export -laws and regulations that apply to the software. These laws include -restrictions on destinations, end users and end use. For additional -information, see www.microsoft.com/exporting. - -10. SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -11. Entire -Agreement. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -12. Applicable -Law. - -a.   United States. If you acquired the software in the United States, -Washington state law governs the interpretation of this agreement and applies -to claims for breach of it, regardless of conflict of laws principles. The laws -of the state where you live govern all other claims, including claims under -state consumer protection laws, unfair competition laws, and in tort. - -b.   Outside the United States. If you acquired the software in any other country, -the laws of that country apply. - -13. Legal -Effect. This agreement describes -certain legal rights. You may have other rights under the laws of your country. -You may also have rights with respect to the party from whom you acquired the -software. This agreement does not change your rights under the laws of your -country if the laws of your country do not permit it to do so. - -14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED -“AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, -GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR -LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER -YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. -YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. +If you comply with these license terms, you have the rights below. +1. INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of the software on your devices to design, develop and test your ASP.NET programs. +2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. Distributable Code. The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below. +i. Right to Use and Distribute. The code and text files listed below are “Distributable Code.” +· Redistributable DLL Files. You may copy and distribute the object code form of the following files: +§ Microsoft.Web.Infrastructure.dll; +§ NuGet.Core.dll; +§ System.Web.Helpers.dll; +§ System.Web.Razor.dll; +§ System.Web.WebPages.Administration.dll; +§ System.Web.WebPages.Deployment.dll; +§ System.Web.WebPages.dll; +§ System.Web.WebPages.Razor.dll; +§ WebMatrix.Data.dll; +§ WebMatrix.WebData.dll. +· Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· add significant primary functionality to it in your programs; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; +· display your valid copyright notice on your programs; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. +iii. Distribution Restrictions. You may not +· alter any copyright, trademark or patent notice in the Distributable Code; +· use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; +· distribute Distributable Code to run on a platform other than the Windows platform; +· include Distributable Code in malicious, deceptive or unlawful programs; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that +· the code be disclosed or distributed in source code form; or +· others have the right to modify it. +3. INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. It may change or cancel them at any time. +a. Consent for Internet-Based Services. The software feature described below connects to Microsoft or service provider computer systems over the Internet. In some cases, you will not receive a separate notice when they connect. You may elect to not use it. For more information about this feature, see the software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS INFORMATION. Microsoft does not use the information to identify or contact you. +i. Computer Information. The following feature uses Internet protocols, which send to the appropriate systems computer information, such as your Internet protocol address, the type of operating system, browser and name and version of the software you are using, and the language code of the device where you installed the software. Microsoft or a third-party service provider uses this information to make the Internet-based service available to you. +A. Open Data Protocol (OData) Service. This software will access a list of packages that is supplied by means of an OData service online from Microsoft or a third-party service provider. +ii. Installing Packages and their Dependencies. Please refer to the “Package Manager Feature” section below for a description of this feature. +iii. Use of Information. We or a third-party service provider may use the computer information, to improve our or their software and services. We or they may also share it with others, such as hardware and software vendors. They may use the information to improve how their products run with Microsoft software. +b. Misuse of Internet-based Services. You may not use this service in any way that could harm it or impair anyone else’s use of it. You may not use the service to try to gain unauthorized access to any service, data, account or network by any means. +4. PACKAGE MANAGER FEATURE. This software includes a package manager feature, which enables you to obtain other software packages from other sources. Those packages are offered and distributed in some cases by third parties or in some cases by Microsoft, but each such package is under its own license terms. Microsoft is not developing, distributing or licensing any of the third-party packages to you, but instead, as a convenience, is providing you with this package manager feature in order to access any packages for your own use. By using this package manager feature, you acknowledge and agree that you may be accessing and using the third-party packages as distributed by such third parties and under the separate license terms applicable to each package, including any terms applicable to software dependencies that may be included in the package. You acknowledge and agree that it is your responsibility to locate, understand and comply with all applicable license terms for each package and its dependencies, for example, by following the package source (feed) URL or by reviewing the packages for embedded notices or license terms. The package manager feature may have been pre-set to a feed that is hosted by Microsoft or a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669. The packages listed on this feed may include packages submitted by third parties. Microsoft makes no representations, warranties or guarantees as to the feed URL, any feeds from such URL, the information contained therein, or any packages referenced in or accessed by you through such feeds. Microsoft grants you no license rights for third-party software that is obtained using this feature or from the feed. You may change the feed URL that the package manager feature initially points to at any time at your discretion. +5. THIRD PARTY NOTICES. The package manager feature of the software includes third party code. However, such code is licensed to you by Microsoft under this license agreement, rather than licensed to you by any third party under some other license terms. Notices, if any, for the third party code are included with this software for your information only. +6. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; or +· transfer the software or this agreement to any third party. +7. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +8. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +9. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +10. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +11. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +12. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +13. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to - -·         -anything related to the software, -services, content (including code) on third party Internet sites, or third -party programs; and - -·         -claims for breach of contract, -breach of warranty, guarantee or condition, strict liability, negligence, or -other tort to the extent permitted by applicable law. - -It also applies even if Microsoft knew or should have known about the -possibility of the damages. The above limitation or exclusion may not apply to -you because your country may not allow the exclusion or limitation of -incidental, consequential or other damages. - -*    *   *   *   * - -MICROSOFT -SOFTWARE LICENSE TERMS - - - +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. +* * * * * +MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT PACKAGE MANAGER FOR .NET - - - -These -license terms are an agreement between Microsoft Corporation (or based on where -you live, one of its affiliates) and you. Please read them. They apply to the -software named above, which includes the media on which you received it, if -any. The terms also apply to any Microsoft - -·      updates, - -·      supplements, - -·      Internet-based services, and - -·      support services - -for -this software, unless other terms accompany those items. If so, those terms -apply. - -BY -USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT -USE THE SOFTWARE. - -AS -DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE -TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED -SERVICES. - - - -If you comply with these license terms, you have the -rights below. - - - -1.   INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of -the software on your devices to design, develop and test your programs. - -2.   ADDITIONAL -LICENSING REQUIREMENTS AND/OR USE RIGHTS. - -a.    -Distributable Code. The software contains code that you are permitted to -distribute in programs you develop if you comply with the terms below. - -i.      Right to Use and Distribute. The code and -text files listed below are “Distributable Code.” - -·         -NuGet.Core.dll. You may copy and distribute the -object code form of NuGet.Core.dll. - -·         -Third Party -Distribution. You -may permit distributors of your programs to copy and distribute the -Distributable Code as part of those programs. - -ii.    -Distribution Requirements. For any Distributable Code you distribute, you must - -·         -add significant primary -functionality to it in your programs; - -·         -require distributors and external -end users to agree to terms that protect it at least as much as this agreement; - - -·         -display your valid copyright -notice on your programs; and - -·         -indemnify, defend, and hold -harmless Microsoft from any claims, including attorneys’ fees, related to the -distribution or use of your programs. - -iii.   Distribution Restrictions. You may not - -·         -alter any copyright, trademark or -patent notice in the Distributable Code; - -·         -use Microsoft’s trademarks in your -programs’ names or in a way that suggests your programs come from or are -endorsed by Microsoft; - -·         -distribute Distributable Code to -run on a platform other than the Windows platform; - -·         -include Distributable Code in -malicious, deceptive or unlawful programs; or - -·         -modify or distribute the source -code of any Distributable Code so that any part of it becomes subject to an -Excluded License. An Excluded License is one that requires, as a condition of -use, modification or distribution, that - -·         -the code be disclosed or -distributed in source code form; or - -·         -others have the right to modify -it. - -3.   INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. -It may change or cancel them at any time. - -a.    -Consent for Internet-Based -Services. The software -feature described below connects to Microsoft -or service provider computer systems over the Internet. -In some cases, you will not receive a separate notice when they connect. You -may elect to not use it. For more information about this feature, see the -software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS -INFORMATION. Microsoft -does not use the information to identify or contact you. - -i.      -Computer Information. The following feature uses Internet protocols, which -send to the appropriate systems computer information, such as your Internet -protocol address, the type of operating system, browser and name and version of -the software you are using, and the language code of the device where you -installed the software. Microsoft or a third-party service provider uses this -information to make the Internet-based service available to you. - -A.    Open Data Protocol (OData) Service. This software will access a list of packages that is -supplied by means of an OData service online from Microsoft or a third-party -service provider. - -ii.    -Installing Packages and their Dependencies.  Please refer to the -“Package Manager Feature” section below for a description of this feature. - -iii.   -Use of Information. We or a third-party service provider may use the -computer information, to improve our or their software and services. We or they -may also share it with others, such as hardware and software vendors.  They may -use the information to improve how their products run with Microsoft software. - -b.    Misuse of Internet-based Services. You may not use this service in -any way that could harm it or impair anyone else’s use of it. You may not use the -service to try to gain unauthorized access to any service, data, account or -network by any means. - -4.   PACKAGE -MANAGER FEATURE.  This -software includes a package manager feature, which enables you to obtain other -software packages from other sources.  Those packages are offered and -distributed in some cases by third parties or in some cases by Microsoft, but -each such package is under its own license terms.  Microsoft is not -developing, distributing or licensing any of the third-party packages to you, -but instead, as a convenience, is providing you with this package manager -feature in order to access any packages for your own use.  By using this -package manager feature, you acknowledge and agree that you may be accessing -and using the third-party packages as distributed by such third parties and -under the separate license terms applicable to each package, including any -terms applicable to software dependencies that may be included in the package. -You acknowledge and agree that it is your responsibility to locate, understand -and comply with all applicable license terms for each package and its -dependencies, for example, by following the package source (feed) URL or by -reviewing the packages for embedded notices or license terms.  The package -manager feature may have been pre-set to a feed that is hosted by Microsoft or -a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669.  The packages listed on this feed may include packages submitted by third parties.  Microsoft -makes no representations, warranties or guarantees as to the feed URL, any -feeds from such URL, the information contained therein, or any packages -referenced in or accessed by you through such feeds. Microsoft grants you no -license rights for third-party software that is obtained using this feature or -from the feed.  You may change the feed URL that the package manager feature -initially points to at any time at your discretion. - -5.   THIRD PARTY NOTICES.  The package manager feature of the software includes -third party code. However, such code is licensed to you by Microsoft under this -license agreement, rather than licensed to you by any third party under some -other license terms.  Notices, if any, for the third party code are included -with this software for your information only. - -6.   Scope of -License. The software is licensed, not sold. This agreement -only gives you some rights to use the software. Microsoft reserves all other -rights. Unless applicable law gives you more rights despite this limitation, -you may use the software only as expressly permitted in this agreement. In -doing so, you must comply with any technical limitations in the software that -only allow you to use it in certain ways. You may not - -·      work around any technical limitations in the software; - -·      reverse engineer, decompile or disassemble the -software, except and only to the extent that applicable law expressly permits, -despite this limitation; - -·      make more copies of the software than specified in -this agreement or allowed by applicable law, despite this limitation; - -·      publish the software for others to copy; - -·      rent, lease or lend the software; or - -·      transfer the software or this agreement to any third -party. - -7.   BACKUP COPY. You may make one backup copy of the software. You may -use it only to reinstall the software. - -8.   DOCUMENTATION. Any person that has valid access to your computer or -internal network may copy and use the documentation for your internal, -reference purposes. - -9.   Export -Restrictions. The software is subject to United States export laws -and regulations. You must comply with all domestic and international export -laws and regulations that apply to the software. These laws include -restrictions on destinations, end users and end use. For additional -information, see www.microsoft.com/exporting. - -10. SUPPORT -SERVICES. Because this software is “as is,” we may not provide -support services for it. - -11. Entire -Agreement. This agreement, and the -terms for supplements, updates, Internet-based services and support services -that you use, are the entire agreement for the software and support services. - -12. Applicable -Law. - -a.   United States. If you acquired the software in the United States, -Washington state law governs the interpretation of this agreement and applies -to claims for breach of it, regardless of conflict of laws principles. The laws -of the state where you live govern all other claims, including claims under -state consumer protection laws, unfair competition laws, and in tort. - -b.   Outside the United States. If you acquired the software in any other country, -the laws of that country apply. - -13. Legal -Effect. This agreement describes -certain legal rights. You may have other rights under the laws of your country. -You may also have rights with respect to the party from whom you acquired the -software. This agreement does not change your rights under the laws of your -country if the laws of your country do not permit it to do so. - -14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED -“AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, -GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR -LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER -YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - -15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. -YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. -$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST -PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. - +These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft +· updates, +· supplements, +· Internet-based services, and +· support services +for this software, unless other terms accompany those items. If so, those terms apply. +BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE. +AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. +If you comply with these license terms, you have the rights below. +1. INSTALLATION AND USE RIGHTS. One user may install and use any number of copies of the software on your devices to design, develop and test your programs. +2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS. +a. Distributable Code. The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below. +i. Right to Use and Distribute. The code and text files listed below are “Distributable Code.” +· NuGet.Core.dll. You may copy and distribute the object code form of NuGet.Core.dll. +· Third Party Distribution. You may permit distributors of your programs to copy and distribute the Distributable Code as part of those programs. +ii. Distribution Requirements. For any Distributable Code you distribute, you must +· add significant primary functionality to it in your programs; +· require distributors and external end users to agree to terms that protect it at least as much as this agreement; +· display your valid copyright notice on your programs; and +· indemnify, defend, and hold harmless Microsoft from any claims, including attorneys’ fees, related to the distribution or use of your programs. +iii. Distribution Restrictions. You may not +· alter any copyright, trademark or patent notice in the Distributable Code; +· use Microsoft’s trademarks in your programs’ names or in a way that suggests your programs come from or are endorsed by Microsoft; +· distribute Distributable Code to run on a platform other than the Windows platform; +· include Distributable Code in malicious, deceptive or unlawful programs; or +· modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that +· the code be disclosed or distributed in source code form; or +· others have the right to modify it. +3. INTERNET-BASED SERVICES. Microsoft provides Internet-based services with the software. It may change or cancel them at any time. +a. Consent for Internet-Based Services. The software feature described below connects to Microsoft or service provider computer systems over the Internet. In some cases, you will not receive a separate notice when they connect. You may elect to not use it. For more information about this feature, see the software documentation and the privacy statement available at go.microsoft.com/fwlink/?LinkID=205205. BY USING THIS FEATURE, YOU CONSENT TO THE TRANSMISSION OF THIS INFORMATION. Microsoft does not use the information to identify or contact you. +i. Computer Information. The following feature uses Internet protocols, which send to the appropriate systems computer information, such as your Internet protocol address, the type of operating system, browser and name and version of the software you are using, and the language code of the device where you installed the software. Microsoft or a third-party service provider uses this information to make the Internet-based service available to you. +A. Open Data Protocol (OData) Service. This software will access a list of packages that is supplied by means of an OData service online from Microsoft or a third-party service provider. +ii. Installing Packages and their Dependencies. Please refer to the “Package Manager Feature” section below for a description of this feature. +iii. Use of Information. We or a third-party service provider may use the computer information, to improve our or their software and services. We or they may also share it with others, such as hardware and software vendors. They may use the information to improve how their products run with Microsoft software. +b. Misuse of Internet-based Services. You may not use this service in any way that could harm it or impair anyone else’s use of it. You may not use the service to try to gain unauthorized access to any service, data, account or network by any means. +4. PACKAGE MANAGER FEATURE. This software includes a package manager feature, which enables you to obtain other software packages from other sources. Those packages are offered and distributed in some cases by third parties or in some cases by Microsoft, but each such package is under its own license terms. Microsoft is not developing, distributing or licensing any of the third-party packages to you, but instead, as a convenience, is providing you with this package manager feature in order to access any packages for your own use. By using this package manager feature, you acknowledge and agree that you may be accessing and using the third-party packages as distributed by such third parties and under the separate license terms applicable to each package, including any terms applicable to software dependencies that may be included in the package. You acknowledge and agree that it is your responsibility to locate, understand and comply with all applicable license terms for each package and its dependencies, for example, by following the package source (feed) URL or by reviewing the packages for embedded notices or license terms. The package manager feature may have been pre-set to a feed that is hosted by Microsoft or a third party service provider, located at go.microsoft.com/fwlink/?LinkID=206669. The packages listed on this feed may include packages submitted by third parties. Microsoft makes no representations, warranties or guarantees as to the feed URL, any feeds from such URL, the information contained therein, or any packages referenced in or accessed by you through such feeds. Microsoft grants you no license rights for third-party software that is obtained using this feature or from the feed. You may change the feed URL that the package manager feature initially points to at any time at your discretion. +5. THIRD PARTY NOTICES. The package manager feature of the software includes third party code. However, such code is licensed to you by Microsoft under this license agreement, rather than licensed to you by any third party under some other license terms. Notices, if any, for the third party code are included with this software for your information only. +6. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not +· work around any technical limitations in the software; +· reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation; +· make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation; +· publish the software for others to copy; +· rent, lease or lend the software; or +· transfer the software or this agreement to any third party. +7. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software. +8. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes. +9. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting. +10. SUPPORT SERVICES. Because this software is “as is,” we may not provide support services for it. +11. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services. +12. APPLICABLE LAW. +a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort. +b. Outside the United States. If you acquired the software in any other country, the laws of that country apply. +13. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so. +14. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED “AS-IS.” YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. +15. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES. This limitation applies to - -·      anything related to the software, services, content -(including code) on third party Internet sites, or third party programs; and - -·      claims for breach of contract, breach of warranty, -guarantee or condition, strict liability, negligence, or other tort to the -extent permitted by applicable law. - -It also applies even if Microsoft knew or should have known about the -possibility of the damages. The above limitation or exclusion may not apply to -you because your country may not allow the exclusion or limitation of -incidental, consequential or other damages. - -*    *   *   *   * - -  - -MICROSOFT SOFTWARE LICENSE TERMS - -MICROSOFT SOFTWARE UPDATE TO VISUAL STUDIO, KB2483190 - -____________________________________________________________________________________ - -PLEASE -NOTE: Microsoft Corporation (or based -on where you live, one of its affiliates) licenses this supplement to you. You -may use it with each validly licensed copy of Microsoft Visual Studio 2010 or -Microsoft Windows operating system  software (for which this supplement is -applicable) (the “software”). You may not use the supplement if you do not have -a license for the software. The license terms for the software apply to your -use of this supplement. Microsoft provides support services for the supplement -as described at www.support.microsoft.com/common/international.aspx. +· anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and +· claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law. +It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages. +* * * * * + MICROSOFT SOFTWARE LICENSE TERMS \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs index 49936673..ef032b8c 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs @@ -1,25 +1,36 @@ // Licensed to the projects contributors. // The license conditions are provided in the LICENSE file located in the project root -using AngleSharp; -using AngleSharp.Dom; using NuGetUtility.LicenseValidator; +using OpenQA.Selenium; +using OpenQA.Selenium.Chrome; +using OpenQA.Selenium.Support.UI; namespace NuGetUtility.Test.LicenseValidator { [TestFixture] public class UrlToLicenseMappingTest { - [Ignore("this test is not yet stable enough")] [Parallelizable(scope: ParallelScope.All)] [TestCaseSource(typeof(UrlToLicenseMapping), nameof(UrlToLicenseMapping.Default))] public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValuePair mappedValue) { - IConfiguration config = Configuration.Default.WithDefaultLoader(); - IBrowsingContext context = BrowsingContext.New(config); - IDocument document = await context.OpenAsync(mappedValue.Key.ToString()); + var options = new ChromeOptions(); + options.AddArguments("--no-sandbox", "--disable-dev-shm-usage", "--headless"); + var driver = new ChromeDriver(options); + try + { + driver.Navigate().GoToUrl(mappedValue.Key.ToString()); - await Verify(document.Body?.TextContent).HashParameters().UseStringComparer(CompareLicense); + IWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(30)); + wait.Until(driver1 => ((IJavaScriptExecutor)driver).ExecuteScript("return document.readyState").Equals("complete")); + + await Verify(driver.FindElement(By.TagName("body")).Text).HashParameters().UseStringComparer(CompareLicense); + } + finally + { + driver.Quit(); + } } private Task CompareLicense(string received, string verified, IReadOnlyDictionary context) diff --git a/tests/NuGetUtility.Test/NuGetUtility.Test.csproj b/tests/NuGetUtility.Test/NuGetUtility.Test.csproj index 90f917c4..4ac9c338 100644 --- a/tests/NuGetUtility.Test/NuGetUtility.Test.csproj +++ b/tests/NuGetUtility.Test/NuGetUtility.Test.csproj @@ -17,7 +17,6 @@ - @@ -31,6 +30,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive +