Referring to NuGet packages from csx script

I am trying to write an interactive C # script (.csx) that should use the NuGet package, but I have to ignore something fundamental, because I cannot get it to work.

I tried adding project.json , which refers to the package, and it is installed in the global dir directory when I nuget restore , but it seems that the #r directive #r not look there. I was unable to find the relevant documentation on how the #r directive #r (most of the documents seem to be dealing with a similar but different project called ScriptCS).

How do you write a csx script that refers to NuGet packages?

+5
source share

Source: https://habr.com/ru/post/1241118/


All Articles