Skip to content

Commit

Permalink
Move NuGet MSBuild project back to top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
Popax21 committed Apr 22, 2024
1 parent 85bb9ab commit 113fb92
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nuget/Piton.NuGet.proj → Piton.NuGet.proj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.Build.NoTargets/3.7.56">
<Project Sdk="Microsoft.Build.NoTargets/3.7.56" DefaultTargets="Pack">
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<NoWarn>NU5100;NU5128;MSB3245</NoWarn> <!-- Disable irrelevant warnings -->

<!-- NuGet metadata -->
Expand All @@ -13,13 +12,13 @@

<!-- Include MSBuild .props / .target files -->
<ItemGroup>
<Content Include="../build/" PackagePath="build/" />
<Content Include="build/" PackagePath="build/" />
</ItemGroup>

<!-- Build + Include custom MSBuild tasks -->
<Target Name="PackTasksAssembly" BeforeTargets="Pack">
<Target Name="PackTasksAssembly" BeforeTargets="Build">
<!-- Build the MSBuild tasks assembly -->
<MSBuild Projects="../msbuild/Piton.Tasks.csproj" Properties="Configuration=$(Configuration)">
<MSBuild Projects="msbuild/Piton.Tasks.csproj" Properties="Configuration=$(Configuration)">
<Output TaskParameter="TargetOutputs" ItemName="PitonTasksAssembly" />
</MSBuild>

Expand Down Expand Up @@ -55,7 +54,7 @@
/>
<_PitonAppHostBin Include="@(_PitonAppHostBinRaw->Exists())" />
</ItemGroup>
<Error Text="No apphost binaries present in PitonAppHostBinDir '$(PitonAppHostBinDir)'!" Condition="@(_PitonAppHostBin->Count()) == 0" />
<!-- <Error Text="No apphost binaries present in PitonAppHostBinDir '$(PitonAppHostBinDir)'!" Condition="@(_PitonAppHostBin->Count()) == 0" /> -->

<!-- Include them in the packaged .nupkg -->
<ItemGroup>
Expand Down

0 comments on commit 113fb92

Please sign in to comment.