Relationship between SVC files and WCF projects?

后端 未结 3 1371
梦毁少年i
梦毁少年i 2021-02-01 15:47

When creating a WCF project, the default member files are just ordinary csharp class files, rather than svc files. Are svc files required with a WCF project? When should they be

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 16:31

    If you are using .net 4.0 or later, you can now "simulate" the .svc via config with the following:

    
       
       
          
             
          
       
    
    

    Then you don't need a physical .svc file nor a global.asax

提交回复
热议问题