How to reference DLLs?

Oct 9, 2015 at 7:41 PM
Edited Oct 9, 2015 at 7:47 PM
Hi,

I have tried to compile a program that requires a few DLLs such as:
  • System.Net.Http.dll
  • System.Net.Http.Formatting.dll
  • System.Net.Http.WebRequest.dll
and I'm getting the errors:
Generating C file...Errors/Warnings:
(4,14): error CS0234: The type or namespace name 'Net' does not exist in the namespace 'System' 
(5,14): error CS0234: The type or namespace name 'Net' does not exist in the namespace 'System'
(13,16): error CS0246: The type or namespace name 'HttpClient' could not be found 
(13,44): error CS0246: The type or namespace name 'HttpClient' could not be found 
(18,42): error CS0246: The type or namespace name 'Uri' could not be found 
(25,61): error CS0246: The type or namespace name 'MediaTypeWithQualityHeaderValue' could not be found 
(42,13): error CS0246: The type or namespace name 'HttpResponseMessage' could not be found 
After displaying these errors, IL2C.exe crashes.

How can I make these DLLs visible to the native compiler in order to produce the executable?
Coordinator
Oct 11, 2015 at 12:20 PM
You need to copy all dlls into a folder where you run IL2C.exe Unfortunately Net dll contains code which using external native windows DLL with P/Invoke which is not supported by IL2C yet.