The Visual Studio Tools for Metalama and PostSharp is an extension that enhances your development experience by providing features such as:
- CodeLens additions for quickly viewing the impact of aspects on your code,
- Aspect Explorer for displaying which aspects are available in the current solution and which code is affected,
- Diffing functionality to compare your original source code against the transformed code,
- Syntax highlighting for aspect code.
While this extension is optional, it is highly recommended for a more comprehensive understanding of your aspect-oriented code.
Downloading the extension
The simplest way to install the extension is to install it from Visual Studio Marketplace and launch the downloaded file.
Installing from Visual Studio
Alternatively, you can use the following procedure from Visual Studio.
Warning
The following screenshots are outdated and need to be updated due to changes in the logo and the name of the extension.
Navigate to
Extensions
>Manage Extensions
.This action will open the following dialog:
In the search box to the right of the prompt, enter "Metalama + PostSharp".
Click the
Download
button to initiate the download process.Once the extension is downloaded, it will be ready for installation as soon as all instances of Visual Studio are closed. This requirement is highlighted at the bottom of the screen.
Provide consent for the installation of the extension.
The installation process will commence automatically when Visual Studio is closed.
The installation wizard operates independently and will request your consent during the following stage:
Click "Modify" to finalize the installation.
To proceed with the installation, click the
Modify
button. The wizard will then continue with the installation process.Upon successful installation, the wizard will display the following screen:
To verify the successful installation of the extension, navigate to the Extensions Manager. If the installation was successful, a green tick mark will be displayed on the top right corner of the extension icon.