在beta 5中,VS2015中的智能感知不适用于taghelpers。通过将此存根添加到项目中,我修复了缺少属性的错误消息
我该如何解决这个问题呢?
using System;
namespace Microsoft.AspNet.Mvc
{
/// <summary>
/// Specifies that a property or parameter value should be initialized via the dependency injection
/// container for activated types.
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class ActivateAttribute : Attribute
{
}
}发布于 2015-07-04 20:53:23
找到了。我用了一下beta 6。但忘记将_ViewImports重命名为_GlobalImport
https://stackoverflow.com/questions/31220455
复制相似问题