100 references to GetResourcePath
Microsoft.DotNet.SignTool.Tests (100)
SignToolTests.cs (100)
586new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg"), "") 621new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg")) 653new ItemToSign(GetResourcePath("SignedLibrary.dll")), 654new ItemToSign(GetResourcePath("StrongNamedWithEcmaKey.dll")) 675new ItemToSign(GetResourcePath("DelaySigned.dll")) 699new ItemToSign(GetResourcePath("Crossgenned.exe")) 723new ItemToSign(GetResourcePath("OpenSigned.dll")) 751new ItemToSign(GetResourcePath(fileToTest), "123") 784new ItemToSign(GetResourcePath(GetResourcePath("ContainerOne.1.0.0.nupkg"))) 826new ItemToSign(GetResourcePath("ContainerOne.1.0.0.nupkg"), "123") 866new ItemToSign(GetResourcePath("EmptyPKT.dll")) 893new ItemToSign(GetResourcePath("CoreLibCrossARM.dll"), "123"), 894new ItemToSign(GetResourcePath("AspNetCoreCrossLib.dll"), "123") 933new ItemToSign(GetResourcePath("EmptyPKT.dll"), "123") 955new ItemToSign(GetResourcePath("CustomTargetFrameworkAttribute.dll"), "123") 980new ItemToSign(GetResourcePath("EmptyPKT.dll")) 1002new ItemToSign(GetResourcePath("EmptyPKT.dll")) 1022new ItemToSign(GetResourcePath("PackageWithWix.nupkg"), "123"), 1023new ItemToSign(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), "123") 1074new ItemToSign(GetResourcePath("NestedContainer.1.0.0.nupkg"), "123") 1140<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 1152new ItemToSign(GetResourcePath("NestedContainer.1.0.0.nupkg"), "123") 1223<FilesToSign Include=""{Uri.EscapeDataString(GetResourcePath("NestedContainer.1.0.0.nupkg"))}""> 1235new ItemToSign(GetResourcePath("test.zip")) 1291new ItemToSign(GetResourcePath("test.pkg")) 1325new ItemToSign(GetResourcePath("test.pkg")) 1382new ItemToSign(GetResourcePath("test.pkg")) 1458new ItemToSign( GetResourcePath("NestedPkg.pkg")) 1510new ItemToSign( GetResourcePath("WithApp.pkg")) 1556new ItemToSign(GetResourcePath("test.tgz")) 1608new ItemToSign(GetResourcePath("test.symbols.nupkg")) 1660new ItemToSign(GetResourcePath("test.symbols.nupkg")) 1714new ItemToSign(GetResourcePath("test.deb")) 1758new ItemToSign(GetResourcePath("test.rpm")) 1786new ItemToSign(GetResourcePath("test.rpm")) 1828new ItemToSign(GetResourcePath("SignedDeb.deb")), 1829new ItemToSign(GetResourcePath("IncorrectlySignedDeb.deb")) 1859new ItemToSign(GetResourcePath("SignedRpm.rpm")), 1860new ItemToSign(GetResourcePath("IncorrectlySignedRpm.rpm")) 1891new ItemToSign(GetResourcePath("SignedScript.ps1")), 1892new ItemToSign(GetResourcePath("UnsignedScript.ps1")) 1959new ItemToSign(GetResourcePath("MsiBootstrapper.exe")), 1960new ItemToSign(GetResourcePath("MsiBootstrapper.exe.wixpack.zip")) 2007new ItemToSign(GetResourcePath("MsiBootstrapper5.exe")), 2008new ItemToSign(GetResourcePath("MsiBootstrapper5.exe.wixpack.zip")), 2009new ItemToSign(GetResourcePath("MsiSetup5.msi.wixpack.zip")) 2060new ItemToSign(GetResourcePath("MsiSetup.msi"), "123"), 2061new ItemToSign(GetResourcePath("MsiSetup.msi.wixpack.zip"), "123") 2128new ItemToSign(GetResourcePath("test.mpack")) 2162new ItemToSign(GetResourcePath("test.vsix"), "123"), 2163new ItemToSign(GetResourcePath("PackageWithRelationships.vsix"), "123") 2223new ItemToSign(GetResourcePath("TestSpaces.vsix"), "123"), 2224new ItemToSign(GetResourcePath("PackageWithRelationships.vsix"), "123") 2284new ItemToSign(GetResourcePath("PackageWithRelationships.vsix")), 2285new ItemToSign(GetResourcePath("test.vsix")) 2341new ItemToSign(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), "123"), 2342new ItemToSign(GetResourcePath("test.vsix"), "123"), 2343new ItemToSign(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), "123") 2403new ItemToSign(GetResourcePath("PackageWithRelationships.vsix")) 2442new ItemToSign(GetResourcePath("ZeroLengthPythonFile.py")) 2554new ItemToSign(GetResourcePath("SameFiles1.zip"), "123"), 2555new ItemToSign(GetResourcePath("SameFiles2.zip"), "123"), 2584new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 2589new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 2700new ItemToSign(GetResourcePath("SignedLibrary.dll")), 2729new ItemToSign(GetResourcePath("SignedLibrary.dll")), 2758new ItemToSign( GetResourcePath("PackageWithZip.nupkg"), "123") 2790new ItemToSign( GetResourcePath("NestedZip.zip")) 2831new ItemToSign(GetResourcePath("EmptyPKT.dll"), "123"), 2832new ItemToSign(GetResourcePath("test.vsix"), "123"), 2833new ItemToSign(GetResourcePath("Simple.nupkg"), "123"), 2836new ItemToSign(GetResourcePath("Simple.symbols.nupkg"), "123"), 2838new ItemToSign(GetResourcePath("filewithoutextension"), "123"), 2840new ItemToSign(GetResourcePath("SPCNoPKT.dll"), "123"), 2842new ItemToSign(GetResourcePath("Simple.exe"), "1234") 2931GetResourcePath(resourcePath) : 2972GetResourcePath(value.ResourcePath) : 3011new ItemToSign(GetResourcePath("SPCNoPKT.dll"), "123") 3045var wixpackPath = GetResourcePath(wixPack); 3106StrongNameHelper.IsSigned(GetResourcePath("AspNetCoreCrossLib.dll")).Should().BeFalse(); 3107StrongNameHelper.IsSigned(GetResourcePath("CoreLibCrossARM.dll")).Should().BeFalse(); 3108StrongNameHelper.IsSigned(GetResourcePath("EmptyPKT.dll")).Should().BeFalse(); 3109StrongNameHelper.IsSigned(GetResourcePath("DelaySigned.dll")).Should().BeFalse(); 3110StrongNameHelper.IsSigned(GetResourcePath("ProjectOne.dll")).Should().BeFalse(); 3172using var inputStream = File.OpenRead(GetResourcePath("SignedLibrary.dll")); 3186using var inputStream = File.OpenRead(GetResourcePath("SignedLibrary.dll")); 3201using var inputStream = File.OpenRead(GetResourcePath("InvalidatedStrongName.dll")); 3217StrongNameHelper.IsSigned(GetResourcePath("SignedLibrary.dll")).Should().BeTrue(); 3218StrongNameHelper.IsSigned(GetResourcePath("StrongNamedWithEcmaKey.dll")).Should().BeTrue(); 3224StrongNameHelper.IsSigned_Legacy(GetResourcePath("SignedLibrary.dll"), s_snPath).Should().BeTrue(); 3225StrongNameHelper.IsSigned_Legacy(GetResourcePath("StrongNamedWithEcmaKey.dll"), s_snPath).Should().BeTrue(); 3234string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3236StrongNameHelper.Sign(resourcePath, GetResourcePath(key)); 3251string resourcePath = GetResourcePath(file, Guid.NewGuid().ToString()); 3255StrongNameHelper.Sign_Legacy(resourcePath, GetResourcePath(key), s_snPath).Should().BeTrue(); 3263using (var inputStream = File.OpenRead(GetResourcePath("StrongNamedWithEcmaKey.dll"))) 3265Action shouldFail = () => StrongNameHelper.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk")); 3274using (var inputStream = File.OpenRead(GetResourcePath("DelaySigned.dll"))) 3276Action shouldFail = () => StrongNameHelper.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk"));