Archive for the Category vs.net
PowerCommands is an addin for Visual Studio 2008 that contains additional command menu functions for the IDE that most developers would use regularly.
The PowerCommands Addin is available along with source code and documentation.
Below is a list of the features that you will currently find on in PowerCommands Addin for Visual Studio 2008.
- Collapse Projects This command collapses a hierarchy in the solution explorer starting from the root selected node.
- Copy Class This command copies a selected class entire content to the clipboard.
- Paste Class This command pastes a class entire content from the clipboard.
- Copy References This command copies a reference or set of references to the clipboard.
- Paste References This command pastes a reference or set of references from the clipboard.
- Copy As Project Reference-This command copies a project as a project reference to the clipboard.
- Edit Project File-This command opens the MSBuild project file for a selected project inside Visual Studio.
- Open Containing Folder-This command opens a Windows Explorer window pointing to the physical path of a selected item.
- Open Command Prompt-This command opens a Visual Studio command prompt pointing to the physical path of a selected item.
- Unload Projects-This command unloads all projects in a solution.
- Reload Projects-This command reloads all unloaded projects in a solution.
- Remove and Sort Using’s-This command removes and sort using statements for all classes given a project.
- Extract Constant-This command creates a constant definition statement for a selected text.
- Clear Recent File List-This command clears the Visual Studio recent file list.
- Clear Recent Project List-This command clears the Visual Studio recent project list.
- Transform Templates-This command executes the associated custom tool with text templates items.
- Close All- This command closes all documents.
MS has released the .NET Reference Source Code, you can only get it one file at a time while you’re debugging. If you’d like to populate the cache, you’d may use Mass Downloader For .Net Framework which allows you do download .Net Framework source code in batch.The Mass Downloader For .Net Framework enables offline debugging of .Net Framework in Visual Studio 2008/2005(including Express Editions).
Pex (Program EXploration) is an assistant to the programmer.Pex takes test-driven development to the next level. Pex analyzes .NET programs. From a parameterized unit test, it automatically generates unit tests cases with high code coverage. In addition,when a generated test fails, it suggests to the developer how to fix the bugs.
- With Pex, you can write parameterized unit test methods and leave to Pex the task of deciding which input is relevant to cover the code (or find bugs). Actually, parameterized unit tests are nothing but specifications. Pex integrates ‘naturally’ with existing unit test framework (VSTS, NUnit, MbUnit, etc…) by providing a set of custom attributes to tag Pex classes and tests.
- Call Pex directly from Visual Studio to start exploring the parameterized unit tests.
- Pex runs the parameterized unit tests with different input values. Pex monitors the execution and figures out why the program executed the way it did. This is represented as a boolean function over the test parameters. Pex then uses a constraint solver to compute new parameter values that make the program execute in a different way.
- From the parameterized unit tests, Pex generates classic unit tests that can be re-executed without Pex. Pex also tags the generated tests with additional information using attributes (for tools) and xml documentation (for humans).
- While exploring parameterized unit tests, Pex explicitly looks for program errors such as index out of bound or failing user assertions. Pex reports dynamically detected errors in the code.
- Sometimes Pex can automatically fix bugs! When a test fails, Pex traces back the involved values. Pex suggests additional checks to prevent the failure from happening again. Those checks are argument or invariant validation.
- Pex summarizes all the possible fixes in a prioritized table with quick preview.
- Pex integrates generated tests automatically inside the test project. Pex also avoids duplicate tests and recycles obsolete tests.
- Pex comes with a command line tool to execute any assembly containing Pex tests. Great for automation!
- Pex generates detailed HTML reports about the exploration process. The reports contains details about each generated tests, path conditions, suggested fixes, etc…
- Pex generates code coverage reports for each test.
- Pex has a built-in support for mocking interfaces and virtual methods. Pex generates the return values of mocked methods just like it generates test input for parameterized unit tests.
The first addin allows you manipulate Nant targets and tasks within VS 2005
- Read .nant and .build files
- Build visual tree from NAnt files
- Filter public/private targets
- Display target/task properties
- Locate selected node into build file
- Start/Stop selected target
- At solution startup reload default build file
- Full integration with VisualStudio
- Sources provided
The second addin allows you run NUnit tests without leaving VS IDE
[Via Nauman Leghari's Blog]