“The type or namespace name 'Route' could not be found” using “attribute routing”

后端 未结 4 2212
栀梦
栀梦 2021-02-19 08:57

Just trying to splice some code from one working project to another. The \"from\" project uses \"attribute routing\" where you embed [Route(…)] directives in the W

4条回答
  •  时光取名叫无心
    2021-02-19 09:34

    When projects are shared between multiple solutions, the reference of libraries downloaded with Nuget have to be configured in .csproj manually at solution related path.

    For example, log4net should be configured as:

    
       $(SolutionDir)\packages\log4net.2.0.5\lib\net45-full\log4net.dll
       True
    
    

提交回复
热议问题