diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 9efaff61..4ab07a9a 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -13,40 +13,59 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-latest, macos-latest] - include: - - os: ubuntu-latest - buildConfiguration: "Release" + framework: [net6.0, net7.0, net8.0] - - os: windows-latest - buildConfiguration: "TestWindows" + include: + - targetFramework: net6.0 + dotnetVersion: "6.0.x" + + - targetFramework: net7.0 + dotnetVersion: "7.0.x" - - os: macos-latest - buildConfiguration: "Release" + - targetFramework: net8.0 + dotnetVersion: "8.0.x" steps: - uses: actions/checkout@v4 - - name: Setup dotnet 6.0.x - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "6.0.x" - - name: Setup dotnet 7.0.x - uses: actions/setup-dotnet@v4 - with: - dotnet-version: "7.0.x" - - name: Setup dotnet 8.0.x + + - name: Setup dotnet ${{ matrix.dotnetVersion }} uses: actions/setup-dotnet@v4 with: - dotnet-version: "8.0.x" + dotnet-version: ${{ matrix.dotnetVersion }} + - name: restore - run: dotnet restore + run: dotnet restore -p:TargetFramework=${{ matrix.framework }} + + - name: build + run: dotnet build --configuration Release + + - name: test + run: dotnet test --configuration Release -f ${{ matrix.framework }} --no-restore + + test_windows: + runs-on: windows-latest + strategy: + matrix: + framework: [net6.0, net7.0, net8.0, net472] + steps: + - uses: actions/checkout@v4 + - uses: nuget/setup-nuget@v2 + - run: nuget restore NuGetUtility.sln + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 - name: build - run: dotnet build --configuration ${{ matrix.buildConfiguration }} --no-restore + run: msbuild -t:rebuild -property:Configuration=TestWindows - name: test - run: dotnet test --configuration ${{ matrix.buildConfiguration }} --no-restore + uses: microsoft/vstest-action@v1.0.0 + with: + testAssembly: "NuGetUtility.Test.dll" + searchFolder: "tests/NuGetUtility.Test/bin/TestWindows/${{ matrix.framework }}/" + runInParallel: true check_code_format: runs-on: ubuntu-latest diff --git a/NuGetUtility.sln b/NuGetUtility.sln index 18d2e033..074624cb 100644 --- a/NuGetUtility.sln +++ b/NuGetUtility.sln @@ -29,53 +29,161 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution README.md = README.md EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimpleCppProject", "tests\targets\SimpleCppProject\SimpleCppProject.vcxproj", "{380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 TestWindows|Any CPU = TestWindows|Any CPU + TestWindows|x64 = TestWindows|x64 + TestWindows|x86 = TestWindows|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x64.ActiveCfg = Debug|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x64.Build.0 = Debug|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x86.ActiveCfg = Debug|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Debug|x86.Build.0 = Debug|Any CPU {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|Any CPU.ActiveCfg = Release|Any CPU {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|Any CPU.Build.0 = Release|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x64.ActiveCfg = Release|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x64.Build.0 = Release|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x86.ActiveCfg = Release|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.Release|x86.Build.0 = Release|Any CPU {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {E9F108AD-CE14-4BDD-B674-A1CDDE8B27EC}.TestWindows|x86.Build.0 = TestWindows|Any CPU {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x64.ActiveCfg = Debug|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x64.Build.0 = Debug|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x86.ActiveCfg = Debug|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Debug|x86.Build.0 = Debug|Any CPU {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|Any CPU.ActiveCfg = Release|Any CPU {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|Any CPU.Build.0 = Release|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x64.ActiveCfg = Release|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x64.Build.0 = Release|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x86.ActiveCfg = Release|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.Release|x86.Build.0 = Release|Any CPU {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {1EBC8E4A-7677-4AF9-9C37-0CF81A9A689E}.TestWindows|x86.Build.0 = TestWindows|Any CPU {80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|Any CPU.Build.0 = Debug|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x64.ActiveCfg = Debug|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x64.Build.0 = Debug|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x86.ActiveCfg = Debug|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Debug|x86.Build.0 = Debug|Any CPU {80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|Any CPU.ActiveCfg = Release|Any CPU {80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|Any CPU.Build.0 = Release|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x64.ActiveCfg = Release|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x64.Build.0 = Release|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x86.ActiveCfg = Release|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.Release|x86.Build.0 = Release|Any CPU {80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {80E2DA74-CA6D-45EC-9272-00C93A574997}.TestWindows|x86.Build.0 = TestWindows|Any CPU {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x64.ActiveCfg = Debug|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x64.Build.0 = Debug|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x86.ActiveCfg = Debug|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Debug|x86.Build.0 = Debug|Any CPU {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|Any CPU.ActiveCfg = Release|Any CPU {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|Any CPU.Build.0 = Release|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x64.ActiveCfg = Release|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x64.Build.0 = Release|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x86.ActiveCfg = Release|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.Release|x86.Build.0 = Release|Any CPU {FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {FD8ECE33-D357-4611-A909-D9EE9415FB26}.TestWindows|x86.Build.0 = TestWindows|Any CPU {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x64.ActiveCfg = Debug|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x64.Build.0 = Debug|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x86.ActiveCfg = Debug|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Debug|x86.Build.0 = Debug|Any CPU {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x64.ActiveCfg = Release|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x64.Build.0 = Release|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x86.ActiveCfg = Release|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.Release|x86.Build.0 = Release|Any CPU {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D}.TestWindows|x86.Build.0 = TestWindows|Any CPU {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x64.ActiveCfg = Debug|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x64.Build.0 = Debug|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x86.ActiveCfg = Debug|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Debug|x86.Build.0 = Debug|Any CPU {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|Any CPU.ActiveCfg = Release|Any CPU {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|Any CPU.Build.0 = Release|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x64.ActiveCfg = Release|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x64.Build.0 = Release|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x86.ActiveCfg = Release|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.Release|x86.Build.0 = Release|Any CPU {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {3DDEC6CB-4FDA-49D1-A358-06BE9200C174}.TestWindows|x86.Build.0 = TestWindows|Any CPU {3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x64.ActiveCfg = Debug|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x64.Build.0 = Debug|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x86.ActiveCfg = Debug|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Debug|x86.Build.0 = Debug|Any CPU {3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|Any CPU.ActiveCfg = Release|Any CPU {3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|Any CPU.Build.0 = Release|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x64.ActiveCfg = Release|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x64.Build.0 = Release|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x86.ActiveCfg = Release|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.Release|x86.Build.0 = Release|Any CPU {3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|Any CPU.ActiveCfg = TestWindows|Any CPU {3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|Any CPU.Build.0 = TestWindows|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x64.ActiveCfg = TestWindows|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x64.Build.0 = TestWindows|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x86.ActiveCfg = TestWindows|Any CPU + {3150479E-4370-408D-8A93-7C0CDC281CC3}.TestWindows|x86.Build.0 = TestWindows|Any CPU + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|Any CPU.ActiveCfg = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x64.ActiveCfg = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x64.Build.0 = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x86.ActiveCfg = Debug|Win32 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Debug|x86.Build.0 = Debug|Win32 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|Any CPU.ActiveCfg = Release|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x64.ActiveCfg = Release|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x64.Build.0 = Release|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x86.ActiveCfg = Release|Win32 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.Release|x86.Build.0 = Release|Win32 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|Any CPU.ActiveCfg = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|Any CPU.Build.0 = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x64.ActiveCfg = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x64.Build.0 = Debug|x64 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x86.ActiveCfg = Debug|Win32 + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15}.TestWindows|x86.Build.0 = Debug|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -89,6 +197,7 @@ Global {BBB24A05-8A1F-4840-8C70-BEFE3F0B8F5D} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E} {3DDEC6CB-4FDA-49D1-A358-06BE9200C174} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E} {3150479E-4370-408D-8A93-7C0CDC281CC3} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E} + {380FBD90-2CF0-4F83-A58E-EB98CE2EAE15} = {FA92392F-D895-4D1E-A5ED-E6DC3C08223E} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {70887D40-0182-4C32-BFA1-B5A02E405F11} diff --git a/src/NuGetUtility/Extensions/ProjectExtensions.cs b/src/NuGetUtility/Extensions/ProjectExtensions.cs index 55b5c927..38b18e93 100644 --- a/src/NuGetUtility/Extensions/ProjectExtensions.cs +++ b/src/NuGetUtility/Extensions/ProjectExtensions.cs @@ -10,21 +10,21 @@ public static class ProjectExtensions private const string PackageReferenceValue = "PackageReference"; private const string PackagesConfigFileName = "packages.config"; - public static bool HasNugetPackagesReferenced(this IProject project) + public static bool HasNuGetPackagesReferenced(this IProject project) { return (project.GetPackageReferenceCount() > 0) || project.HasPackagesConfigFile(); } public static bool IsPackageReferenceProject(this IProject project) { - return TargetIsEqualIfSet(project.GetNugetStyleTag(), PackageReferenceValue) && + return TargetIsEqualIfSet(project.GetNuGetStyleTag(), PackageReferenceValue) && TargetIsEqualIfSet(project.GetRestoreStyleTag(), PackageReferenceValue) && !project.HasPackagesConfigFile(); } public static string GetPackagesConfigPath(this IProject project) { - return Path.Join(Path.GetDirectoryName(project.FullPath), PackagesConfigFileName); + return Path.Combine(Path.GetDirectoryName(project.FullPath) ?? string.Empty, PackagesConfigFileName); } private static bool HasPackagesConfigFile(this IProject project) diff --git a/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs b/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs index fd8245ca..55157c67 100644 --- a/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs +++ b/src/NuGetUtility/LicenseValidator/UrlToLicenseMapping.cs @@ -17,38 +17,38 @@ public static class UrlToLicenseMapping public static IImmutableDictionary Default { get; } = ImmutableDictionary.CreateRange( new[] { - KeyValuePair.Create( new Uri("http://www.apache.org/licenses/LICENSE-2.0.html"), Apache20 ), - KeyValuePair.Create( new Uri("http://www.apache.org/licenses/LICENSE-2.0"), Apache20 ), - KeyValuePair.Create( new Uri("http://aws.amazon.com/apache2.0/"), Apache20 ), - KeyValuePair.Create( new Uri("http://logging.apache.org/log4net/license.html"), Apache20 ), - KeyValuePair.Create( new Uri("https://github.com/owin-contrib/owin-hosting/blob/master/LICENSE.txt"), Apache20 ), - KeyValuePair.Create( new Uri("https://raw.githubusercontent.com/aspnet/Home/2.0.0/LICENSE.txt"), Apache20 ), - KeyValuePair.Create( + 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( new Uri("https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream/blob/master/LICENSE"), Mit ), - KeyValuePair.Create( new Uri("https://github.com/AutoMapper/AutoMapper/blob/master/LICENSE.txt"), Mit ), - KeyValuePair.Create( new Uri("https://github.com/zzzprojects/html-agility-pack/blob/master/LICENSE"), Mit ), - KeyValuePair.Create( new Uri("https://raw.githubusercontent.com/hey-red/markdownsharp/master/LICENSE"), Mit ), - KeyValuePair.Create( new Uri("https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md"), Mit ), - KeyValuePair.Create( new Uri("https://licenses.nuget.org/MIT"), Mit ), - KeyValuePair.Create( new Uri("http://max.mit-license.org/"), Mit ), - KeyValuePair.Create( new Uri("https://github.com/dotnet/corefx/blob/master/LICENSE.TXT"), Mit ), - KeyValuePair.Create( new Uri("https://go.microsoft.com/fwlink/?linkid=868514"), Mit ), - KeyValuePair.Create( new Uri("http://go.microsoft.com/fwlink/?linkid=833178"), Mit ), - KeyValuePair.Create( new Uri("http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"), Gpl20 ), - KeyValuePair.Create( new Uri("https://raw.githubusercontent.com/AArnott/Validation/8377954d86/LICENSE.txt"), MsPl ), - KeyValuePair.Create( new Uri("https://www.microsoft.com/web/webpi/eula/aspnetmvc3update-eula.htm"), MsEula ), - KeyValuePair.Create( new Uri("http://go.microsoft.com/fwlink/?LinkID=214339"), MsEula ), - KeyValuePair.Create( new Uri("https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm"), MsEula ), - KeyValuePair.Create( new Uri("http://go.microsoft.com/fwlink/?LinkId=329770"), MsEula ), - KeyValuePair.Create( new Uri("http://go.microsoft.com/fwlink/?LinkId=529443"), MsEula ), - KeyValuePair.Create( + new KeyValuePair( new Uri("https://github.com/AutoMapper/AutoMapper/blob/master/LICENSE.txt"), Mit ), + new KeyValuePair( new Uri("https://github.com/zzzprojects/html-agility-pack/blob/master/LICENSE"), Mit ), + new KeyValuePair( new Uri("https://raw.githubusercontent.com/hey-red/markdownsharp/master/LICENSE"), Mit ), + new KeyValuePair( new Uri("https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md"), Mit ), + new KeyValuePair( new Uri("https://licenses.nuget.org/MIT"), Mit ), + new KeyValuePair( new Uri("http://max.mit-license.org/"), Mit ), + new KeyValuePair( new Uri("https://github.com/dotnet/corefx/blob/master/LICENSE.TXT"), Mit ), + new KeyValuePair( new Uri("https://go.microsoft.com/fwlink/?linkid=868514"), Mit ), + new KeyValuePair( new Uri("http://go.microsoft.com/fwlink/?linkid=833178"), Mit ), + new KeyValuePair( new Uri("http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"), Gpl20 ), + new KeyValuePair( new Uri("https://raw.githubusercontent.com/AArnott/Validation/8377954d86/LICENSE.txt"), MsPl ), + new KeyValuePair( new Uri("https://www.microsoft.com/web/webpi/eula/aspnetmvc3update-eula.htm"), MsEula ), + new KeyValuePair( new Uri("http://go.microsoft.com/fwlink/?LinkID=214339"), MsEula ), + new KeyValuePair( new Uri("https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm"), MsEula ), + new KeyValuePair( new Uri("http://go.microsoft.com/fwlink/?LinkId=329770"), MsEula ), + new KeyValuePair( new Uri("http://go.microsoft.com/fwlink/?LinkId=529443"), MsEula ), + new KeyValuePair( new Uri("https://www.microsoft.com/web/webpi/eula/dotnet_library_license_non_redistributable.htm"), MsEulaNonRedistributable ), - KeyValuePair.Create( new Uri("http://go.microsoft.com/fwlink/?LinkId=529444"), MsEulaNonRedistributable ), - KeyValuePair.Create( new Uri(" http://opensource.org/licenses/mit-license.php"), Mit ), - KeyValuePair.Create( new Uri("https://raw.githubusercontent.com/bchavez/Bogus/master/LICENSE"), Mit) + new KeyValuePair( new Uri("http://go.microsoft.com/fwlink/?LinkId=529444"), MsEulaNonRedistributable ), + new KeyValuePair( new Uri(" http://opensource.org/licenses/mit-license.php"), Mit ), + new KeyValuePair( new Uri("https://raw.githubusercontent.com/bchavez/Bogus/master/LICENSE"), Mit) } ); } diff --git a/src/NuGetUtility/NuGetUtility.csproj b/src/NuGetUtility/NuGetUtility.csproj index 3b83499b..a7666c1e 100644 --- a/src/NuGetUtility/NuGetUtility.csproj +++ b/src/NuGetUtility/NuGetUtility.csproj @@ -2,7 +2,7 @@ Exe - net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0 true true DotnetTool @@ -26,13 +26,15 @@ A .net core tool to print and validate the licenses of .net code. This tool supports .NET (Core), .NET Standard and .NET Framework projects. + + 10.0 + + - - @@ -47,6 +49,16 @@ + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + true diff --git a/src/NuGetUtility/Output/Table/TablePrinter.cs b/src/NuGetUtility/Output/Table/TablePrinter.cs index d029be57..d7b02deb 100644 --- a/src/NuGetUtility/Output/Table/TablePrinter.cs +++ b/src/NuGetUtility/Output/Table/TablePrinter.cs @@ -1,6 +1,8 @@ // Licensed to the projects contributors. // The license conditions are provided in the LICENSE file located in the project root +using System.Text; + namespace NuGetUtility.Output.Table { /// @@ -51,7 +53,7 @@ private string[] GetLines(object? lines) public async Task Print() { - await using var writer = new StreamWriter(_stream, leaveOpen: true); + using var writer = new StreamWriter(_stream, encoding: new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true), bufferSize: 1024, leaveOpen: true); await WriteSeparator(writer); await WriteRow(_titles, writer); diff --git a/src/NuGetUtility/Program.cs b/src/NuGetUtility/Program.cs index 3da8fd81..22a2b247 100644 --- a/src/NuGetUtility/Program.cs +++ b/src/NuGetUtility/Program.cs @@ -2,6 +2,7 @@ // The license conditions are provided in the LICENSE file located in the project root using System.Collections.Immutable; +using System.Net.Http; using System.Reflection; using System.Text.Json; using McMaster.Extensions.CommandLineUtils; @@ -107,7 +108,7 @@ private async Task OnExecuteAsync(CancellationToken cancellationToken) IFileDownloader urlLicenseFileDownloader = GetFileDownloader(httpClient); IOutputFormatter output = GetOutputFormatter(); - MsBuildAbstraction msBuild = OperatingSystem.IsWindows() ? new WindowsMsBuildAbstraction() : new MsBuildAbstraction(); + MsBuildAbstraction msBuild = new MsBuildAbstraction(); var projectCollector = new ProjectsCollector(msBuild); var projectReader = new ReferencedPackageReader(msBuild, new LockFileFactory(), GetPackagesConfigReader()); var validator = new LicenseValidator.LicenseValidator(licenseMappings, @@ -131,7 +132,7 @@ private async Task OnExecuteAsync(CancellationToken cancellationToken) return new ProjectWithReferencedPackages(p, installedPackages ?? Enumerable.Empty()); }); IAsyncEnumerable downloadedLicenseInformation = - packagesForProject.SelectMany(p => GetPackageInfos(p, overridePackageInformation, cancellationToken)); + packagesForProject.SelectMany(p => GetPackageInformations(p, overridePackageInformation, cancellationToken)); var results = (await validator.Validate(downloadedLicenseInformation, cancellationToken)).ToList(); if (projectReaderExceptions.Any()) @@ -141,15 +142,21 @@ private async Task OnExecuteAsync(CancellationToken cancellationToken) return -1; } - await using Stream outputStream = Console.OpenStandardOutput(); + using Stream outputStream = Console.OpenStandardOutput(); await output.Write(outputStream, results.OrderBy(r => r.PackageId).ThenBy(r => r.PackageVersion).ToList()); return results.Count(r => r.ValidationErrors.Any()); } - private static IPackagesConfigReader GetPackagesConfigReader() => - OperatingSystem.IsWindows() ? new WindowsPackagesConfigReader() : new FailingPackagesConfigReader(); + private static IPackagesConfigReader GetPackagesConfigReader() + { +#if NETFRAMEWORK + return new WindowsPackagesConfigReader(); +#else + return OperatingSystem.IsWindows() ? new WindowsPackagesConfigReader() : new FailingPackagesConfigReader(); +#endif + } - private static IAsyncEnumerable GetPackageInfos( + private static IAsyncEnumerable GetPackageInformations( ProjectWithReferencedPackages projectWithReferences, IEnumerable overridePackageInformation, CancellationToken cancellation) diff --git a/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs b/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs index 47fcb793..dda0ba88 100644 --- a/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs +++ b/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs @@ -28,7 +28,7 @@ public IEnumerable GetInstalledPackages(string projectPath, boo { IProject project = _msBuild.GetProject(projectPath); - if (!project.HasNugetPackagesReferenced() && !includeTransitive) + if (!project.HasNuGetPackagesReferenced() && !includeTransitive) { return Enumerable.Empty(); } diff --git a/src/NuGetUtility/Serialization/NuGetVersionJsonConverter.cs b/src/NuGetUtility/Serialization/NuGetVersionJsonConverter.cs index 087251e3..80cc34dd 100644 --- a/src/NuGetUtility/Serialization/NuGetVersionJsonConverter.cs +++ b/src/NuGetUtility/Serialization/NuGetVersionJsonConverter.cs @@ -27,7 +27,7 @@ public override void Write(Utf8JsonWriter writer, INuGetVersion value, JsonSeria public override bool CanConvert(Type typeToConvert) { - return typeToConvert.IsAssignableTo(typeof(INuGetVersion)); + return typeof(INuGetVersion).IsAssignableFrom(typeToConvert); } } } diff --git a/src/NuGetUtility/Wrapper/HttpClientWrapper/FileDownloader.cs b/src/NuGetUtility/Wrapper/HttpClientWrapper/FileDownloader.cs index 3b7b72c7..bc61abd8 100644 --- a/src/NuGetUtility/Wrapper/HttpClientWrapper/FileDownloader.cs +++ b/src/NuGetUtility/Wrapper/HttpClientWrapper/FileDownloader.cs @@ -1,6 +1,8 @@ // Licensed to the projects contributors. // The license conditions are provided in the LICENSE file located in the project root +using System.Net.Http; + namespace NuGetUtility.Wrapper.HttpClientWrapper { public class FileDownloader : IFileDownloader @@ -24,20 +26,11 @@ public async Task DownloadFile(Uri url, string fileName, CancellationToken token { for (int i = 0; i < MAX_RETRIES; i++) { - await using FileStream file = File.OpenWrite(Path.Combine(_downloadDirectory, fileName)); - var request = new HttpRequestMessage(HttpMethod.Get, url); - - HttpResponseMessage response = await _client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, token); - if (response.StatusCode == System.Net.HttpStatusCode.TooManyRequests) + if (await TryDownload(fileName, url, token)) { - await Task.Delay((int)Math.Pow(EXPONENTIAL_BACKOFF_WAIT_TIME_MILLISECONDS, i + 1), token); - continue; + return; } - response.EnsureSuccessStatusCode(); - using Stream downloadStream = await response.Content.ReadAsStreamAsync(token); - - await downloadStream.CopyToAsync(file, token); - return; + await Task.Delay((int)Math.Pow(EXPONENTIAL_BACKOFF_WAIT_TIME_MILLISECONDS, i + 1), token); } } finally @@ -45,5 +38,43 @@ public async Task DownloadFile(Uri url, string fileName, CancellationToken token _parallelDownloadLimiter.Release(); } } + +#if NETFRAMEWORK + private async Task TryDownload(string fileName, Uri url, CancellationToken _) + { + using FileStream file = File.OpenWrite(Path.Combine(_downloadDirectory, fileName)); + var request = new HttpRequestMessage(HttpMethod.Get, url); + + HttpResponseMessage response = await _client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead); + // System.Net.HttpStatusCode.TooManyRequests does not exist in .net472 + if (response.StatusCode == (System.Net.HttpStatusCode)429) + { + return false; + } + response.EnsureSuccessStatusCode(); + using Stream downloadStream = await response.Content.ReadAsStreamAsync(); + + await downloadStream.CopyToAsync(file); + return true; + } +#else + private async Task TryDownload(string fileName, Uri url, CancellationToken token) + { + + await using FileStream file = File.OpenWrite(Path.Combine(_downloadDirectory, fileName)); + var request = new HttpRequestMessage(HttpMethod.Get, url); + + HttpResponseMessage response = await _client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, token); + if (response.StatusCode == System.Net.HttpStatusCode.TooManyRequests) + { + return false; + } + response.EnsureSuccessStatusCode(); + using Stream downloadStream = await response.Content.ReadAsStreamAsync(token); + + await downloadStream.CopyToAsync(file, token); + return true; + } +#endif } } diff --git a/src/NuGetUtility/Wrapper/MsBuildWrapper/IProject.cs b/src/NuGetUtility/Wrapper/MsBuildWrapper/IProject.cs index 6c7c51bc..32bba45e 100644 --- a/src/NuGetUtility/Wrapper/MsBuildWrapper/IProject.cs +++ b/src/NuGetUtility/Wrapper/MsBuildWrapper/IProject.cs @@ -6,11 +6,12 @@ namespace NuGetUtility.Wrapper.MsBuildWrapper public interface IProject { public string FullPath { get; } + string GetAssetsPath(); string GetRestoreStyleTag(); - string GetNugetStyleTag(); + string GetNuGetStyleTag(); int GetPackageReferenceCount(); diff --git a/src/NuGetUtility/Wrapper/MsBuildWrapper/MsBuildAbstraction.cs b/src/NuGetUtility/Wrapper/MsBuildWrapper/MsBuildAbstraction.cs index 505cb497..e38e20de 100644 --- a/src/NuGetUtility/Wrapper/MsBuildWrapper/MsBuildAbstraction.cs +++ b/src/NuGetUtility/Wrapper/MsBuildWrapper/MsBuildAbstraction.cs @@ -41,6 +41,13 @@ public IEnumerable GetPackageReferencesFromProjectForFramework public IProject GetProject(string projectPath) { +#if !NETFRAMEWORK + if (projectPath.EndsWith("vcxproj")) + { + throw new MsBuildAbstractionException($"Please use the .net Framework version to analyze c++ projects (Project: {projectPath})"); + } +#endif + ProjectRootElement rootElement = TryGetProjectRootElement(projectPath); var project = new Project(rootElement, _globalProjectProperties, null); @@ -50,7 +57,7 @@ public IProject GetProject(string projectPath) public IEnumerable GetProjectsFromSolution(string inputPath) { - string absolutePath = Path.GetFullPath(inputPath, Environment.CurrentDirectory); + string absolutePath = Path.IsPathRooted(inputPath) ? inputPath : Path.Combine(Environment.CurrentDirectory, inputPath); var sln = SolutionFile.Parse(absolutePath); return sln.ProjectsInOrder.Select(p => p.AbsolutePath); } diff --git a/src/NuGetUtility/Wrapper/MsBuildWrapper/ProjectWrapper.cs b/src/NuGetUtility/Wrapper/MsBuildWrapper/ProjectWrapper.cs index d0932d31..f2726871 100644 --- a/src/NuGetUtility/Wrapper/MsBuildWrapper/ProjectWrapper.cs +++ b/src/NuGetUtility/Wrapper/MsBuildWrapper/ProjectWrapper.cs @@ -36,7 +36,7 @@ public string GetRestoreStyleTag() return _project.GetPropertyValue(RestoreStyleTag); } - public string GetNugetStyleTag() + public string GetNuGetStyleTag() { return _project.GetPropertyValue(NugetStyleTag); } diff --git a/src/NuGetUtility/Wrapper/MsBuildWrapper/WindowsMsBuildAbstraction.cs b/src/NuGetUtility/Wrapper/MsBuildWrapper/WindowsMsBuildAbstraction.cs deleted file mode 100644 index 4496ca0c..00000000 --- a/src/NuGetUtility/Wrapper/MsBuildWrapper/WindowsMsBuildAbstraction.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Licensed to the projects contributors. -// The license conditions are provided in the LICENSE file located in the project root - -using System.Management; -using System.Runtime.Versioning; - -namespace NuGetUtility.Wrapper.MsBuildWrapper -{ - [SupportedOSPlatform("windows")] - public class WindowsMsBuildAbstraction : MsBuildAbstraction - { - public WindowsMsBuildAbstraction() - { - // to support VC-projects we need to workaround : https://github.com/3F/MvsSln/issues/1 - // adding 'VCTargetsPath' to Project::GlobalProperties seem to be enough - - if (GetBestVCTargetsPath() is string path) - { - AddGlobalProjectProperty("VCTargetsPath", $"{path}\\"); - } - } - - private static string? GetBestVCTargetsPath() - { - var cppProperties = new List(); - - foreach (string path in GetVisualStudioInstallPaths()) - cppProperties.AddRange(new DirectoryInfo(path).GetFiles("Microsoft.Cpp.Default.props", SearchOption.AllDirectories)); - - // if multiple, assume most recent 'LastWriteTime' property is 'best' - return cppProperties.OrderBy(f => f.LastWriteTime).LastOrDefault()?.DirectoryName; - } - - private static IEnumerable GetVisualStudioInstallPaths() - { - // https://learn.microsoft.com/en-us/visualstudio/install/tools-for-managing-visual-studio-instances?view=vs-2022#using-windows-management-instrumentation-wmi - - var result = new List(); - - try - { - var mmc = new ManagementClass("root/cimv2/vs:MSFT_VSInstance"); - - foreach (ManagementBaseObject? vs_instance in mmc.GetInstances()) - if (vs_instance["InstallLocation"] is string install_path) - result.Add(install_path); - } - catch (ManagementException me) when (me.Message.Contains("Invalid namespace")) - { - // Visual Studio might not be installed - } - - return result; - } - } -} diff --git a/tests/NuGetUtility.Test/Extensions/MemoryStreamExtension.cs b/tests/NuGetUtility.Test/Extensions/MemoryStreamExtension.cs index ff0d59b6..b2cbdd0e 100644 --- a/tests/NuGetUtility.Test/Extensions/MemoryStreamExtension.cs +++ b/tests/NuGetUtility.Test/Extensions/MemoryStreamExtension.cs @@ -1,6 +1,8 @@ // Licensed to the projects contributors. // The license conditions are provided in the LICENSE file located in the project root +using System.Text; + namespace NuGetUtility.Test.Extensions { public static class MemoryStreamExtension @@ -8,7 +10,7 @@ public static class MemoryStreamExtension public static string AsString(this MemoryStream stream) { stream.Position = 0; - using var reader = new StreamReader(stream, leaveOpen: true, encoding: System.Text.Encoding.UTF8); + using var reader = new StreamReader(stream, encoding: new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true), bufferSize: 1024, leaveOpen: true, detectEncodingFromByteOrderMarks: false); return reader.ReadToEnd(); } } diff --git a/tests/NuGetUtility.Test/Extensions/ProjectExtensionsTest.cs b/tests/NuGetUtility.Test/Extensions/ProjectExtensionsTest.cs index f8f98379..bbe7197e 100644 --- a/tests/NuGetUtility.Test/Extensions/ProjectExtensionsTest.cs +++ b/tests/NuGetUtility.Test/Extensions/ProjectExtensionsTest.cs @@ -24,7 +24,7 @@ public void HasNugetPackagesReferenced_Should_ReturnTrue_If_PackageReferenceCoun { _project.GetPackageReferenceCount().Returns(referenceCount); - bool result = _project.HasNugetPackagesReferenced(); + bool result = _project.HasNuGetPackagesReferenced(); Assert.That(result, Is.True); } @@ -35,7 +35,7 @@ public void HasNugetPackagesReferences_Should_ReturnTrue_If_ProjectHasPackagesCo _project.GetPackageReferenceCount().Returns(0); _project.GetEvaluatedIncludes().Returns(new List { "packages.config" }); - bool result = _project!.HasNugetPackagesReferenced(); + bool result = _project!.HasNuGetPackagesReferenced(); Assert.That(result, Is.True); } @@ -48,7 +48,7 @@ public void _project.GetPackageReferenceCount().Returns(referenceCount); _project.GetEvaluatedIncludes().Returns(Enumerable.Empty()); - bool result = _project!.HasNugetPackagesReferenced(); + bool result = _project!.HasNuGetPackagesReferenced(); Assert.That(result, Is.False); } @@ -64,7 +64,7 @@ public void IsPackageReferenceProject_Should_ReturnTrue_If_ProjectIsPackageRefer string nugetStyleTag, string restoreStyleTag) { - _project.GetNugetStyleTag().Returns(nugetStyleTag); + _project.GetNuGetStyleTag().Returns(nugetStyleTag); _project.GetRestoreStyleTag().Returns(restoreStyleTag); _project.GetEvaluatedIncludes().Returns(new List { "not-packages.config" }); @@ -85,7 +85,7 @@ public void IsPackageReferenceProject_Should_ReturnFalse_If_ProjectIsNotPackageR string restoreStyleTag, string evaluatedInclude) { - _project.GetNugetStyleTag().Returns(nugetStyleTag); + _project.GetNuGetStyleTag().Returns(nugetStyleTag); _project.GetRestoreStyleTag().Returns(restoreStyleTag); _project.GetEvaluatedIncludes().Returns(new List { evaluatedInclude }); diff --git a/tests/NuGetUtility.Test/Helper/AsyncEnumerableExtension/AsyncEnumerator.cs b/tests/NuGetUtility.Test/Helper/AsyncEnumerableExtension/AsyncEnumerator.cs index cc74533a..ff95fdf9 100644 --- a/tests/NuGetUtility.Test/Helper/AsyncEnumerableExtension/AsyncEnumerator.cs +++ b/tests/NuGetUtility.Test/Helper/AsyncEnumerableExtension/AsyncEnumerator.cs @@ -15,13 +15,21 @@ public AsyncEnumerator(IEnumerator sync) public ValueTask DisposeAsync() { _sync.Dispose(); +#if NETFRAMEWORK + return new ValueTask(Task.CompletedTask); +#else return ValueTask.CompletedTask; +#endif } public ValueTask MoveNextAsync() { bool result = _sync.MoveNext(); +#if NETFRAMEWORK + return new ValueTask(Task.FromResult(result)); +#else return ValueTask.FromResult(result); +#endif } public T Current => _sync.Current; diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_0a0d7369b800fefd.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_0a0d7369b800fefd.verified.txt new file mode 100644 index 00000000..3310e69d --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_0a0d7369b800fefd.verified.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 red + +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. diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_228fe7ebd4f1e3d0.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_228fe7ebd4f1e3d0.verified.txt new file mode 100644 index 00000000..da93d0f9 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_228fe7ebd4f1e3d0.verified.txt @@ -0,0 +1,83 @@ +MIT License + +Bogus - Copyright (c) 2015 Brian Chavez +* http://github.com/bchavez/Bogus +* http://bchavez.bitarmory.com + +faker.js - Copyright (c) 2014-2015 Matthew Bergman & Marak Squires +http://github.com/marak/faker.js/ + +faker.js was inspired by and has used data definitions from: + +Copyright (c) 2007-2010 Benjamin Curtis +https://github.com/stympy/faker/ + +Copyright 2004-2005 by Jason Kohles +http://search.cpan.org/~jasonk/Data-Faker-0.07/ + +Copyright (c) ZZZ Projects Inc. 2014 - 2016 +https://github.com/zzzprojects/Z.ExtensionMethods/ + +Copyright (c) 2015 kernys +https://github.com/kernys/Kernys.Bson + +Copyright (c) 2015 Victor Quinn +https://github.com/chancejs/chancejs + +Copyright (c) 2014 Chris Veness +https://github.com/chrisveness/geodesy/ + +Copyright (c) 2013, Richard Morris +https://github.com/domaindrivendev/Swashbuckle/blob/master/LICENSE + +Copyright (c) 2012 Daniele Faraglia +https://github.com/joke2k/faker/ + + +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. + +================================================================================ + +The BSD 3-Clause License (BSD3) + +Copyright (c) 2013-2017 Sascha Droste +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. +* Neither the name of the author nor the names of its contributors may be used +to endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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 new file mode 100644 index 00000000..366302b3 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_22e062c15379c13a.verified.txt @@ -0,0 +1,21 @@ +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 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_428b264ee36ee41a.verified.txt @@ -0,0 +1 @@ + \ 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4361ac729d63963d.verified.txt @@ -0,0 +1 @@ + \ 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 new file mode 100644 index 00000000..5df504ed --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_4dd15ac9f11cd17c.verified.txt @@ -0,0 +1,215 @@ + + + + +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. + +  + +  + + + + + + 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 new file mode 100644 index 00000000..0c6a631b --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_56f779c494389d69.verified.txt @@ -0,0 +1,231 @@ + + + + +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. 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 new file mode 100644 index 00000000..5508e5e7 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5a6a8426f157cb07.verified.txt @@ -0,0 +1,205 @@ + + + + +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. 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 new file mode 100644 index 00000000..d6f46eef --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5b045172ae56c820.verified.txt @@ -0,0 +1,184 @@ +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 +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. +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. +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_5e3ed529434f955d.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5e3ed529434f955d.verified.txt new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5e3ed529434f955d.verified.txt @@ -0,0 +1 @@ + \ 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 new file mode 100644 index 00000000..d6f46eef --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_5ee1cd856c331a32.verified.txt @@ -0,0 +1,184 @@ +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 +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. +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. +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_631a3cca888994b1.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_631a3cca888994b1.verified.txt new file mode 100644 index 00000000..08798712 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_631a3cca888994b1.verified.txt @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2007 James Newton-King + +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. 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 new file mode 100644 index 00000000..d510c495 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63a0ec25be40d11a.verified.txt @@ -0,0 +1,25 @@ +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 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 new file mode 100644 index 00000000..92ea1593 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_63cad523536fe5ca.verified.txt @@ -0,0 +1,471 @@ +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. + + + +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. + + +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. + + +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. + + +one line to give the program's name and an idea of what it does. +Copyright (C) yyyy name of author + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, 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: + + +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: + + + +Yoyodyne, Inc., hereby disclaims all copyright +interest in the program `Gnomovision' +(which makes passes at compilers) written +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 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_675228b0289c97b9.verified.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_6d2eeb842e225813.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_6d2eeb842e225813.verified.txt new file mode 100644 index 00000000..7ffc781b --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_6d2eeb842e225813.verified.txt @@ -0,0 +1,14 @@ +Copyright (c) .NET Foundation and Contributors + +All rights reserved. + +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_81bab0f76a137fc6.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_81bab0f76a137fc6.verified.txt new file mode 100644 index 00000000..7a6fa36f --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_81bab0f76a137fc6.verified.txt @@ -0,0 +1,25 @@ +OData .NET Libraries - ODataLib + +Copyright (c) 2018 Microsoft. All rights reserved. + +Material in this repository is made available under the following terms: + 1. Code is licensed under the MIT license, reproduced below. + 2. Documentation is licensed under the Creative Commons Attribution 3.0 United States (Unported) License. + The text of the license can be found here: http://creativecommons.org/licenses/by/3.0/legalcode + +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_97f12ec44714bb11.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_97f12ec44714bb11.verified.txt new file mode 100644 index 00000000..a08d1123 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_97f12ec44714bb11.verified.txt @@ -0,0 +1,48 @@ +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 new file mode 100644 index 00000000..74b41bec --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_9b93b4d121368c0c.verified.txt @@ -0,0 +1,231 @@ + + + + +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. 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8bbd9c75d4635f7.verified.txt @@ -0,0 +1 @@ + \ 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a8e00974c5776df1.verified.txt @@ -0,0 +1 @@ + \ 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 new file mode 100644 index 00000000..0e6edd2c --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_a9fd1bef8d8d1baa.verified.txt @@ -0,0 +1,899 @@ + + + + +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 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. + +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 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. + +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 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. + +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. 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 new file mode 100644 index 00000000..0c6a631b --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_af6b3133371278b4.verified.txt @@ -0,0 +1,231 @@ + + + + +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. 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_b1be5a7303cd1845.verified.txt @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_d22662ea445fd590.verified.txt b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_d22662ea445fd590.verified.txt new file mode 100644 index 00000000..2de95b88 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_d22662ea445fd590.verified.txt @@ -0,0 +1,21 @@ +Microsoft Public License (MS-PL) +This license governs use of the accompanying software. If you use the software, you +accept this license. If you do not accept the license, do not use the software. + +1. Definitions +The terms "reproduce," "reproduction," "derivative works," and "distribution" have the +same meaning here as under U.S. copyright law. +A "contribution" is the original software, or any additions or changes to the software. +A "contributor" is any person that distributes its contribution under this license. +"Licensed patents" are a contributor's patent claims that read directly on its contribution. + +2. Grant of Rights +(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. +(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. + +3. Conditions and Limitations +(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. +(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. +(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. +(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. +(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. \ 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 new file mode 100644 index 00000000..5f282702 --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_dacc9e1876bd896e.verified.txt @@ -0,0 +1 @@ + \ 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 new file mode 100644 index 00000000..0e6edd2c --- /dev/null +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.License_Should_Be_Available_And_Match_Expected_License_f5509440f5d1de5e.verified.txt @@ -0,0 +1,899 @@ + + + + +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 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. + +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 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. + +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 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. + +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. diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_0a0d7369b800fefd.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_0a0d7369b800fefd.verified.html deleted file mode 100644 index 880204ad..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_0a0d7369b800fefd.verified.html +++ /dev/null @@ -1 +0,0 @@ -MIT License Copyright (c) 2018 red 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.ValidatedLicenses_Should_PrintCorrectTable_228fe7ebd4f1e3d0.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_228fe7ebd4f1e3d0.verified.html deleted file mode 100644 index da3725ed..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_228fe7ebd4f1e3d0.verified.html +++ /dev/null @@ -1,4 +0,0 @@ -MIT License Bogus - Copyright (c) 2015 Brian Chavez * http://github.com/bchavez/Bogus * http://bchavez.bitarmory.com faker.js - Copyright (c) 2014-2015 Matthew Bergman & Marak Squires http://github.com/marak/faker.js/ faker.js was inspired by and has used data definitions from: Copyright (c) 2007-2010 Benjamin Curtis https://github.com/stympy/faker/ Copyright 2004-2005 by Jason Kohles http://search.cpan.org/~jasonk/Data-Faker-0.07/ Copyright (c) ZZZ Projects Inc. 2014 - 2016 https://github.com/zzzprojects/Z.ExtensionMethods/ Copyright (c) 2015 kernys https://github.com/kernys/Kernys.Bson Copyright (c) 2015 Victor Quinn https://github.com/chancejs/chancejs Copyright (c) 2014 Chris Veness https://github.com/chrisveness/geodesy/ Copyright (c) 2013, Richard Morris https://github.com/domaindrivendev/Swashbuckle/blob/master/LICENSE Copyright (c) 2012 Daniele Faraglia https://github.com/joke2k/faker/ 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. ================================================================================ The BSD 3-Clause License (BSD3) Copyright (c) 2013-2017 Sascha Droste - - All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_22e062c15379c13a.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_22e062c15379c13a.verified.html deleted file mode 100644 index d57841f2..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_22e062c15379c13a.verified.html +++ /dev/null @@ -1,17 +0,0 @@ - - - -
-

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 diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_428b264ee36ee41a.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_428b264ee36ee41a.verified.html deleted file mode 100644 index 803b340e..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_428b264ee36ee41a.verified.html +++ /dev/null @@ -1,802 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -AutoMapper/LICENSE.txt at master · AutoMapper/AutoMapper · GitHub - - - - - - - - - - - -
-
- Skip to content - - - - -
-
- - -
-
-
- -
- - -
-

Footer

-
-
- - - - - © 2024 GitHub, Inc. - -
- -
-
- - - - - - -
-
-
\ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_4361ac729d63963d.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_4361ac729d63963d.verified.html deleted file mode 100644 index eff5f90f..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_4361ac729d63963d.verified.html +++ /dev/null @@ -1,778 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -Microsoft.IO.RecyclableMemoryStream/LICENSE at master · microsoft/Microsoft.IO.RecyclableMemoryStream · GitHub - - - - - - - - - - - -
-
- Skip to content - - - - -
-
- - -
-
-
- -
- - -
-

Footer

-
-
- - - - - © 2024 GitHub, Inc. - -
- -
-
- - - - - - -
-
-
\ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_4dd15ac9f11cd17c.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_4dd15ac9f11cd17c.verified.html deleted file mode 100644 index 8754738c..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_4dd15ac9f11cd17c.verified.html +++ /dev/null @@ -1,441 +0,0 @@ - - -
-

- - 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.ValidatedLicenses_Should_PrintCorrectTable_56f779c494389d69.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_56f779c494389d69.verified.html deleted file mode 100644 index 61e64c9c..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_56f779c494389d69.verified.html +++ /dev/null @@ -1,358 +0,0 @@ - - - -
-

- 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. - - T - he 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.ValidatedLicenses_Should_PrintCorrectTable_5a6a8426f157cb07.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5a6a8426f157cb07.verified.html deleted file mode 100644 index 8754738c..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5a6a8426f157cb07.verified.html +++ /dev/null @@ -1,441 +0,0 @@ - - -
-

- - 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.ValidatedLicenses_Should_PrintCorrectTable_5b045172ae56c820.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5b045172ae56c820.verified.html deleted file mode 100644 index fa57c023..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5b045172ae56c820.verified.html +++ /dev/null @@ -1,2 +0,0 @@ - -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.ValidatedLicenses_Should_PrintCorrectTable_5e3ed529434f955d.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5e3ed529434f955d.verified.html deleted file mode 100644 index 92979a14..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5e3ed529434f955d.verified.html +++ /dev/null @@ -1,820 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -SkiaSharp/LICENSE.md at main · mono/SkiaSharp · GitHub - - - - - - - - - - - -
-
- Skip to content - - - - -
-
- - -
-
-
- -
- - -
-

Footer

-
-
- - - - - © 2024 GitHub, Inc. - -
- -
-
- - - - - - -
-
-
\ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5ee1cd856c331a32.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5ee1cd856c331a32.verified.html deleted file mode 100644 index fe56f03a..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_5ee1cd856c331a32.verified.html +++ /dev/null @@ -1,510 +0,0 @@ - - - - - -
- - - -
- - -
- -
- Apache 20th Anniversary Logo -
-
-
-
-

Apache License, Version 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 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:

-
    -
  1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
  2. -
  3. You must cause any modified files to carry prominent notices stating that You changed the files; and
  4. -
  5. 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
  6. -
  7. 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. -
  8. -
-

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.

-
-          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.ValidatedLicenses_Should_PrintCorrectTable_631a3cca888994b1.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_631a3cca888994b1.verified.html deleted file mode 100644 index 8030e700..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_631a3cca888994b1.verified.html +++ /dev/null @@ -1 +0,0 @@ -The MIT License (MIT) Copyright (c) 2007 James Newton-King 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.ValidatedLicenses_Should_PrintCorrectTable_63a0ec25be40d11a.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_63a0ec25be40d11a.verified.html deleted file mode 100644 index 5e6a456a..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_63a0ec25be40d11a.verified.html +++ /dev/null @@ -1,47 +0,0 @@ - - - -
-

MIT License

-

SPDX identifier

-
MIT
-

License text

-
-

MIT License

-
-
-

Copyright (c) <year> <copyright holders> -

-
-

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.

-

SPDX web page

- -

Notice

-

This license content is provided by the - SPDX project. For more information about - licenses.nuget.org, see - our documentation. -

-

- Data pulled from - spdx/license-list-data - on February 9, 2023. -

-
- - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_63cad523536fe5ca.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_63cad523536fe5ca.verified.html deleted file mode 100644 index 5c10ad06..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_63cad523536fe5ca.verified.html +++ /dev/null @@ -1,495 +0,0 @@ - - - -
- - - -
-
- -
- -
-
-

- -  [A GNU head]  - GNU - Operating System - -
- Supported by the - Free Software Foundation - -

-
-
- -  [Search www.gnu.org]  - -
-
- -  [Other languages]  - -
-
-
- - - -
-
- - Site navigation - - - Skip - - -
-
- - -
- - -
-

GNU General Public License, version 2

-

- - Skip to license text - -

- -
-

Table of Contents

- -
- - -
-

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. -

- -

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. -

-

- 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. -

-

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. -

-
-              one line to give the program's name and an idea of what it does.
-              Copyright (C)
-              yyyy
-              name of author
-              This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.  You should have received a copy of the GNU General Public License along with this program; if not, 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: -

-
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: -

-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written  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. -

-
-
-
- - -
-
-
-
- - - -
-
- - -

Available for this page:

-
-

- [en]English - [cs]čeština - [de]Deutsch - [fr]français - [ja]日本語 - [pt-br]português - [ru]русский - [uk]українська - [zh-cn]简体中文 -

-
-
-
-
- -
-
-

- -  [FSF logo]  - - - “The Free Software Foundation (FSF) is a nonprofit with a worldwide mission to promote computer user freedom. We defend the rights of all software users.” -

-
-
- JOIN - - SHOP -
-
- - -
-
-

Please send general FSF & GNU inquiries to - <gnu@gnu.org>. There are also - other ways to contact - the FSF. Broken links and other corrections or suggestions can be sent to - <webmasters@gnu.org>.

-

- Please see the - Translations README - for information on coordinating and contributing translations of this article.

-
-

Copyright notice above.

- - - - - -

Updated: - $Date: 2023/11/30 09:46:01 $ - -

-
-
- - - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_675228b0289c97b9.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_675228b0289c97b9.verified.html deleted file mode 100644 index 826b1dde..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_675228b0289c97b9.verified.html +++ /dev/null @@ -1,715 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -corefx/LICENSE.TXT at master · dotnet/corefx · GitHub - - - - - - - - - - - -
-
- Skip to content - - - - -
-
- - -
-
-
- -
- -
-
-
-
- This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
-
-
-
- - - / - - corefx - - - Public archive -
-
- -
-
- -
- -
- -
-
-
-
-
-
-
-
-

Footer

-
-
- - - - - © 2024 GitHub, Inc. - -
- -
-
- - - - - - -
-
-
\ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_6d2eeb842e225813.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_6d2eeb842e225813.verified.html deleted file mode 100644 index 222e63a9..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_6d2eeb842e225813.verified.html +++ /dev/null @@ -1 +0,0 @@ -Copyright (c) .NET Foundation and Contributors All rights reserved. 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.ValidatedLicenses_Should_PrintCorrectTable_81bab0f76a137fc6.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_81bab0f76a137fc6.verified.html deleted file mode 100644 index 996f4114..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_81bab0f76a137fc6.verified.html +++ /dev/null @@ -1 +0,0 @@ -OData .NET Libraries - ODataLib Copyright (c) 2018 Microsoft. All rights reserved. Material in this repository is made available under the following terms: 1. Code is licensed under the MIT license, reproduced below. 2. Documentation is licensed under the Creative Commons Attribution 3.0 United States (Unported) License. The text of the license can be found here: http://creativecommons.org/licenses/by/3.0/legalcode 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.ValidatedLicenses_Should_PrintCorrectTable_97f12ec44714bb11.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_97f12ec44714bb11.verified.html deleted file mode 100644 index 3f4f5b60..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_97f12ec44714bb11.verified.html +++ /dev/null @@ -1,814 +0,0 @@ - - - - - - Skip to main content - -
-
- -
-
-
-
-
- -
-
-
-
-
-
-
-

-

-
-
- -
-

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:

-
    -
  1. - You must give any other recipients of the Work or Derivative Works a copy of this License; and -
  2. -
  3. You must cause any modified files to carry prominent notices stating that You changed the files; and -
  4. -
  5. 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 -
  6. -
  7. 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.
  8. -
-

- 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
-

-
-
-
-
-
-

-
-
-
-
-
-
-
- - - -
-
-
-
-

- Ending Support for Internet Explorer

- - Got it - -
-
- AWS support for Internet Explorer ends on 07/31/2022. Supported browsers are Chrome, Firefox, Edge, and Safari. - Learn more » -
- -
-
-
- - - - - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_9b93b4d121368c0c.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_9b93b4d121368c0c.verified.html deleted file mode 100644 index 1a6a71ab..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_9b93b4d121368c0c.verified.html +++ /dev/null @@ -1,365 +0,0 @@ - - -
-

- 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. - - T - he 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.ValidatedLicenses_Should_PrintCorrectTable_a8bbd9c75d4635f7.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a8bbd9c75d4635f7.verified.html deleted file mode 100644 index b078cc6e..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a8bbd9c75d4635f7.verified.html +++ /dev/null @@ -1,739 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -html-agility-pack/LICENSE at master · zzzprojects/html-agility-pack · GitHub - - - - - - - - - - - -
-
- Skip to content - - - - -
-
- - -
-
-
- -
- -
-
-
- - -
- -
-
-
-
-
-
-
-
-

Footer

-
-
- - - - - © 2024 GitHub, Inc. - -
- -
-
- - - - - - -
-
-
\ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a8e00974c5776df1.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a8e00974c5776df1.verified.html deleted file mode 100644 index ca9ffe21..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a8e00974c5776df1.verified.html +++ /dev/null @@ -1,211 +0,0 @@ - - - - -Apache log4net – Project License - Apache log4net - - - - - Apache logging services logo - - - -
- -
- - - - - - - -
-
-

- Overview

- -

Typically the licenses listed for the project are that of the project itself, and not of dependencies.

-
-
-

- Project License

- -
-

- Apache License, Version 2.0

- -
-
-
-
-
-
-
-
- \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a9fd1bef8d8d1baa.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a9fd1bef8d8d1baa.verified.html deleted file mode 100644 index 00130f19..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_a9fd1bef8d8d1baa.verified.html +++ /dev/null @@ -1,1564 +0,0 @@ - - -
-

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 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. - -

-

- 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 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. - -

-

- 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 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. - -

-

- 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 - - - . -

-

- -

-
- - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_af6b3133371278b4.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_af6b3133371278b4.verified.html deleted file mode 100644 index 61e64c9c..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_af6b3133371278b4.verified.html +++ /dev/null @@ -1,358 +0,0 @@ - - - -
-

- 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. - - T - he 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.ValidatedLicenses_Should_PrintCorrectTable_b1be5a7303cd1845.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_b1be5a7303cd1845.verified.html deleted file mode 100644 index 568d32b0..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_b1be5a7303cd1845.verified.html +++ /dev/null @@ -1,517 +0,0 @@ - - - -
- - -
-
- -

Search Our Site

-
-

Search

- -
-
-
-
-
-
- - -
-
-
-
-
-
- - - -

The MIT License

-

- Version N/A - - SPDX short identifier: MIT - -

-
-
- Open Source Initiative Approved License -
-
-
-
-
-
-
-

- Copyright <YEAR> <COPYRIGHT HOLDER> -

-
-
-

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.ValidatedLicenses_Should_PrintCorrectTable_d22662ea445fd590.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_d22662ea445fd590.verified.html deleted file mode 100644 index 66eaae12..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_d22662ea445fd590.verified.html +++ /dev/null @@ -1 +0,0 @@ -Microsoft Public License (MS-PL) This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution. 2. Grant of Rights (A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create. (B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software. 3. Conditions and Limitations (A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks. (B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically. (C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software. (D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license. (E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement. \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_dacc9e1876bd896e.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_dacc9e1876bd896e.verified.html deleted file mode 100644 index 0c0fcb78..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_dacc9e1876bd896e.verified.html +++ /dev/null @@ -1,780 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -owin-hosting/LICENSE.txt at master · owin-contrib/owin-hosting · GitHub - - - - - - - - - - - -
-
- Skip to content - - - - -
-
- - -
-
-
- -
- - -
-

Footer

-
-
- - - - - © 2024 GitHub, Inc. - -
- -
-
- - - - - - -
-
-
\ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_f5509440f5d1de5e.verified.html b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_f5509440f5d1de5e.verified.html deleted file mode 100644 index 00130f19..00000000 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.ValidatedLicenses_Should_PrintCorrectTable_f5509440f5d1de5e.verified.html +++ /dev/null @@ -1,1564 +0,0 @@ - - -
-

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 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. - -

-

- 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 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. - -

-

- 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 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. - -

-

- 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 - - - . -

-

- -

-
- - \ No newline at end of file diff --git a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs index f76c2f36..49936673 100644 --- a/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs +++ b/tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs @@ -1,63 +1,30 @@ // Licensed to the projects contributors. // The license conditions are provided in the LICENSE file located in the project root -using System.Runtime.CompilerServices; +using AngleSharp; using AngleSharp.Dom; using NuGetUtility.LicenseValidator; -using VerifyTests.AngleSharp; namespace NuGetUtility.Test.LicenseValidator { [TestFixture] public class UrlToLicenseMappingTest { - [ModuleInitializer] - public static void InitializeAngleSharpDiffing() => - VerifyAngleSharpDiffing.Initialize(); - + [Ignore("this test is not yet stable enough")] [Parallelizable(scope: ParallelScope.All)] [TestCaseSource(typeof(UrlToLicenseMapping), nameof(UrlToLicenseMapping.Default))] - public async Task ValidatedLicenses_Should_PrintCorrectTable(KeyValuePair mappedValue) + public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValuePair mappedValue) { - var request = new HttpRequestMessage(HttpMethod.Get, mappedValue.Key); + IConfiguration config = Configuration.Default.WithDefaultLoader(); + IBrowsingContext context = BrowsingContext.New(config); + IDocument document = await context.OpenAsync(mappedValue.Key.ToString()); - HttpResponseMessage response = await new HttpClient().SendAsync(request, HttpCompletionOption.ResponseHeadersRead); - response.EnsureSuccessStatusCode(); - string html = await response.Content.ReadAsStringAsync(); + await Verify(document.Body?.TextContent).HashParameters().UseStringComparer(CompareLicense); + } - await Verify(html, "html").PrettyPrintHtml(nodes => - { - foreach (IElement node in nodes.QuerySelectorAll("head")) - { - node.Remove(); - } - foreach (IElement node in nodes.QuerySelectorAll("script")) - { - node.Remove(); - } - foreach (IElement node in nodes.QuerySelectorAll("meta")) - { - node.Remove(); - } - foreach (IElement node in nodes.QuerySelectorAll("qbsearch-input")) - { - node.Remove(); - } - foreach (IElement node in nodes.QuerySelectorAll("input").Where(e => e.Attributes.Any(a => a.Name == "type" && a.Value == "hidden"))) - { - node.Remove(); - } - nodes.ScrubAttributes("aria-describedby"); - nodes.ScrubAttributes("data-delete-custom-scopes-csrf"); - nodes.ScrubAttributes("id"); - nodes.ScrubAttributes("for"); - nodes.ScrubAttributes("anchor"); - nodes.ScrubAttributes("aria-labelledby"); - nodes.ScrubAttributes("popovertarget"); - nodes.ScrubAttributes("aria-controls"); - nodes.ScrubAttributes("data-cookie-consent-required"); - nodes.ScrubEmptyDivs(); - }).HashParameters(); + private Task CompareLicense(string received, string verified, IReadOnlyDictionary context) + { + return Task.FromResult(new CompareResult((!string.IsNullOrWhiteSpace(verified)) && received.Contains(verified))); } } } diff --git a/tests/NuGetUtility.Test/NuGetUtility.Test.csproj b/tests/NuGetUtility.Test/NuGetUtility.Test.csproj index afd075d8..db179bdf 100644 --- a/tests/NuGetUtility.Test/NuGetUtility.Test.csproj +++ b/tests/NuGetUtility.Test/NuGetUtility.Test.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0;net8.0 + net472;net6.0;net7.0;net8.0 enable enable @@ -12,7 +12,12 @@ AnyCPU + + 10.0 + + + @@ -26,10 +31,16 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + diff --git a/tests/NuGetUtility.Test/ReferencedPackagesReader/ReferencedPackagesReaderIntegrationTest.cs b/tests/NuGetUtility.Test/ReferencedPackagesReader/ReferencedPackagesReaderIntegrationTest.cs index 6d78c08f..bd9e21df 100644 --- a/tests/NuGetUtility.Test/ReferencedPackagesReader/ReferencedPackagesReaderIntegrationTest.cs +++ b/tests/NuGetUtility.Test/ReferencedPackagesReader/ReferencedPackagesReaderIntegrationTest.cs @@ -14,10 +14,13 @@ public class ReferencedPackagesReaderIntegrationTest [SetUp] public void SetUp() { - IMsBuildAbstraction msBuildAbstraction = OperatingSystem.IsWindows() ? new WindowsMsBuildAbstraction() : new MsBuildAbstraction(); +#if NETFRAMEWORK + IPackagesConfigReader packagesConfigReader = new WindowsPackagesConfigReader(); +#else IPackagesConfigReader packagesConfigReader = OperatingSystem.IsWindows() ? new WindowsPackagesConfigReader() : new FailingPackagesConfigReader(); +#endif - _uut = new ReferencedPackageReader(msBuildAbstraction, new LockFileFactory(), packagesConfigReader); + _uut = new ReferencedPackageReader(new MsBuildAbstraction(), new LockFileFactory(), packagesConfigReader); } private ReferencedPackageReader? _uut; @@ -44,7 +47,7 @@ public void GetInstalledPackagesShould_ReturnTransitivePackages() } [Test] - public void GetInstalledPackagesShould_ReturnTransitiveNuget() + public void GetInstalledPackagesShould_ReturnTransitiveNuGet() { string path = Path.GetFullPath( "../../../../targets/ProjectWithTransitiveNuget/ProjectWithTransitiveNuget.csproj"); @@ -71,7 +74,7 @@ public void GetInstalledPackagesShould_ReturnEmptyEnumerableForProjectsWithoutPa [Test] [Platform(Include = "Win")] - public void GetInstalledPackagesShould_ReturnPackagesForPackagesConfigProject() + public void GetInstalledPackagesShould_ReturnPackages_For_PackagesConfigProject() { string path = Path.GetFullPath("../../../../targets/PackagesConfigProject/PackagesConfigProject.csproj"); @@ -82,12 +85,33 @@ public void GetInstalledPackagesShould_ReturnPackagesForPackagesConfigProject() [Test] [Platform(Exclude = "Win")] - public void GetInstalledPackagesShould_ThrowError() + public void GetInstalledPackagesShould_ThrowError_PackagesConfigProject() { string path = Path.GetFullPath("../../../../targets/PackagesConfigProject/PackagesConfigProject.csproj"); PackagesConfigReaderException? exception = Assert.Throws(() => _uut!.GetInstalledPackages(path, false)); Assert.That(exception?.Message, Is.EqualTo($"Invalid project structure detected. Currently packages.config projects are only supported on Windows (Project: {path})")); } + +#if NETFRAMEWORK + [Test] + public void GetInstalledPackagesShould_ReturnPackages_For_NativeCppProject() + { + string path = Path.GetFullPath("../../../../targets/SimpleCppProject/SimpleCppProject.vcxproj"); + + IEnumerable result = _uut!.GetInstalledPackages(path, false); + + Assert.That(result.Count, Is.EqualTo(2)); + } +#else + [Test] + public void GetInstalledPackagesShould_ThrowError_For_PackagesForNativeCppProject() + { + string path = Path.GetFullPath("../../../../targets/SimpleCppProject/SimpleCppProject.vcxproj"); + + MsBuildAbstractionException? exception = Assert.Throws(() => _uut!.GetInstalledPackages(path, false)); + Assert.That(exception?.Message, Is.EqualTo($"Please use the .net Framework version to analyze c++ projects (Project: {path})")); + } +#endif } } diff --git a/tests/targets/SimpleCppProject/SimpleCppProject.vcxproj b/tests/targets/SimpleCppProject/SimpleCppProject.vcxproj new file mode 100644 index 00000000..96094890 --- /dev/null +++ b/tests/targets/SimpleCppProject/SimpleCppProject.vcxproj @@ -0,0 +1,144 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {380fbd90-2cf0-4f83-a58e-eb98ce2eae15} + SimpleCppProject + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/tests/targets/SimpleCppProject/SimpleCppProject.vcxproj.filters b/tests/targets/SimpleCppProject/SimpleCppProject.vcxproj.filters new file mode 100644 index 00000000..e6bf14cf --- /dev/null +++ b/tests/targets/SimpleCppProject/SimpleCppProject.vcxproj.filters @@ -0,0 +1,20 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + \ No newline at end of file diff --git a/tests/targets/SimpleCppProject/packages.config b/tests/targets/SimpleCppProject/packages.config new file mode 100644 index 00000000..2968f8c5 --- /dev/null +++ b/tests/targets/SimpleCppProject/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file