svcutil exlude/reuse refrenced assemblies

后端 未结 3 1770
Happy的楠姐
Happy的楠姐 2020-12-16 06:55

Is it possible to use svcutil to reuse/exclude referenced types, as with visual studio.

I have multiple projects, my types/datamodels are stored in separate assembli

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-16 07:52

    svcutil /?
    

    gives

    /reference: - Add the specified assembly to the set of assemblies 
                             used for resolving type references. If you are 
                             exporting or validating a service that uses 3rd-party
                             extensions (Behaviors, Bindings and BindingElements)
                             registered in config use this option to locate 
                             extension assemblies that are not in the GAC.  
                             (Short Form: /r)
    

    So running svcutil with /r:myassembly.dll should make it.

提交回复
热议问题