How to include packages into your scriptcs

72 views
Skip to first unread message

bejaoui bechir

unread,
Mar 4, 2015, 9:58:26 AM3/4/15
to scri...@googlegroups.com
I'm trying scriptcs by following tutorials in 

Writing a script section and 

Bootstrap scripts with Script Packs section


I followed exactly the tutorial and I'm finishing by the following errors

PS C:\Users\Administrator> scriptcs c:\scripts\web.csx
ERROR: Script compilation failed: c:\scripts\web.csx(1,31): error CS0246: The type or namespace name 'ApiController' cou
ld not be found (are you missing a using directive or an assembly reference?).


PS C:\Users\Administrator> scriptcs C:\Users\Administrator\scriptcs_packages\web.csx
ERROR: Script compilation failed: C:\Users\Administrator\scriptcs_packages\web.csx(1,31): error CS0246: The type or name
space name 'ApiController' could not be found (are you missing a using directive or an assembly reference?).
PS C:\Users\Administrator>


Note: For raven i tried it as dotnet application I installed raven using package manager and I just succeed to run the server but whit the scriptcs -install it installs the package but when I'm running the scripts they claim for references

Adam Ralph

unread,
Mar 5, 2015, 3:49:46 AM3/5/15
to scri...@googlegroups.com
Hi,

It may be because you are running from another directory. Try executing everything, including the package installation, whilst inside your scripts directory.
Reply all
Reply to author
Forward
0 new messages