2025-07-22 17:25:07 +08:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
2026-02-06 16:12:44 -08:00
|
|
|
<Import Project="$(RepoRoot)src\Common.Dotnet.CsWinRT.props" />
|
2025-07-22 17:25:07 +08:00
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<IsPackable>false</IsPackable>
|
|
|
|
|
<IsTestProject>true</IsTestProject>
|
|
|
|
|
<RootNamespace>Microsoft.CmdPal.Ext.System.UnitTests</RootNamespace>
|
CmdPal: Use RepoRoot instead of SolutionDir (#49643)
As it turns out, the robots are unbelievably stupid. When they build our
projects to verify their changes, they will often just build the .csproj
that they changed rather than building it in the context of the
solution. On the surface, this feels like a good idea. Only build the
thing that changed.
However, because they're not building it in the context of a solution,
the MSBuild variable `$(SolutionDir)` doesn't get expanded to the actual
directory of the solution. Instead, it just gets treated as the *path to
the project*. This creates terrible recursive loops where the output of
a project gets dumped relative to the project itself, and then that gets
taken as input to the project's package outputs, and eventually you're
gonna end up with a max path overrun.
The very easy solution here is to just replace `$(SolutionDir)` with
`$(RepoRoot)`.
If we use that variable, then the dumb robots will still get the correct
value for that variable when they build just a project. And for all the
actual humans, everything will work exactly as it did before.
2026-08-04 09:17:30 -05:00
|
|
|
<OutputPath>$(RepoRoot)$(Platform)\$(Configuration)\WinUI3Apps\CmdPal\tests\</OutputPath>
|
2025-07-22 17:25:07 +08:00
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<PackageReference Include="Moq" />
|
|
|
|
|
<PackageReference Include="MSTest" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ProjectReference Include="..\..\..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
|
|
|
|
<ProjectReference Include="..\..\ext\Microsoft.CmdPal.Ext.System\Microsoft.CmdPal.Ext.System.csproj" />
|
|
|
|
|
<ProjectReference Include="..\..\extensionsdk\Microsoft.CommandPalette.Extensions.Toolkit\Microsoft.CommandPalette.Extensions.Toolkit.csproj" />
|
2025-07-30 17:19:40 +08:00
|
|
|
<ProjectReference Include="..\Microsoft.CmdPal.Ext.UnitTestsBase\Microsoft.CmdPal.Ext.UnitTestBase.csproj" />
|
2025-07-22 17:25:07 +08:00
|
|
|
</ItemGroup>
|
|
|
|
|
</Project>
|