Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net core ASP.NET核心视图组件位置是否有ReSharper属性?_Asp.net Core_Resharper - Fatal编程技术网

Asp.net core ASP.NET核心视图组件位置是否有ReSharper属性?

Asp.net core ASP.NET核心视图组件位置是否有ReSharper属性?,asp.net-core,resharper,Asp.net Core,Resharper,我正在使用并希望将视图组件与视图放在同一文件夹中 对于ReSharper,您可以为视图位置设置如下属性: [assembly: AspMvcViewLocationFormat(@"~\Features\{1}\{0}.cshtml")] [assembly: AspMvcViewLocationFormat(@"~\Features\Shared\{0}.cshtml")] 这使得ReSharper能够正确推断视图的位置,用于视图生成和导航。但是,这不适用于视图组件 是否有任何方法可以为视图

我正在使用并希望将视图组件与视图放在同一文件夹中

对于ReSharper,您可以为视图位置设置如下属性:

[assembly: AspMvcViewLocationFormat(@"~\Features\{1}\{0}.cshtml")]
[assembly: AspMvcViewLocationFormat(@"~\Features\Shared\{0}.cshtml")]
这使得ReSharper能够正确推断视图的位置,用于视图生成和导航。但是,这不适用于视图组件

是否有任何方法可以为视图组件获得相同的效果