File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3+ <Target Name =" _PolyadicCodeStylePreventLocalPack" BeforeTargets =" Pack" Condition =" '$(ContinuousIntegrationBuild)' != 'true' And '$(IsPackable)' == 'true'" >
4+ <PropertyGroup >
5+ <_WorkflowUrl >$(PackageProjectUrl)/actions?query=branch%253Amain</_WorkflowUrl >
6+ <_LinkPrefix >%1b]8;;</_LinkPrefix >
7+ <_LinkInfix >%1b\</_LinkInfix >
8+ <_LinkSuffix >$(_LinkPrefix)$(_LinkInfix)</_LinkSuffix >
9+ </PropertyGroup >
10+ <Error Text =" Do not publish locally built packages to NuGet.org.
11+ Download the artifacts $(_LinkPrefix)$(_WorkflowUrl)$(_LinkInfix)published on GitHub Actions$(_LinkSuffix) instead.
12+ You can alternatively run `dotnet pack /p:ContinuousIntegrationBuild=true`." />
13+ </Target >
14+ </Project >
You can’t perform that action at this time.
0 commit comments