(Jun 26, 2020 07:45 PM)sara_221540 Wrote: i tried to use c# codedom to compile code in text file but i get theerror
"Line number 16,error Number: CS0234, 'The type or namespace name 'Net' does not exist in the namespace 'System' (are you missing an assembly reference?);"
Code
"Line number 16, _error_ Number: CS0234, 'The type or namespace name 'Net' does not exist in the namespace 'System' (are you missing an assembly reference?);"
On line 16 of the code you're trying to compile
You're trying to use a reference in System.Net, on line 16.
Code
'The type or namespace name 'Net' does not exist in the namespace 'System'
You are
Code
"(are you missing an assembly reference?)"
Either you haven't added your Using statements or you didn't add the assembly when you compiled with codedom.
Adding reference assemblies with codedom.
https://docs.microsoft.com/en-us/dotnet/...at-ext-3.1