Skip to content
Merged
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
14 changes: 14 additions & 0 deletions CodeStyle/build/Polyadic.CodeStyle.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="_PolyadicCodeStylePreventLocalPack" BeforeTargets="Pack" Condition="'$(ContinuousIntegrationBuild)' != 'true' And '$(IsPackable)' == 'true'">
<PropertyGroup>
<_WorkflowUrl>$(PackageProjectUrl)/actions?query=branch%253Amain</_WorkflowUrl>
<_LinkPrefix>%1b]8;;</_LinkPrefix>
<_LinkInfix>%1b\</_LinkInfix>
<_LinkSuffix>$(_LinkPrefix)$(_LinkInfix)</_LinkSuffix>
</PropertyGroup>
<Error Text="Do not publish locally built packages to NuGet.org.
Download the artifacts $(_LinkPrefix)$(_WorkflowUrl)$(_LinkInfix)published on GitHub Actions$(_LinkSuffix) instead.
You can alternatively run `dotnet pack /p:ContinuousIntegrationBuild=true`." />
</Target>
</Project>
Loading