CSharp.Common.props 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Project>
  2. <PropertyGroup>
  3. <LangVersion>9.0</LangVersion>
  4. <!-- Enables Strict mode for Roslyn compiler -->
  5. <Features>strict;nullablePublicOnly</Features>
  6. </PropertyGroup>
  7. <ItemGroup>
  8. <!-- Required to exist in the NuGet package cache to enable code-signing. -->
  9. <PackageReference Include="MicroBuild.Core" Version="0.3.0" PrivateAssets="All" AllowExplicitReference="true" ExcludeAssets="All" />
  10. </ItemGroup>
  11. <ItemGroup Condition=" '$(IsTestProject)' == 'true' ">
  12. <Reference Include="Microsoft.AspNetCore.Testing" />
  13. <Reference Include="Moq" />
  14. <Reference Include="NETStandard.Library" />
  15. <Compile Include="$(SharedSourceRoot)test\SuccessfulTests.cs" LinkBase="SharedTests" />
  16. </ItemGroup>
  17. <Import Project="$(RepoRoot)src\Testing\src\build\Microsoft.AspNetCore.Testing.props" Condition=" '$(IsTestProject)' == 'true' " />
  18. <ItemDefinitionGroup Condition=" '$(IsTestProject)' == 'true' ">
  19. <Content>
  20. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  21. <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
  22. </Content>
  23. </ItemDefinitionGroup>
  24. <!-- Properties to control how we handle warnings when using the tasks provided by the Yarn MSBuild SDK -->
  25. <PropertyGroup>
  26. <IgnoreYarnWarnings>false</IgnoreYarnWarnings>
  27. <IgnoreYarnWarnings Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</IgnoreYarnWarnings>
  28. </PropertyGroup>
  29. </Project>