Skip to content

Visual Studio Extension (VSIX) Code Generator

Ali Yousefi edited this page Apr 29, 2019 · 2 revisions

You have to use one of these ways to generate your code without errors:

  1. Use everything from code generator: So don't use any shared models between client and server,code generator will generate everything for you, if you use shared assemblies it will make duplicate models with same namespaces.

  2. Check "just services" in signalgo code generator window: So you can share models between server and client, this will not generate any models,enums,etc

  3. Manage assemblies manually So if you want skip code generating from some assemblies you must use AddAssemblyToSkipServiceReferences in serverProvider from server side to skip generate assembly in client side.

Example:

ServerProvider serverProvider = new ServerProvider();
//Person is your model that you want skip assembly of Person model
serverProvider.AddAssemblyToSkipServiceReferences(typeof(Person).Assembly);

Download VSIX from here: https://marketplace.visualstudio.com/items?itemName=AliVisualStudio.SignalGoExtension

It's supports visual studio 2012,2013,2015,2017,2019 +