Ml-agents: error CS1061: Type `System.Text.StringBuilder' does not contain a definition for `Clear'

Created on 25 May 2018  ·  3Comments  ·  Source: Unity-Technologies/ml-agents

Error Information:
Assets/ML-Agents/Scripts/ExternalCommunicator.cs(269,24): error CS1061: Type System.Text.StringBuilder' does not contain a definition forClear' and no extension method Clear' of typeSystem.Text.StringBuilder' could be found. Are you missing an assembly reference。
Did anybody encounter it before? How to handle it?

help-wanted

Most helpful comment

ohh, I have solved this problem.
Solution:

  1. Update the .Net. Download the .netframework4.6.1 from https://www.microsoft.com/net/download/visual-studio-sdks
  2. Do following settings in unity. 'Player Setting'-> 'Configuration' -> 'Scripting Runtime Version' <.NET 4.x Equivalent> -> 'Api Compatibility Level' <.NET 4.x>

All 3 comments

ohh, I have solved this problem.
Solution:

  1. Update the .Net. Download the .netframework4.6.1 from https://www.microsoft.com/net/download/visual-studio-sdks
  2. Do following settings in unity. 'Player Setting'-> 'Configuration' -> 'Scripting Runtime Version' <.NET 4.x Equivalent> -> 'Api Compatibility Level' <.NET 4.x>

Thanks for reaching out to us. Hopefully you were able to resolve your issue. We are closing this due to inactivity, but if you need additional assistance, feel free to reopen the issue.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Porigon45 picture Porigon45  ·  3Comments

gerardsimons picture gerardsimons  ·  3Comments

Rodnyy picture Rodnyy  ·  3Comments

green4you picture green4you  ·  4Comments

DVonk picture DVonk  ·  3Comments