eng/Directory.Build.targets (19 lines of code) (raw):

<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <IsTestProject Condition="'$(IsTestProject)' == '' and $(MSBuildProjectName.EndsWith('.Tests'))">true</IsTestProject> </PropertyGroup> <PropertyGroup Condition="'$(IsTestProject)' == 'true' or '$(IsTestHelperLibrary)' == 'true'"> <IsPackable>false</IsPackable> <SignAssembly>false</SignAssembly> <!-- Disable running of tests for test helper libraries --> <IsTestProject Condition="'$(IsTestHelperLibrary)' == 'true'">false</IsTestProject> </PropertyGroup> <!-- Exclude TestReferenceWithInternalsVisibleTo from strong name signing, as it is required for a test scenario --> <PropertyGroup Condition="'$(SignAssembly)' != 'false' and !$(MSBuildProjectName.EndsWith('TestReferenceWithInternalsVisibleTo'))"> <SignAssembly>true</SignAssembly> <DelaySign>false</DelaySign> <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)AzureSDKToolsKey.snk</AssemblyOriginatorKeyFile> </PropertyGroup> <!-- Add Package Icon --> <ItemGroup> <None Include="$(RepoEngPath)/images/pkgicon.png" Pack="true" PackagePath=""/> </ItemGroup> <Import Project="Versioning.targets" /> </Project>