Click here to Skip to main content
15,896,154 members
Articles / Desktop Programming / Windows Forms

C# and VB.NET Code Searcher - Using Roslyn

Rate me:
Please Sign up or sign in to vote.
4.84/5 (51 votes)
7 Mar 2013LGPL314 min read 202.2K   5.6K   130  
A fast C# and VB.NET code searcher using Roslyn.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RoslynCodeSearcher", "RoslynCodeSearcher\RoslynCodeSearcher.csproj", "{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastColoredTextBox", "FastColoredTextBox\FastColoredTextBox.csproj", "{6DD14A85-CCFC-4774-BD26-0F5772512319}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KRBTabControl", "KRBTabControl\KRBTabControl.csproj", "{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RoslynCodesearcher.Unittest", "RoslynCodesearcher.Unittest\RoslynCodesearcher.Unittest.csproj", "{788D9A01-3CFC-4C21-98F0-792D376645D1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2590ED9F-2B90-4B00-9F02-252973C406B2}"
	ProjectSection(SolutionItems) = preProject
		Local.testsettings = Local.testsettings
		RoslynCodeSearcher.vsmdi = RoslynCodeSearcher.vsmdi
		TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
	EndProjectSection
EndProject
Global
	GlobalSection(TestCaseManagementSettings) = postSolution
		CategoryFile = RoslynCodeSearcher.vsmdi
	EndGlobalSection
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Debug|Any CPU.ActiveCfg = Debug|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Debug|x86.ActiveCfg = Debug|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Debug|x86.Build.0 = Debug|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Release|Any CPU.ActiveCfg = Release|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Release|Mixed Platforms.Build.0 = Release|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Release|x86.ActiveCfg = Release|x86
		{9E6C09C3-789B-4A07-9BF5-1FFDCDD81192}.Release|x86.Build.0 = Release|x86
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Debug|x86.ActiveCfg = Debug|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Release|Any CPU.Build.0 = Release|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{6DD14A85-CCFC-4774-BD26-0F5772512319}.Release|x86.ActiveCfg = Release|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Debug|x86.ActiveCfg = Debug|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Release|Any CPU.Build.0 = Release|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{04506D1C-0E7E-4C9B-A07F-2EA358531AE9}.Release|x86.ActiveCfg = Release|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Debug|x86.ActiveCfg = Debug|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Release|Any CPU.Build.0 = Release|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{788D9A01-3CFC-4C21-98F0-792D376645D1}.Release|x86.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer (Senior)
Netherlands Netherlands
Languages: C#, ASP.NET, HTML, VB, Javascript.
Tools: Visual Studio 2010, 2012.
Databases: MS SQL Server, Oracle, SQLite.
Skills: MCPD Web Developer 4.0, MCSD 2.0
Likes: Solving problems at projecteuler.net. at #66 now.
Technologies:C#, Azure, Xamarin.iOS, Web API, T/SQL, PL/SQL, MSBuild, WIX, XSLT, WPF, WCF, JavaScript

I have been a programmer since 1995. At first at school where we had a computer club with nice Aster CT-80 (TRS-80 clone) computers and 1 MSX computer where I learned to program in BASIC. Later I had my own 8086 XT computer.
My first experience with programming was way before that when I was about 8. A friend of mine had a Commodore 64. He typed over a BASIC game from a computing magazine. The program worked but it contained an error. The thing he did was go to the source line that caused the error, deleted the line, and restarted the program. It worked every time he got an error...

Comments and Discussions