Enforce treating warnings as errors in Debug mode too as it is going to save

us a lot of broken builds. Fixed bug where the HostPlanAction.CurrentHost was
always null (as the private field was never set).

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-03-09 10:44:19 +00:00 committed by Mihaela Stoica
parent ee648135f6
commit d69f2ddda3
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ namespace XenAdmin.Wizards.PatchingWizard.PlanActions
protected HostPlanAction(Host host, string description)
: base(host.Connection, description)
{
_currentHost = host;
HostXenRef = new XenRef<Host>(host);
}

View File

@ -45,7 +45,7 @@
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<UseVSHostingProcess>true</UseVSHostingProcess>
<Prefer32Bit>false</Prefer32Bit>