I'm trying to use Stringbuilder but am getting build errors. It says something about I need to add a reference but gives no information about how to do it. When I right click on my project and choose 'add reference', String builder is not there and neither
is System.Text which is where I'm told Stringbuilder is. What to do? I've been stuck on this for hours.
If not do this write StringBuilder right click on top of it and in the menu should an option "Resolve" click there and select the reference that belongs to StringBuilder.
gazolba
Member
22 Points
35 Posts
Why is Stringbuilder not working?
Sep 29, 2008 11:37 PM|LINK
I'm trying to use Stringbuilder but am getting build errors. It says something about I need to add a reference but gives no information about how to do it. When I right click on my project and choose 'add reference', String builder is not there and neither is System.Text which is where I'm told Stringbuilder is. What to do? I've been stuck on this for hours.
sbellouti
Member
262 Points
43 Posts
Re: Why is Stringbuilder not working?
Sep 30, 2008 12:02 AM|LINK
Hi,
What are the assemblies referenced in your project?
Samir,
Samir Bellouti
Senior .NET Architect
sbellouti@gmail.com
http://bellouti.wordpress.com
harrifer
Contributor
3233 Points
527 Posts
Re: Why is Stringbuilder not working?
Sep 30, 2008 12:26 AM|LINK
try to add
using
System.Text;in the top of your code.
If not do this write StringBuilder right click on top of it and in the menu should an option "Resolve" click there and select the reference that belongs to StringBuilder.
Try it and let me know.
gazolba
Member
22 Points
35 Posts
Re: Why is Stringbuilder not working?
Sep 30, 2008 12:51 AM|LINK
Ok, my stupid fault, I had Stringbuilder instead of StringBuilder. Curse that case sensitivity.