【问题标题】:PostSharp in web project using NuGet使用 NuGet 的 Web 项目中的 PostSharp
【发布时间】:2013-04-13 17:22:15
【问题描述】:

按照此处列出的步骤进行操作后:http://doc.postsharp.net//postsharp-2.1/Default.aspx##PostSharp-2.1.chm/html/41129237-a5d4-4acf-aef4-c46759ccfb4b.htm

它给了我这个错误:“ PostSharp 没有在构建过程中引入。如果 NuGet 刚刚恢复了 PostSharp 包,则需要重新构建解决方案。”

你知道为什么吗?

谢谢

【问题讨论】:

  • 您是否按照它所说的那样重建了您的解决方案?如果是这样,您还会遇到同样的错误吗?
  • 是的,我重建解决方案后仍然出现错误。

标签: visual-studio-2010 nuget nuget-package postsharp


【解决方案1】:

RequiresPostSharp.cs 文件旨在提供帮助,但并不总是能正常工作。如果 PostSharp 正常工作,您可以safely delete that file

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-10
    • 1970-01-01
    • 2016-06-01
    • 2021-11-21
    • 1970-01-01
    相关资源
    最近更新 更多