You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build should not show the "Does not support publish of C++/CLI project targeting dotnet core" error message when IsPublishable is false
When building & publishing a whole solution which contains a C++/CLI project, the publish shows the following error message:
C:\Program Files\dotnet\sdk\3.1.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(1048,5): error NETSDK1117: Does not support publish of C++/CLI project targeting dotnet core. [C:\XXX\YYY.vcxproj]
If you set the IsPublishable property to false, the error is still shown.
In my opinion this should be checked only when the project will be published here:
https://github.com/dotnet/sdk/blob/d9186282b30574e1de24939aa32b615e19c084a7/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets#L63-L65
0 commit comments