Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore warning CS8002 when building in debug mode #251

Merged
4 changes: 4 additions & 0 deletions src/EndpointManagerLauncher/endpointmanagerlauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<ApplicationIcon>..\resources\icons\BridgeToKubernetes_VS_NoHalo.ico</ApplicationIcon>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\common\Logging\Writers\*.cs" />
<Compile Include="..\common\Utilities\AsyncHelpers.cs" />
Expand Down
4 changes: 4 additions & 0 deletions src/LocalAgent/LocalAgent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<UserSecretsId>fd98643e-8a5f-4e08-a030-9bc36f0ddfc3</UserSecretsId>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
Expand Down
3 changes: 3 additions & 0 deletions src/common.tests/common.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)..\..\build\FinalPublicKey.snk</AssemblyOriginatorKeyFile>
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>
<!--PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/common/common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<PropertyGroup>
<DefineConstants>$(DefineConstants);$(TelemetryType)</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Update="CommonResources.Designer.cs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<TrimUnusedDependencies>true</TrimUnusedDependencies>
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<Content Include="TestData\*.json">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)\..\..\build\AssemblyVersion.proj" />

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/devhostagent/devhostAgent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<!--PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/dsc.tests/dsc.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<TrimUnusedDependencies>true</TrimUnusedDependencies>
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>
<!--PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/dsc/dsc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
<EndpointManagerSourcePath>$(EndpointManagerPublishDirectory)\$(EndpointManagerFileName)</EndpointManagerSourcePath>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<!-- During build, only publish EndpointManager.csproj if EndpointManager.exe doesn't already exist (because publishing is slow) -->
<Target Name="PublishEndpointManagerOnBuild" BeforeTargets="BeforeBuild" Condition="'$(ConsumeEndpointManager)'=='true'">
<CallTarget Targets="PublishEndpointManager" Condition="!Exists('$(EndpointManagerSourcePath)')" />
Expand Down
4 changes: 4 additions & 0 deletions src/endpointmanager.tests/endpointmanager.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Autofac.Extras.FakeItEasy" Version="7.0.0" />
<PackageReference Include="FakeItEasy" Version="7.3.1" />
Expand Down
4 changes: 4 additions & 0 deletions src/endpointmanager/endpointmanager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
<ApplicationIcon>..\resources\icons\BridgeToKubernetes_VS_NoHalo.ico</ApplicationIcon>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down
3 changes: 3 additions & 0 deletions src/library.tests/library.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<TrimUnusedDependencies>true</TrimUnusedDependencies>
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>
<!--PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/library/library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>
<!--PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<CodeAnalysisRuleSet />
</PropertyGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/routingmanager.tests/routingmanager.tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Remove="EnvoyConfigs\GetEnvoyConfig_IngressTriggerA_LoadBalancerTriggerA_PodTriggerA.txt" />
<None Remove="EnvoyConfigs\GetEnvoyConfig_IngressTriggerA_PodTriggerA.txt" />
Expand Down
4 changes: 4 additions & 0 deletions src/routingmanager/routingmanager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\common\common.csproj" />
</ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions src/testhelpers/testhelpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<HighEntropyVA>True</HighEntropyVA>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>8002</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Autofac.Extras.FakeItEasy" Version="7.0.0" />
<PackageReference Include="FakeItEasy" Version="7.3.1" />
Expand Down