You can also configure Visual Studio to not save the project file when you create one. I do this all the time to explore namespaces. I love Snippet Compiler, but the autocomplete options are not nearly as good.
The option is under Tools > Options > Projects and Solutions > "Save new projects when created" When you uncheck this, it will create a project in a temp directory that will get cleaned up when you close that instance of Visual Studio. Should you choose to save your work, you can use "Save All" to get a dialog that will allow you to specify a save location for the project.
I also took the default text of a Snippet Compiler file and have that as a snippet in Visual Studio. SC's default file wraps your code in a try/catch block and provides shortcut functions for Console.WriteLine().
using System;
using System.Collections.Generic;
public class MyClass
{
public static void RunSnippet()
{
}
#region Helper methods
public static void Main()
{
try
{
RunSnippet();
}
catch (Exception e)
{
string error = string.Format("---\nThe following error occurred while executing the snippet:\n{0}\n---", e.ToString());
Console.WriteLine(error);
}
finally
{
Console.Write("Press any key to continue...");
Console.ReadKey();
}
}
private static void WL(object text, params object[] args)
{
Console.WriteLine(text.ToString(), args);
}
private static void RL()
{
Console.ReadLine();
}
private static void Break()
{
System.Diagnostics.Debugger.Break();
}
#endregion
}