mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-23 15:34:37 +00:00
fix strange issue with capitalization of assembly name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user