Microsoft (R) ASP.NET Compilation Tool version 4.0.30319.17929 Utility
to precompile an ASP.NET application copyright (C) Microsoft
Corporation. All rights reserved.(0): warning : The following assembly has dependencies on a version of
the .NET Framework that is higher than the target and might not load
correctly during runtime causing a failure: MiniProfiler,
Version=2.1.0.0,Culture=neutral,PublicKeyToken=b44f9351044011a3. The
dependencies are: System.Data.Linq,Version=4.0.0.0,
PublicKeyToken=b77a5c561934e089. You should either ensure that the
dependent assembly is correct for the target framework,or ensure that
the target framework you are addressing is that of the dependent
assembly.
我们没有对System.Data.Linq的明确引用。直到VS2012的更新,我们没有任何错误。 MiniProfiler版本的确是针对.NET 4.0(我们的应用程序)。可能会导致此警告?
解决方法
<configuration> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <!-- etc... --> <add assembly="System.Data.Linq,PublicKeyToken=b77a5c561934e089" /> <!-- etc... --> </assemblies> </compilation> <system.web> </configuration>
原文地址:https://www.jb51.cc/aspnet/252478.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。