Skip to content

Commit

Permalink
Suppress project dependency issue with sample projects on the build a…
Browse files Browse the repository at this point in the history
…gents. (#19965)
  • Loading branch information
azabbasi authored Mar 30, 2021
1 parent 38afda7 commit 37421b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<RootNamespace>Azure.DigitalTwins.Core.Samples</RootNamespace>
</PropertyGroup>

<!-- NU5104: Using a project reference to the client causes build warning/errors on build agents. -->
<PropertyGroup>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>

<ItemGroup>
<!--using the preview version of Azure.Identity to have access to KnownAuthorityHosts static class.-->
<PackageReference Include="Azure.Identity" Version="1.2.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<RootNamespace>Azure.IoT.Hub.Service.Samples</RootNamespace>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU' Or '$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>NU5104</NoWarn>
<!-- NU5104: Using a project reference to the client causes build warning/errors on build agents. -->
<PropertyGroup>
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Azure.IoT.ModelsRepository.Samples</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU' Or '$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>CS8002</NoWarn>

<!-- NU5104: Using a project reference to the client causes build warning/errors on build agents. -->
<!-- CS8002: The non-track2 package dependency (Microsoft.Azure.DigitalTwins.Parser) is not signed. -->
<PropertyGroup>
<NoWarn>$(NoWarn);CS8002;NU5104</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 37421b7

Please sign in to comment.