GithubHelp home page GithubHelp logo

cnsuhao / vs-cryengine-mono-debugger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crytek/vs-cryengine-mono-debugger

0.0 1.0 0.0 41 KB

Sample showing how to use the Visual Studio Mono Debugger for your own Mono-based project types

License: MIT License

C# 100.00%

vs-cryengine-mono-debugger's Introduction

Mono Debugger Visual Studio Extension Sample

This repository contains a source sample that consumes the Mono debugger in a custom Visual Studio project flavor (that is, new kind of project you're creating).

You can use this for scenarios where you embed the Mono runtime into your application (either locally in a Windows application) or on a remote mono application.

The project is set up and configured to built and run from Visual Studio 2015, ready for deploying and testing into the Visual Studio 2015 Experimental instance.

The resulting VSIX does work under VS2017 too, but in order to build and run from VS2017, a one-way upgrade will be performed by Visual Studio upon opening the project, and the Microsoft.VSSDK.BuildTools nuget package will be updated to the latest 15.* version which can only deploy to Visual Studio 2017 Experimental instance instead.

How It Works

The solution contains two projects:

  • Mono.Debugger.Sample: the actual Visual Studio extension that hooks up the debugger
  • MonoSampleProject: the source for a project template that users can "unfold" by doing File | New | MonoSampleProject in Visual Studio.

The extension provides a new project template and accompanying custom project flavor. In order for VS to determine that our custom project needs to be initialized (and its containing package loaded), a .csproj must declare our custom flavor GUID as part of the <ProjectTypeGuids> element. This is provided in the included project template for eacy testing after hitting F5 on VS to try out the solution.

This sample uses the "classic" project extensibility in Visual Studio. You can read more about it in the Project Subtypes section of the VSSDK documentation.

Customizing for Production

At a minimum, you should rename all MonoSample instances with your own project name/prefix.

Required changes before distribution, to avoid collisions with other projects based on this sample, are:

  • MonoSamplePackage.PackageGuidString: this is the extension package GUID, and should be your own unique value
  • MonoSamplePackage.MonoSampleProjectGuid: this is the project flavor GUID and should be your own unique value too. Update the value in ProjectTemplate.csproj to match.
  • source.extension.vsixmanifest: change the Identity element, in particular, the Id attribute.

vs-cryengine-mono-debugger's People

Contributors

kzu avatar migueldeicaza avatar

Watchers

 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.