问题
I'm trying to add Model validation in Asp.Net MVC ,
So I need to import the libraries at first inside Views\Share_Layout.cshtml .
Then it kills me in a second.
@Scripts doesn't exist
What is going on ? If some further information needed , please tell me. Thanks :)
回答1:
- Install
Microsoft.AspNet.Web.Optimization
- In
web.config
(Views folder) make sure you have under namespaces<add namespace="System.Web.Optimization"/>
来源:https://stackoverflow.com/questions/43159078/scripts-doesnt-exist-in-asp-net-mvc