Coder Social home page Coder Social logo

resharper-externalcode's Introduction

resharper-externalcode

ExternalCode is a ReSharper plugin that adds support for source files that are not part of a project.

What does it do?

This plugin allows adding source files to ReSharper's code analysis by specifying folder paths. This is particularly helpful in situations where code is included at build time but not necessarily available during development, such as code generation.

NOTE: Exclusions specified in Code Inspection | Generated Code still apply to external code.

How do I get it?

You can install directly using ReSharper's extension manager.

From menu bar, select ReSharper | Manage Extensions. In the left pane, select Online, search for "externalcode", then click Install in the results.

Configuration

ReSharper supports the concept of setting layers where settings can be personal, team-shared, or this computer. By default, settings are this computer and apply to any project loaded on the local machine. You will generally want to use team-shared project settings for this plugin. This allows project-specific settings while allowing the settings to be added to source control and shared with other users of that project.

Adding a Team-Shared, Project-Level Settings Layer

  1. On the main menu, choose ReSharper | Manage Options. The Settings Layers dialog box opens.

  2. Select the Solution team-shared layer and click Add Layer, then click Create Settings File. The Save As dialog box opens.

  3. Set the settings file name and path and click Save. Save the settings file in project folder and name it the same as the project file and append .DotSettings extension.
    For example, the project MySolution\MyProject.csproj has its settings file named MySolution\MyProject.csproj.DotSettings.

Editing External Code Settings

  1. On the main menu, choose ReSharper | Manage Options. The Settings Layers dialog box opens.

  2. In the Settings Layers dialog, select a layer to be edited then click Edit Layer. The Options dialog opens.

  3. In the left pane, click Code Inspection | Include External Sources.

  4. In the right pane, add/edit/remove paths that contain external source files.

  5. Click Save to save the changes and close the dialog.
    Changes do not take affect until project is reloaded.

Paths may be relative or absolute to files or directories. Relative paths are relative to the directory containing the project.

For more information regarding ReSharper's options sharing, refer to Managing and Sharing Options.

Building

Building from the source can be done from Visual Studio or the command line.

Visual Studio

Requirements:

  • Visual Studio 2012 or 2013.

Procedure:

  • From within Visual Studio, open src\EveningCreek.ReSharper.ExternalSources.sln solution file and build.

Command Line

Building from the command line also generates the ReSharper extension NuGet package.

Requirements:

  • .NET Framework 3.5

Procedure:

  • From a command line, run build.bat

resharper-externalcode's People

Contributors

jberd126 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

resharper-externalcode's Issues

Multiply enties for only one function

Hi,

i have some shared assemblies. They are not a part of my solution. So i try this extension and i can navigate now to "external code" of shared assembly.
But solution-wide analysis dosn't work proper with it.
screenshot002

In navigation (ctr+t or F12) are also some identical entries:
screenshot003

Do you know work a round for this?

thanks.

Support for build macros (e.g. $(ConfigurationName))

Great ReSharper extension! I added the path obj\Debug to make sure ReSharper finds the files generated by ANTLR and that is working for me.

It would be even better if you could use build macros like $(ConfigurationName) to add \obj$(ConfigurationName). This way, ReSharper would always use the correct files (could be different between configurations) and you can be sure that the files are actually present (when working in Release configuration, the obj\Debug files might exist).

Do you have any plans to add such feature? Do you think it is supported by the ReSharper add-in framework?

Thanks and best regards,

Ranco Marcus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.