开发者

Referencing Assemblies. Command-line compilation

开发者 https://www.devze.com 2023-04-04 09:31 出处:网络
I am using the jsc.exe compiler that comes with the .Net Framework for compiling my JScript.Net scripts into executables. What is the right way to reference assemblies from the command line? I keep ge

I am using the jsc.exe compiler that comes with the .Net Framework for compiling my JScript.Net scripts into executables. What is the right way to reference assemblies from the command line? I keep getting "the referenced assembly could not be found" errors so I must be doing something wrong.

This is what I tried:

jsc.exe /reference:System.Web.Dll MyScript.jsn
jsc.exe /reference:System.Web.Dll /lib:C:\Windows\assembly MyScript.jsn
jsc.exe /reference:System.Web.Dll /lib:C开发者_JS百科:\Windows\assembly\GAC_32 MyScript.jsn
0

精彩评论

暂无评论...
验证码 换一张
取 消