Skip to content

Commit 15dd3db

Browse files
authored
Build should not show the "Does not support publish of C++/CLI projec… (#12333)
2 parents 77bd863 + 433346e commit 15dd3db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ Copyright (c) .NET Foundation. All rights reserved.
11271127
============================================================
11281128
-->
11291129
<Target Name="_CheckForLanguageAndPublishFeatureCombinationSupport"
1130+
Condition="$(IsPublishable) == 'true'"
11301131
BeforeTargets="Publish;PrepareForPublish">
11311132

11321133
<NETSdkError Condition="('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and '$(TargetFrameworkIdentifier)' == '.NETCoreApp'"

0 commit comments

Comments
 (0)