fix: Get rid of hardcoded path to dll
Use Assembly.Location instead
Bugs (fixed):
* PubSubServer throws an exception on startup because it can't find
dll at hardcoded path
This commit is contained in:
1 parent
3b059ebdfa
commit
292fa54dda
1 file changed
+7
-2
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace BCG {
|
||||
[Serializable]
|
||||
@@ -6,8 +8,11 @@ namespace BCG {
|
||||
//[Serializable]
|
||||
public class Entry {
|
||||
public string handlerClass = "BCG.PubSubServerTagHandler";
|
||||
// TODOds
|
||||
public string assembly = "C:\\Users\\m_tah\\spark\\build\\Debug\\bin\\net7.0\\DataStreamCore.dll";
|
||||
|
||||
public string assembly = Path.Combine(
|
||||
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!,
|
||||
"DataStreamCore.dll");
|
||||
|
||||
public override string ToString() {
|
||||
return $"handlerClass: {handlerClass} assembly: {assembly}";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user