-
Notifications
You must be signed in to change notification settings - Fork 14
Visual Studio Extension (VSIX) Code Generator
You have to use one of these ways to generate your code without errors:
-
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.
-
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
-
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 +