Skip to content

Commit

Permalink
Include project file reference
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebaltazar committed Nov 1, 2024
1 parent ba9cf84 commit 87b7285
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Maui.ServerDrivenUI/Maui.ServerDrivenUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<PackageId>ServerDrivenUI.Maui</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
Expand All @@ -28,7 +30,15 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Microsoft.Maui.Core.DeviceTests\Microsoft.Maui.Controls.DeviceTests.csproj" />
<ProjectReference Include="..\Microsoft.Maui.Core.DeviceTests\Microsoft.Maui.Controls.DeviceTests.csproj" PrivateAssets="all" >
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<IncludeAssets>Microsoft.Maui.Controls.DeviceTests.dll</IncludeAssets>
</ProjectReference>
</ItemGroup>


<Target DependsOnTargets="ResolveReferences" Name="CopyProjectReferencesToPackage">
<ItemGroup>
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))"/>
</ItemGroup>
</Target>
</Project>

0 comments on commit 87b7285

Please sign in to comment.