Giter VIP home page Giter VIP logo

kunzimariano / versionone.client.visualstudio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from versionone/versionone.client.visualstudio

0.0 1.0 0.0 3.86 MB

View and update VersionOne work items directly from Visual Studio

Home Page: http://versionone.github.io/VersionOne.Client.VisualStudio

License: BSD 3-Clause "New" or "Revised" License

C# 96.01% Shell 2.59% PowerShell 0.06% CSS 1.34%

versionone.client.visualstudio's Introduction

VersionOne Client for Visual Studio

VersionOne.Client.VisualStudio is a Visual Studio extension that connects to VersionOne.

Download a build

You can find the latest public build for the extension in the VersionOne App Catalog.

Build Prerequisites

Step 1: Install or upgrade to the latest NuGet

Install NuGet 2.7 or greater.

We use NuGet to manage external dependencies that this project requires. -- Most importantly, as of NuGet 2.7, there is a simplified package restore workflow for NuGet packages that this code requires via packages.config files in each project. See this post for all the details.

Step 2: Automate the installation of required developer tools

We build with Visual Studio 2012 Professional and Premium, and several other tools, all of which are listed in the Chocolatey packages.config file.

Step 3: Install Chocolatey

Not familiar with Chocolatey? It's a package manager for Windows, similar to apt-get in the Linux world. It actually uses NuGet internally. To installl Chocolatey:

  • First, see Chocolatey's requirements
  • Next, assuming you already Cloned or Downloaded this repository from GitHub into C:\Projects\VersionOne.Client.VisualStudio, open an Admininstrator command prompt in that folder and run install_chocolatey.bat

Step 4: Use Chocolatey to install the developer tools

If the Chocolatey install worked, then:

  • First: if you already have Visual Studio 2012 installed without using Chocolatey, you can open up packages.config and remove the line for it. That will avoid downloading the large file over the internet.
  • Close the command prompt and open a new Administrator command prompt so that you get an updated PATH environment variable and navigate back to the repository folder.
  • Run install_dev_tools.bat

This should start downloading and automatically installling the tools listed in packages.config.

Alternatively: If you don't want or cannot use Chocolatey, you can manually install developer tools

How to Build

Assuming you have followed the previous steps and your environment is all setup correctly now:

  • Open a Git Bash prompt as Administrator
  • Change directory to /c/Projects/VersionOne.Client.VisualStudio
  • Type ./build.sh

This should build the client successfully. TODO: what about tests?

Build known issues and solutions or workarounds

Symptom: Build says failed, but with 0 apparent errors

Likely cause

If you have already installed the extension before, and then tried to uninstall it, sometimes Visual Studio has a stray "pending deletion" in the registry.

Remedy

While we do not know yet how to prevent this issue, see the issue Build completes with FAILED message, despite no visible Errors, but Detailed logging shows Task "EnableExtension" FAILED which documents the resolution for when it happens.

Advanced Builds

How to Build with Visual Studio 2013

The steps below assume you have Chocolatey installed. If you do not, you can find the downloads on Microsoft's web site.

  • Install Visual Studio 2013: cinst VisualStudio2013Professional. Other editions exist as Chocolatey packages too.
  • Install the Visual Studio 2013 SDK: cinst VS2013SDK
  • Using a text editor, open VersionOne.VisualStudio.VSPackage\VersionOne.VisualStudio.VSPackage.csproj
  • Change 11.0 to 12.0 in the line that reads <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion> -- this tells Visual Studio that the project can work with Visual Studio 2013, which happens to be version 12.
  • You should now be able to open the solution with Visual Studio and compile the VSIX package.
  • NOTE: We have also tested that when you build with 2013, you can still successfully install the extension into 2012.

How to target lower Visual Studio editions (like 2010)

Historically, we have only supported 2 versions of Visual Studio: the current and current - 1 versions. However, this code is open source, and we welcome your assistance in building the projecct with targets for other editions if you will also test them and demo your findings with us. If it appears that all test cases work, then you can send us a pull request for the additional target.

Since we have not been able to fully test against 2010, we do not currently have the installation target for it. But, if you'd like to help this project by building and testing against 2010, please contact us because we can work with you to make this happen. We have the previous versions of the code that did target 2010, and as we understand it from this post on StackOverflow, it may be possible to still target 2010 from 2012 or higher.

versionone.client.visualstudio's People

Contributors

matiasheffel avatar lremedi avatar jogoshugh avatar davidhaimovich avatar veplechuc avatar morrica01 avatar kunzimariano avatar

Watchers

James Cloos avatar

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.