Can I deploy a javascript file within MVC areas?

前端 未结 4 631
你的背包
你的背包 2021-01-13 09:13

I have my js files inside areas and I cannot access them. When I move them outside the MVC areas then I can access.

I have tried the following:

  • Differ
4条回答
  •  深忆病人
    2021-01-13 09:32

    Why put your scripts in the Areas section? I have an mvc site with an area as well, but I still keep my scripts in the Scripts folder.

    My suggestion is to rethink the reason you're organizing your content that way and consider moving all external .js files to the Scripts folder.

提交回复
热议问题