All Projects → JetBrains → Resharper Nuget

JetBrains / Resharper Nuget

Licence: apache-2.0
Plugin for ReSharper to support NuGet references correctly

Projects that are alternatives of or similar to Resharper Nuget

Turkishid
Validator/generator for Turkish Republic Citizen ID numbers (TC Kimlik No)
Stars: ✭ 49 (-47.31%)
Mutual labels:  nuget
Xxamarin
Repositório com ✨ 141 Exemplos de Implementações e 📦 13 Pacotes de Xamarin
Stars: ✭ 68 (-26.88%)
Mutual labels:  nuget
Openmod
OpenMod .NET Plugin Framework
Stars: ✭ 81 (-12.9%)
Mutual labels:  nuget
Nuget License
.NET Core tool to print or save all the licenses of a project
Stars: ✭ 58 (-37.63%)
Mutual labels:  nuget
Multihighlight
Jetbrains IDE plugin: highlight identifiers with custom colors 🖌💡
Stars: ✭ 65 (-30.11%)
Mutual labels:  jetbrains
Aerowizard
Library for easy creation of custom and Aero Wizards. Aero Wizard strictly follows Microsoft guidelines and uses Visual Styles to get visual theming.
Stars: ✭ 73 (-21.51%)
Mutual labels:  nuget
Formatwith
String extensions for named parameterized string formatting.
Stars: ✭ 44 (-52.69%)
Mutual labels:  nuget
A File Icon Idea
Atom File Icons plugin for IntelliJ IDEA products
Stars: ✭ 90 (-3.23%)
Mutual labels:  jetbrains
Monodevelop Nuget Extensions
Extends the MonoDevelop NuGet addin
Stars: ✭ 66 (-29.03%)
Mutual labels:  nuget
Krypton Net 5.470
A update to Component factory's krypton toolkit to support the .NET 4.7 framework.
Stars: ✭ 79 (-15.05%)
Mutual labels:  nuget
Nettelegrambotapi
C# client library for building Telegram bot
Stars: ✭ 59 (-36.56%)
Mutual labels:  nuget
Avalonedit
The WPF-based text editor component used in SharpDevelop
Stars: ✭ 1,127 (+1111.83%)
Mutual labels:  nuget
Gistlyn
Run Roslyn Gists
Stars: ✭ 75 (-19.35%)
Mutual labels:  nuget
Intellijpywal
Intellij Pywal integration
Stars: ✭ 51 (-45.16%)
Mutual labels:  jetbrains
Webstorm License Key
Instruction how use license key for WebStorm & all JetBrains products
Stars: ✭ 85 (-8.6%)
Mutual labels:  jetbrains
Vs Validation
Common input and integrity validation routines for Visual Studio and other applications
Stars: ✭ 48 (-48.39%)
Mutual labels:  nuget
Xamarin.plugins
Cross-platform Native API Access from Shared Code!
Stars: ✭ 1,176 (+1164.52%)
Mutual labels:  nuget
Mages
🎩 MAGES is a very simple, yet powerful, expression parser and interpreter.
Stars: ✭ 92 (-1.08%)
Mutual labels:  nuget
Sharp7
Nuget package for Sharp7
Stars: ✭ 89 (-4.3%)
Mutual labels:  nuget
Blurrycontrols
Small design library for blured controls in XAML and WPF for C#
Stars: ✭ 77 (-17.2%)
Mutual labels:  nuget

obsolete JetBrains project

resharper-nuget

This plugin for ReSharper adds support for NuGet references to ReSharper. It supports ReSharper 8.x, 7.1 and 6.1.

DEPRECATED

Please note that this plugin is now deprecated. The functionality has been rolled into the main product as of ReSharper 9.1. This repo is left as a sample (albeit slightly out of date).

What does it do?

ReSharper has a Context Action on undefined types that looks at assemblies referenced in other projects for that type. If it finds a match, it will add a reference to the assembly, and import the namespace, fixing up the undefined error.

However, ReSharper always adds the assembly as a file reference, even if the assembly is part of a NuGet package. This means NuGet's referencing is bypassed, and the packages.config file isn't updated, dependencies aren't installed, and things don't work when it's time to update the package.

This plugin makes ReSharper invoke NuGet when adding a reference to an assembly in a NuGet package.

How do I get it?

If you wish to just install a copy of the plugins without building yourself:

  • Download the latest zip file: resharper-nuget.1.2.zip
  • Extract everything
  • Run the appropriate batch file for your version of ReSharper, e.g. Install-NuGetSupport.7.1.bat for ReSharper 7.1, or Install-NuGetSupport.6.0.bat for ReSharper 6.0

How does it work?

From the end user's perspective, there is no noticeable user interface. When you use a type that lives in an assembly that is not part of the assemblies currently referenced, but is in an assembly referenced by other projects in the solution, ReSharper will mark the type as an error, and display the context action icon when the cursor is on the type name (the red light bulb). Pressing Alt-Enter displays the action "reference 'asm' and use 'Asm.Type'". This plugin hooks into that process. Selecting that action for an assembly referenced as part of a NuGet package will be installed by NuGet.

For example, if project Test1 adds a NuGet reference to the xUnit.net: extensions package, NuGet will also download the xUnit.net package, and extracts the files to the packages\xunit.1.9.1\lib\net20 and packages\xunit.extensions.1.9.1\lib\net20 folders. NuGet will then add a reference to xunit.extensions.dll and xunit.dll, and run any script files that are in the packages.

If you then add a new project to the solution, Test2, and before adding any references, try to use TheoryAttribute, ReSharper will mark that usage as an error. It also looks for any types called TheoryAttribte in any assembly that's known in the solution. It finds Xunit.Extensions.TheoryAttribute from xunit.extensions.dll being referenced by Test1, and offers a quick-fix red lightbulb for the usage of TheoryAttribute. When you hit alt-enter, you'll see a menu option that reads "reference 'xunit.extensions' and use 'Xunit.Extensions.TheoryAttribute'".

Without the plugin, ReSharper would now just add a reference to packages\xunit.extensions.1.9.1\lib\net20\xunit.extensions.dll file. With the plugin, ReSharper knows that this is a NuGet pacakge, and invokes NuGet to install xunit.extensions in the Test2 project. NuGet adds the references, updates the packages.config file, and also installs the dependency on the xunit package.

Building

To build the source, you need the ReSharper 7.1 SDK installed (ReSharper 6.1.1 support requires the ReSharper 6.1 SDK, which can be downloaded from the previous versions archive). Then just open the src\resharper-nuget.sln file and build.

Version

The current version is 1.2. It has been tested with Visual Studio 2012 and 2010, and supports ReSharper 7.1.1 and 6.1.1. See the ReleaseNotes wiki page for more details.

Contributing

Feel free to raise issues on GitHub, or fork the project and send a pull request.

Roadmap

Please see the Issues tab on JetBrains' GitHub page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].