❔ 'System.PlatformNotSupportedException' in System.CodeDom.dll
Hello I have this problem in Visual Studio in my project :
"Exception thrown: 'System.PlatformNotSupportedException' in System.CodeDom.dll" . I traduced the exception from my language, the authentic error is there : "Exception levée : 'System.PlatformNotSupportedException' dans System.CodeDom.dll"
I'm sorry I can't give you my code but can someone explain me what that mean, I'm pretty new in C# and VSCode but I know programming in general.
Maybe you had the same problem before. Thank you all 😉
4 Replies
that's an old compiler, you should be using roslyn instead
can't really help more without the rest of the exception or details about your project/environment
Hello ! 🙂 Thanks for you help ! Ok, first I only have that exception.
I have also that in my log but I don't think it's related and it don't seem to cause any problem (once again I'm new so maybe I'm wrong):
Test.exe' (CoreCLR: clrhost) : Chargé 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.17\System.Console.dll'. Chargement des symboles ignoré. Le module est optimisé et l'option du débogueur 'Uniquement mon code' est activée.
In english I can traduce that by :
`Test.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.17\System.Console.dll'. Symbol loading ignored. The module is optimized and the 'Just My Code' debugger option is enabled.
(Traduction may be inaccurate).
Then You asked me details about my project/environment. I'm not sure about what you mean by this, but let me give you some infos :
-Microsoft Visual Studio Community 2019
Version 16.9.4
-I use 5.0 NET Framework.
Maybe you need more informations then tell me what precisely.
Have a nice day 👍 ! And thank you for answering so quickly.
(PS : Please be indulgent, my english is not incredible, but I assure you that I make the more effort as possible to become better)are you trying to use the C# compiler from CodeDom? this does not work in recent versions of .NET anymore
can you explain more about what you're trying to do with this, it will help inform what the best alternative is
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.