gpt4 book ai didi

c# - 系统.Web.HttpCompileException :The type '<>' is defined in an assembly that is not referenced

转载 作者:行者123 更新时间:2023-11-30 21:33:29 26 4
gpt4 key购买 nike

刚把.NET framework升级到4.7.2后发现这个错误:

System.Web.HttpCompileException: some.cshtml(95): error CS0012: The type 'IEnumerable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.'

我应该在哪里添加引用?

最佳答案

发现于 github .将以下内容添加到 web.Config 文件中:

<compilation debug="true" targetFramework="4.7.2" >
<assemblies>
<add assembly="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51"/>
</assemblies>
</compilation>

关于c# - 系统.Web.HttpCompileException :The type '<>' is defined in an assembly that is not referenced,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51400016/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com