Skip to content

Commit

Permalink
Set warning as error on all projects (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMogensen authored Feb 3, 2025
1 parent f555ed9 commit 04082e0
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>

Expand Down
8 changes: 8 additions & 0 deletions src/EventGridExplorerLibrary/EventGridExplorerLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
<AssemblyName>ServiceBusExplorer.EventGridExplorerLibrary</AssemblyName>
</PropertyGroup>

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

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Messaging.EventGrid" Version="4.22.0-beta.1" />
<PackageReference Include="Azure.Identity" Version="1.12.0" />
Expand Down
6 changes: 6 additions & 0 deletions src/EventHubs/EventHubs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<RootNamespace>ServiceBusExplorer.EventHubs</RootNamespace>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.10.0" />
</ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/NotificationHubs/NotificationHubs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.NotificationHubs" Version="1.0.9" />
Expand Down
6 changes: 6 additions & 0 deletions src/Relay/Relay.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<AssemblyName>ServiceBusExplorer.Relay</AssemblyName>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Relay" Version="3.0.1" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/ServiceBus/ServiceBus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<AssemblyName>ServiceBusExplorer.ServiceBus</AssemblyName>
<AssemblyVersion>1.0.0.1</AssemblyVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.0" />
</ItemGroup>
Expand Down
6 changes: 6 additions & 0 deletions src/ServiceBusExplorer.Tests/ServiceBusExplorer.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
<Copyright>Copyright © Microsoft 2016</Copyright>
<OutputPath>bin\$(Configuration)\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Configuration" />
<Reference Include="System.ServiceModel" />
Expand Down
2 changes: 2 additions & 0 deletions src/ServiceBusExplorer/ServiceBusExplorer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DebugType>pdbonly</DebugType>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
Expand Down
6 changes: 6 additions & 0 deletions src/Utilities/Utilities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<AssemblyVersion>1.0.0.1</AssemblyVersion>
<RootNamespace>ServiceBusExplorer.Utilities</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
Expand Down

0 comments on commit 04082e0

Please sign in to comment.