Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,4 @@
</None>
</ItemGroup>

<!-- This target creates packages needed for e2e testing. Inputs and outputs are defined to enable incremental builds. -->

<PropertyGroup Label="TestAssests">
<ArtifactsNonShippingPackagesDir>$(ArtifactsBinDir)Microsoft.Build.BuildCheck.UnitTests\CustomChecks</ArtifactsNonShippingPackagesDir>
</PropertyGroup>

<ItemGroup Label="TestAssets">
<ProjectsToPack Include="..\Build\Microsoft.Build.csproj" />
<ProjectsToPack Include="..\Framework\Microsoft.Build.Framework.csproj" />
<ProjectsToPack Include="..\StringTools\StringTools.csproj" />
</ItemGroup>

<Target Name="GetSourceFilesForPacking">
<ItemGroup>
<SourceFilesForPacking Include="%(ProjectsToPack.RootDir)%(ProjectsToPack.Directory)**\*.cs" />
</ItemGroup>
</Target>

<Target Name="MSBuildPackagesForTests"
AfterTargets="Build"
DependsOnTargets="GetSourceFilesForPacking"
Inputs="@(ProjectsToPack);@(SourceFilesForPacking)"
Outputs="$(ArtifactsNonShippingPackagesDir)\Microsoft.Build.$(Version).nupkg;$(ArtifactsNonShippingPackagesDir)\Microsoft.Build.Framework.$(Version).nupkg;$(ArtifactsNonShippingPackagesDir)\Microsoft.NET.StringTools.$(Version).nupkg">
<Exec Command="dotnet pack &quot;%(ProjectsToPack.Identity)&quot; -o &quot;$(ArtifactsNonShippingPackagesDir)&quot; -p:PackageVersion=$(PackageVersion)" />
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<!-- In the real world scenario, the dependencies are added as Nuget PackageReference, modified for test purposes only. -->
<ItemGroup>
<ProjectReference Include="..\..\..\Build\Microsoft.Build.csproj" />
<ProjectReference Include="..\..\..\Build\Microsoft.Build.csproj" IncludeInPackage="true" />
</ItemGroup>

</Project>