![]() |
|
[.NET] how to fix codedom error? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] how to fix codedom error? (/showthread.php?tid=6090555) |
how to fix codedom error? - sara_221540 - Jun 26, 2020 i tried to use c# codedom to compile code in text file but i get the error "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?);" RE: how to fix codedom _error_? - SaketSaket - Jun 27, 2020 Provide code to get solution... Regards... RE: how to fix codedom _error_? - sara_221540 - Jun 27, 2020 (Jun 27, 2020 12:07 AM)SaketSaket Wrote: Provide code to get solution... Regards... ??????????????? ????????????????? WHAT DO YOU MEAN? RE: how to fix codedom _error_? - sh@rp - Jun 27, 2020 (Jun 27, 2020 12:12 AM)sara_221540 Wrote: ??????????????? He means : without showing us a piece of code we can't help you .... regards RE: how to fix codedom _error_? - Anemone¹ - Jun 27, 2020 (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 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 Code Line number 16You'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'Spoiler (Click to View) 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/api/system.codedom.compiler.compilerparameters.referencedassemblies?view=dotnet-plat-ext-3.1 |