提交 27288268 编写于 作者: S Sam Harwell

Report a warning for missing 'Partner' attribute

A build error is also reported for the lack of an appropriate constructor.
上级 c1492aa2
......@@ -246,9 +246,10 @@
<_InternalsVisibleToAttribute Include="System.Runtime.CompilerServices.RestrictedInternalsVisibleToAttribute">
<_Parameter1>%(RestrictedInternalsVisibleTo.Identity)</_Parameter1>
<_Parameter2 Condition="'%(RestrictedInternalsVisibleTo.Partner)' != ''">Microsoft.CodeAnalysis.ExternalAccess.%(RestrictedInternalsVisibleTo.Partner).Api</_Parameter2>
<_Parameter2 Condition="'%(RestrictedInternalsVisibleTo.Partner)' == ''">Microsoft.CodeAnalysis.ExternalAccess.UnknownPartner.Api</_Parameter2>
</_InternalsVisibleToAttribute>
</ItemGroup>
<Warning Condition="'%(RestrictedInternalsVisibleTo.Partner)' == ''" Text="RestrictedInternalsVisibleTo items must specify the 'Partner' attribute. Target assembly: %(Identity)" />
</Target>
<!--
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册