Similar question for c++ here
I've installed a package with nuget install
and am using the csc.exe
executable to compile c# files (and then execute via command line with $ ./test.exe
) outside of a solution/asp.net project. My structure looks like this so far.
/lib
test.cs
test.exe
/packages
/RazorMachine.2.6.1
Inside test.cs
I need access to the RazorMachine
class but am not sure how of the using
syntax for accessing a local package? According to MSDN docs I can:
create an alias for a namespace or a type. This is called a using alias directive.
// need to reference directory structure?
using Project = PC.MyCompany.Project;
// definitely wrong
using RazorMachine = ./../packages/RazorMachine.2.6.1
I'm not sure what the correct terminology is to search for in the docs. I feel like I need some xml configuration to tell the program where to find the packages.