VisualStudio.TestPlatform 会生成许多<country>文件夹

问题描述 投票:0回答:1

在 Visual Studio '22 中使用 NUnit 的测试项目中,V.S. build 会生成 13 个文件夹,其中
de、es、fr、it、zh-Hans 等国家的代码 每个文件夹都有相同的 6 个 dll 集合,例如
Microsoft.TestPlatform.CommunicationUtilities.resources.dll
Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll

这些 dll 也位于根文件夹中,有没有办法在构建中避免这些子文件夹?

visual-studio build nunit
1个回答
0
投票

您可以通过将以下行添加到您正在构建的项目文件的

<PropertyGroup>
元素内来限制生成哪些文件夹:

<SatelliteResourceLanguages>en</SatelliteResourceLanguages>

如果您也喜欢法语:

<SatelliteResourceLanguages>en;fr</SatelliteResourceLanguages>
© www.soinside.com 2019 - 2024. All rights reserved.