Closed int2e closed 2 months ago
You are correct. After porting the codebase to .NET Core the usage of AssemblyDescriptionAttribute has changed and it holds now the location of the assembly file but not its source. This defect breaks this functionality. And on top of it the documentation was not changed to reflect that.
I have reviewed the code and believe that the decision for repurposing AssemblyDescriptionAttribute
was not the best.
I am requalifying this issue as a defect and going to fix it. I will publish the HotFix release very soon.
I just have published the pre-release of the fix on nuget.org
dotnet add package CS-Script --version 4.8.16-pre
I just have published the pre-release of the fix on nuget.org我刚刚发布了修复程序的预发布 nuget.org
dotnet add package CS-Script --version 4.8.16-pre
4.8.16-pre
can obtain the path!
thanks!
https://github.com/oleg-shilo/cs-script/wiki/CS-Script-Runtime-Environment-%28script-reflection%29
var scriptName = Assembly.GetExecutingAssembly().GetScriptName();
scriptName is null
Does it only work in cli?