mirror of
https://github.com/Readarr/Readarr
synced 2025-12-31 12:42:25 +01:00
New: Treat compile warnings as errors
This commit is contained in:
parent
cdf8b1cb5d
commit
b0adb2035e
2 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
<Project>
|
||||
<!-- Common to all Lidarr Projects -->
|
||||
<PropertyGroup>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
|
||||
<LidarrRootDir>$(MSBuildThisFileDirectory)..\</LidarrRootDir>
|
||||
|
||||
<!-- Specifies the type of output -->
|
||||
|
|
@ -63,6 +65,7 @@
|
|||
|
||||
<Deterministic Condition="$(AssemblyVersion.EndsWith('*'))">False</Deterministic>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Set the AssemblyConfiguration attribute for projects -->
|
||||
<ItemGroup Condition="'$(LidarrProject)'=='true'">
|
||||
<AssemblyAttribute Include="System.Reflection.AssemblyConfigurationAttribute">
|
||||
|
|
|
|||
|
|
@ -51,7 +51,10 @@ public void SendEmail(EmailSettings settings, string subject, string body, bool
|
|||
|
||||
private void Send(MailMessage email, string server, int port, bool ssl, NetworkCredential credentials)
|
||||
{
|
||||
//TODO: This is marked obsolete in mono, will not be necessary once we build with net core instead
|
||||
#pragma warning disable CS0618
|
||||
var smtp = new SmtpClient(server, port);
|
||||
#pragma warning restore CS0618
|
||||
smtp.EnableSsl = ssl;
|
||||
smtp.Credentials = credentials;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue