如何在多个项目中使用库时如何安装许可证

时间:2016-09-15 19:26:18

标签: postsharp

我有一个主要的dll,我正在使用postharp,但许多其他人引用它。哪里必须放置postsharp.config文件?

我不想在我编辑解决方案的每台机器上安装visual studio postsharp工具。

1 个答案:

答案 0 :(得分:0)

http://doc.postsharp.net/configuration-system所述:

  

PostSharp将按以下顺序自动加载文件系统中存在的一些众所周知的配置文件:

     
      
  1. 任何名为postsharp.config的文件位于包含MSBuild项目文件(通常为csproj或vbproj)的目录中,或位于任何父目录中,直至根目录。这些文件按升序加载,即从根目录到项目目录。
  2.   
  3. 任何名为MySolution.pssln的文件与解决方案文件MySolution.sln位于同一目录中。
  4.   
  5. 名为MyProject.psproj的任何文件与项目文件MyProject.csproj或MyProject.vbproj位于同一目录中。
  6.         

    例如,可以按以下顺序加载文件:

         
        
    1. C:\ SRC \ BlueGray \ postsharp.config
    2.   
    3. C:\ SRC \ BlueGray \前端\ postsharp.config
    4.   
    5. C:\ SRC \ BlueGray \前端\ BlueGray.FrontEnd.Web \ postsharp.config
    6.   
    7. c:\ src \ BlueGray \ Solutions \ BlueGray.pssln,假设当前解决方案文件为c:\ src \ BlueGray \ Solutions \ BlueGray.sln。
    8.   
    9. c:\ src \ BlueGray \ FrontEnd \ BlueGray.FrontEnd.Web \ BlueGray.FrontEnd.Web.psproj,假设当前项目文件为c:\ src \ BlueGray \ Solutions \ BlueGray.sln。
    10.   
相关问题