[英]How to .net standard 2.0 partial class grouping
I can not do partial class grouping for my problem in xamarin .net framework 2.0. 对于xamarin .net framework 2.0中的问题,我无法进行部分类分组。
enter image description here 在此处输入图片说明
<ItemGroup>
<EmbeddedResource Update="Pages\Checkout Pages\Resource1.resx">
<Generator>ResXFileCodeGenerator</Generator>
<DependentUpon>CartPage.cs</DependentUpon>
</EmbeddedResource>
I can set the Resx format file like this. 我可以这样设置Resx格式文件。 But I can not put the file named CartPage.Design.cs under CartPage.cs. 但是我不能将名为CartPage.Design.cs的文件放在CartPage.cs下。 How can I do it ? 我该怎么做 ?
This is generated in the .csproj file when Access Modifier
is set to Public
in the Resource1.resx view: 当在Resource1.resx视图中将Access Modifier
设置为Public
时,这将在.csproj文件中生成:
<ItemGroup>
<Compile Update="Pages\CheckoutPages\Resource1.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resource1.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Pages\CheckoutPages\Resource1.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resource1.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
The .Designer.cs
file is shown below the .resx
file in the Solution Explorer. .Designer.cs
文件显示在解决方案资源管理器中.resx
文件下方。
The space characters in the folder name might be an issue. 文件夹名称中的空格字符可能是一个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.