Skip to content

Remove hard-coded resource name from src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs #763

Closed

Description

@vors

We have a hard-coded resource name, and because dotnet cli force a naming pattern for resources, we have this commit f76838c

> git show f76838cc019ee9afee46c2b53c610f796cdd1391
commit f76838c
Author: Sergei Vorobev <sevoroby@microsoft.com>
Date:   Wed Mar 30 18:00:21 2016 -0700

    Fix hardcoded path to resources in EventLogLogProvider.cs

    Conflicts:
        src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs

diff --git a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs b/src/System.Management.Automation/logging/eventlog/EventLogLo
index eaecb49..378a467 100644
--- a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
+++ b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
@@ -41,7 +41,7 @@ namespace System.Management.Automation
             _eventLog = new EventLog();
             _eventLog.Source = source;

-            _resourceManager = new ResourceManager("Logging", System.Reflection.Assembly.GetExecutingAssembly());
+            _resourceManager = new ResourceManager("System.Management.Automation.resources.Logging", System.Reflection.Assembly.GetExecutingAssembl
         }

         internal string SetupEventSource(string shellId)

We should address it properly: replace direct ResourceManager usage by generated strongly-typed resources.

Activity

  1. self-assigned this
    on Apr 5, 2016
  2. andyleejordan commented on Apr 5, 2016

    @andyleejordan
    Member

    This is a duplicate of #745.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Resolution-Duplicate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions