Skip to content

Commit

Permalink
Error out when using legacy project format, closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Mar 10, 2024
1 parent 51126bc commit aa48d8d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<UsingTask TaskName="PublicizeTask" AssemblyFile="$(_BepInExAssemblyPublicizer_TaskAssembly)" />

<Target Name="Publicize" AfterTargets="ResolveReferences" BeforeTargets="FindReferenceAssembliesForReferences">
<Error Condition="'$(UsingMicrosoftNETSdk)' != 'true'" Text="BepInEx.AssemblyPublicizer.MSBuild only works in SDK-style projects" />

<PublicizeTask IntermediateOutputPath="$(IntermediateOutputPath)" ReferencePath="@(ReferencePath)" PackageReference="@(PackageReference)" Publicize="@(Publicize)">
<Output TaskParameter="RemovedReferences" ItemName="_RemovedReferences" />
<Output TaskParameter="PublicizedReferences" ItemName="_PublicizedReferences" />
Expand Down

0 comments on commit aa48d8d

Please sign in to comment.