我想让https://www.twitterbootstrapmvc.com/开始工作:
_
PM> install-package TwitterBootstrapMVC5
Attempting to resolve dependency 'T4MVCExtensions (≥ 3.6.5)'.
Attempting to resolve dependency 'Portable.Licensing (≥ 1.1.0)'.
'TwitterBootstrapMVC5 3.13.10' already installed.
MyApp.Web already has a reference to 'TwitterBootstrapMVC5 3.13.10'.
PM> install-package Portable.Licensing
'Portable.Licensing 1.1.0' already installed.
MyApp.Web already has a reference to 'Portable.Licensing 1.1.0'.
然而,只要我在其中加载一个包含帮助器的视图,我就得到:
Could not load file or assembly 'Portable.Licensing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Could not load file or assembly 'Portable.Licensing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 7:
Line 8:
Line 9: @using (var f = Html.Bootstrap().Begin(new Form()))
Line 10: {
Line 11: @f.FormGroup().TextBoxFor(x => x.AbbreviationCode).Placeholder("Abreviation Code")
我需要做什么才能找到许可组件?
答案 0 :(得分:2)
我遇到了同样的问题并通过引用 Portable.Licensing.dll
修复了它