fix strange issue with capitalization of assembly name

This commit is contained in:
rafael-aero
2021-06-28 16:08:00 +02:00
parent d8ba9d9372
commit f78573401a
2 changed files with 6 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
variables:
PackageVersion: 12.0.0.$(Build.BuildId)
projectAPI: './ElectronNet.API/ElectronNet.API.csproj'
projectCLI: './ElectronNet.CLI/ElectronNet.CLI.csproj'
projectAPI: './ElectronNET.API/ElectronNET.API.csproj'
projectCLI: './ElectronNET.CLI/ElectronNET.CLI.csproj'
trigger:
- master

View File

@@ -7,13 +7,16 @@ namespace ElectronNET.CLI
public static class EmbeddedFileHelper
{
private const string ResourcePath = "ElectronNET.CLI.{0}";
private const string ResourcePath2 = "ElectronNet.CLI.{0}";
private static Stream GetTestResourceFileStream(string folderAndFileInProjectPath)
{
var asm = Assembly.GetExecutingAssembly();
var resource = string.Format(ResourcePath, folderAndFileInProjectPath);
var resource2 = string.Format(ResourcePath2, folderAndFileInProjectPath);
var stream = asm.GetManifestResourceStream(resource) ?? asm.GetManifestResourceStream(resource2);
var stream = asm.GetManifestResourceStream(resource);
if(stream is null)
{
PrintAllResources();