8000 Errors, Fails to reference System.Reactive · Issue #625 · dotnet-script/dotnet-script · GitHub
[go: up one dir, main page]

Skip to content
Errors, Fails to reference System.Reactive #625
Open
@dave-yotta

Description

@dave-yotta

I had this runtime dll not found problem when referencing one of our packages that uses System.Reactive, I'll show at end. I tried a simple repro script and found it's not resolving System.Reactive at all for some reason:

root@docker-desktop:~/testy# cat main.csx
#! "netcoreapp3.1"
#r "nuget: System.Reactive, 5.0"
using System.Reactive.Disposables;

var davv = new RefCountDisposable(null);
root@docker-desktop:~/testy# dotnet script main.csx
warn: Dotnet.Script.Core.Commands.ExecuteScriptCommand[0]
      The script /root/testy/main.csx is not cacheable. For caching and optimal performance, ensure that the script only contains NuGet references with pinned/exact versions.
warn: Dotnet.Script.DependencyModel.Context.CachedRestorer[0]
      Unable to cache /root/.cache/dotnet-script/root/testy/netcoreapp3.1/script.csproj. For caching and optimal performance, ensure that the script(s) references Nuget packages with a pinned version.
/root/testy/main.csx(3,14): error CS0234: The type or namespace name 'Reactive' does not exist in the namespace 'System' (are you missing an assembly reference?)
/root/testy/main.csx(5,16): error CS0246: The type or namespace name 'RefCountDisposable' could not be found (are you missing a using directive or an assembly reference?)

Not sure why it thinks it's not cacheable either - System.Reactive has no netcoreapp3.1 dependencies - perhaps its picking .net standard, those are >= conditions. Original runtime error I got, same thing just late bound.

System.IO.FileNotFoundException: Could not load file or assembly 'System.Reactive, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'. The system cannot find the file specified.

File name: 'System.Reactive, Version=5.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.Scripting.Services.Implementations.AlloyWorkflowsDaemon.AlloyDaemonCacheValue..ctor(AlloyWorkflowsDaemon daemon)
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.Scripting.Services.Implementations.AlloyWorkflowsDaemon.AlloyDaemonCacheEntry.StartNewDaemon(String pathToDaemonExecutable, String daemonUser, String daemonUserPassword)
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.Scripting.Services.Implementations.AlloyWorkflowsDaemon.AlloyDaemonCacheEntry.TryGetDaemonReference()
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.Scripting.Services.Implementations.AlloyWorkflowsDaemon.AlloyWorkflowsDaemonFactory.GetOrCreate()
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.WorkflowVirtualParameterElementScript.GetNeeds()
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.WorkflowParameterEvaluator.GetNodeNeeds[T](Dictionary`2 elements)
   at AlloyEngine.EngineApis.EngineCode.Workflows.VirtualParameters.WorkflowParameterEvaluator.Resolve()
   at AlloyEngine.EngineApis.EngineCode.Workflows.WorkflowNodeHelper.GetActionConfiguration(IActionNode action, WorkflowContextChainBase input, Boolean isFinal)
   at AlloyEngine.EngineApis.EngineCode.Workflows.WorkflowNodeHelper.ComputeOutputChainOfNode(AId nodeId)
   at AlloyEngine.EngineApis.EngineCode.Workflows.WorkflowNodeValidator.ValidateActionParameters(IActionNode action, ISet`1 attributesToIgnore)
   at AlloyEngine.EngineApis.EngineApi.AddWorkflowAction(AddWorkflowActionRequest model)
   at Submission#0.<Quick>d__10.MoveNext() in /local/stress-test/workflow-script-fastslow/main.csx:line 43
--- End of stack trace from previous location where exception was thrown ---
   at Submission#0.<<Initialize>>d__0.MoveNext() in /local/stress-test/workflow-script-fastslow/main.csx:line 36
--- End of stack trace from previous location where exception was thrown ---
   at Dotnet.Script.Core.ScriptRunner.Execute[TReturn](String dllPath, IEnumerable`1 commandLineArgs) in C:\Users\VssAdministrator\AppData\Local\Temp\tmp5FE3\Dotnet.Script.Core\ScriptRunner.cs:line 52

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0