Skip to content

Commit 203390d

Browse files
authored
Merge pull request #105 from ManticSic/feature/102/installation-guide
Feature/102/installation guide
2 parents 200ffdf + a36a518 commit 203390d

File tree

1 file changed

+46
-22
lines changed

1 file changed

+46
-22
lines changed

Installation.md

+46-22
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,57 @@
1-
How to use the source code:
1+
# Local Build, Installation And Development Guide
22

3-
- **Before opening the solution, run the `build/00_RestorePackages.bat` file.** Explanation: The Exceptional.csproj needs a ReSharper msbuild target file which is available in the NuGet package. The NuGet package is not stored in the Git repository, this is why you need to restore the packages before you can build the project.
3+
## Build And Pack Using Scripts
44

5-
How to debug the extension:
6-
IMPORTANT: Uninstall the "Exceptional" extension first
5+
1. Change directory to the build directory `cd path\to\ExceptionalReSharper\build`
6+
2. Download dependencies `00_RestorePackages.bat`
7+
3. Trigger the build `01_Build.bat`
8+
4. Create a package `02_CreatePackages.bat`
9+
5. Now you should find a new package in `path\to\ExceptionalReSharper\build\Packages`
10+
6. Copy the *.nupkg file to your local repository
711

8-
1. Open the "Properties" of the "Exceptional" project in the solution
9-
2. Go to the "Debug" section, select "Debug" as configuration and change the following settings:
10-
- Start external program: Select your Visual Studio application "devenv.exe"
11-
- Command line arguments:
12+
## Build Using IDE
1213

13-
/ReSharper.Plugin "PATH/TO/SOURCES/Exceptional/bin/Debug/ReSharper.Exceptional.dll"
14+
1. Make sure allrequired packages are downloaded, e. g. by running `build\00_RestrePackages.bat`
15+
2. Build the project as usual
1416

15-
How to release a new version:
17+
## Download Latest Package from GitHub
1618

17-
1. Update extension version in Exceptional.nuspec and AssemblyInfo.cs if necessary
18-
2. Rebuild the whole solution in "Release" configuration
19-
3. Run NuGet/Build.bat
20-
4. Upload new package version from NuGet/Packages
21-
5. Update extension version in Exceptional.nuspec and AssemblyInfo.cs to the next planned version
22-
6. Push changes (also new NuGet package) to Git
19+
1. Open `https://github.com/ManticSic/ExceptionalReSharper/releases`
20+
2. Search for the latest release
21+
3. Download the attached *.nupkg file
22+
4. Copy the *.nupkg file to your local repository
2323

24-
What to look for in pull requests:
24+
## Setup your Environment
2525

26-
- Check with community if feature makes sense
27-
- Check that the changes do not decrease performance (this is very important!)
26+
Your can find a full guide on [JetBrains.com](https://www.jetbrains.com/help/resharper/sdk/HowTo/Start/SetUpEnvironment.html).
2827

29-
Log files to find problem why exception crashed:
28+
### Setup the IDE
3029

31-
- The ReSharper log files can be found here:
30+
1. Install ReSharper to a VS hive
31+
2. Run the experimental hive
32+
3. Add a local ReSharper Package Source
3233

33-
C:\Users\USERNAME\AppData\Local\JetBrains\ReSharper\v8.2\ExceptionStorage
34+
### Add a local ReSharper Package Source
35+
36+
1. Open Visual Studio
37+
2. Open ReSharper Extension Manager
38+
3. Open Options
39+
4. Add a new package source
40+
* Name: local
41+
* Source: `path\to\a\local\directory`, e.g. `path\to\ExceptionalReSharper\build\Packages`
42+
5. Save
43+
44+
### Notes
45+
46+
* You have to reinstall the plugin on changes
47+
* Instead of reinstalling the plugin, you can replace `ReSharper.Exceptional.dll` directly in `C:\Users\%username%\AppData\Local\JetBrains\Installations\{ReSharperInstallation}` with the new assembly in `path\to\ExceptionalReSharper\src\Exceptional\bin\{configuration}`
48+
49+
## Running and Debugging
50+
51+
Please read this [guide](https://www.jetbrains.com/help/resharper/sdk/Extensions/Plugins/Debugging.html).
52+
53+
## Troubleshooting
54+
55+
### I cannot install my local version
56+
57+
Uninstall previous installations of Exceptional for ReSharper and clear `C:\Users\%username%\AppData\Local\JetBrains\plugins` and `C:\Users\%username%\AppData\Local\NuGet\Cache`, after that restart VS.

0 commit comments

Comments
 (0)