Hide build log files from Solution Explorer

Added `<ItemGroup>` entries in `PowerDisplay.Lib.UnitTests.csproj`,
`PowerDisplay.Lib.csproj`, and `PowerDisplay.csproj` to exclude
build log files (`*.log` and `*.binlog`) from being displayed in
the Solution Explorer. This change declutters the project view
and ensures consistency across all project files, improving the
developer experience.
This commit is contained in:
Yu Leng
2025-12-04 05:50:47 +08:00
parent f32ee3ea02
commit e2be06f387
3 changed files with 16 additions and 0 deletions

View File

@@ -14,6 +14,12 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<!-- Hide build log files from Solution Explorer -->
<None Remove="*.log" />
<None Remove="*.binlog" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="MSTest" /> <PackageReference Include="MSTest" />
<PackageReference Include="Moq" /> <PackageReference Include="Moq" />

View File

@@ -26,6 +26,11 @@
<PackageReference Include="WmiLight" /> <PackageReference Include="WmiLight" />
<PackageReference Include="System.Collections.Immutable" /> <PackageReference Include="System.Collections.Immutable" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<!-- Hide build log files from Solution Explorer -->
<None Remove="*.log" />
<None Remove="*.binlog" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" /> <ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" />
<ProjectReference Include="..\..\..\common\ManagedCsWin32\ManagedCsWin32.csproj" /> <ProjectReference Include="..\..\..\common\ManagedCsWin32\ManagedCsWin32.csproj" />

View File

@@ -33,6 +33,11 @@
<TrimmerSingleWarn>false</TrimmerSingleWarn> <TrimmerSingleWarn>false</TrimmerSingleWarn>
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings> <SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<!-- Hide build log files from Solution Explorer -->
<None Remove="*.log" />
<None Remove="*.binlog" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<Page Remove="PowerDisplayXAML\App.xaml" /> <Page Remove="PowerDisplayXAML\App.xaml" />
</ItemGroup> </ItemGroup>