Skip to content

Commit 42807ee

Browse files
author
Hovsep
committed
Merge pull request #17 from hovsepm/NoWarning
Fixing build warnings (reduced to 74) (3115319)
2 parents dbaa515 + 5f1eee7 commit 42807ee

File tree

7 files changed

+19
-18
lines changed

7 files changed

+19
-18
lines changed

src/Common/Commands.Common/Common/ServiceManagementTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5258,7 +5258,7 @@ public string PrivateConfigurationSchema
52585258
public string CompanyName { get; set; }
52595259

52605260
#region IExtensibleDataObject Members
5261-
ExtensionDataObject IExtensibleDataObject.ExtensionData { get; set; }
5261+
public ExtensionDataObject ExtensionData { get; set; }
52625262
#endregion
52635263
}
52645264

src/ResourceManager/DataFactories/Commands.DataFactories/ProvisioningFailedException.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
namespace Microsoft.Azure.Commands.DataFactories
1818
{
19+
[Serializable]
1920
internal class ProvisioningFailedException : Exception
2021
{
2122
public ProvisioningFailedException(string errorMessage)

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourcesController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public sealed class ResourcesController
3131
{
3232
private CSMTestEnvironmentFactory csmTestFactory;
3333
private EnvironmentSetupHelper helper;
34-
protected const string TenantIdKey = "TenantId";
35-
protected const string DomainKey = "Domain";
34+
private const string TenantIdKey = "TenantId";
35+
private const string DomainKey = "Domain";
3636

3737
public GraphRbacManagementClient GraphClient { get; private set; }
3838

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/DscSettingsSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public static DscPublicSettings DeserializePublicSettings(string publicSettingsS
6868
JsonConvert.DeserializeObject<DscPublicSettings.Version1>(publicSettingsString);
6969
publicSettings = publicSettingsV1.ToCurrentVersion();
7070
}
71-
catch (JsonException e)
71+
catch (JsonException)
7272
{
73-
throw e;
73+
throw;
7474
}
7575
}
7676
return publicSettings;

src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Models/Simulators/AzureHDInsightJobSubmissionClientSimulator.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public AzureHDInsightJobSubmissionClientSimulator(
5454
this.InitializeSimulator();
5555
}
5656

57-
public void Dispose()
57+
public new void Dispose()
5858
{
5959
}
6060

@@ -65,17 +65,17 @@ public string GetCustomUserAgent()
6565
throw new NotImplementedException();
6666
}
6767

68-
public void AddLogWriter(ILogWriter logWriter)
68+
public new void AddLogWriter(ILogWriter logWriter)
6969
{
7070
this.logger.AddWriter(logWriter);
7171
}
7272

73-
public void RemoveLogWriter(ILogWriter logWriter)
73+
public new void RemoveLogWriter(ILogWriter logWriter)
7474
{
7575
this.logger.RemoveWriter(logWriter);
7676
}
7777

78-
public void Cancel()
78+
public new void Cancel()
7979
{
8080
}
8181

@@ -329,12 +329,12 @@ public Task<JobList> ListJobsAsync()
329329
return TaskEx2.FromResult(jobDetailList);
330330
}
331331

332-
public void SetCancellationSource(CancellationTokenSource tokenSource)
332+
public new void SetCancellationSource(CancellationTokenSource tokenSource)
333333
{
334334
this.cancellationTokenSource = tokenSource;
335335
}
336336

337-
public bool IgnoreSslErrors { get; set; }
337+
public new bool IgnoreSslErrors { get; set; }
338338

339339
public JobDetails StopJob(string jobId)
340340
{
@@ -537,6 +537,6 @@ private void WriteJobOutput(string jobId, string statusDirectory, string stdoutC
537537
this.jobOutput[jobId] = stdoutContent;
538538
}
539539

540-
public ILogger Logger { get; private set; }
540+
public new ILogger Logger { get; private set; }
541541
}
542542
}

src/ServiceManagement/Services/Commands.Test/Commands.Test.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@
7878
</Reference>
7979
<Reference Include="Microsoft.WindowsAzure.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
8080
<SpecificVersion>False</SpecificVersion>
81-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.0\lib\net45\Microsoft.WindowsAzure.Common.dll</HintPath>
81+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.1\lib\net45\Microsoft.WindowsAzure.Common.dll</HintPath>
8282
</Reference>
8383
<Reference Include="Microsoft.WindowsAzure.Common.NetFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
8484
<SpecificVersion>False</SpecificVersion>
85-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.0\lib\net45\Microsoft.WindowsAzure.Common.NetFramework.dll</HintPath>
85+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.1\lib\net45\Microsoft.WindowsAzure.Common.NetFramework.dll</HintPath>
8686
</Reference>
8787
<Reference Include="Microsoft.WindowsAzure.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
8888
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.2.0.3\lib\net40\Microsoft.WindowsAzure.Configuration.dll</HintPath>
@@ -97,7 +97,7 @@
9797
</Reference>
9898
<Reference Include="Microsoft.WindowsAzure.Management.ExpressRoute, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
9999
<SpecificVersion>False</SpecificVersion>
100-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.ExpressRoute.0.11.2-preview\lib\net40\Microsoft.WindowsAzure.Management.ExpressRoute.dll</HintPath>
100+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.ExpressRoute.0.16.2-preview\lib\net40\Microsoft.WindowsAzure.Management.ExpressRoute.dll</HintPath>
101101
</Reference>
102102
<Reference Include="Microsoft.WindowsAzure.Management.MediaServices">
103103
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.MediaServices.1.2.0\lib\net40\Microsoft.WindowsAzure.Management.MediaServices.dll</HintPath>

src/ServiceManagement/Services/Commands.Test/packages.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<package id="Microsoft.Data.OData" version="5.6.0" targetFramework="net45" />
88
<package id="Microsoft.Data.Services.Client" version="5.6.0" targetFramework="net45" />
99
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net45" />
10-
<package id="Microsoft.WindowsAzure.Common" version="1.4.0" targetFramework="net45" />
11-
<package id="Microsoft.WindowsAzure.Common.Dependencies" version="1.1.0" targetFramework="net45" />
10+
<package id="Microsoft.WindowsAzure.Common" version="1.4.1" targetFramework="net45" />
11+
<package id="Microsoft.WindowsAzure.Common.Dependencies" version="1.1.1" targetFramework="net45" />
1212
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.3" targetFramework="net45" />
1313
<package id="Microsoft.WindowsAzure.Management" version="2.1.0" targetFramework="net45" />
1414
<package id="Microsoft.WindowsAzure.Management.Compute" version="6.0.0" targetFramework="net45" />
15-
<package id="Microsoft.WindowsAzure.Management.ExpressRoute" version="0.11.2-preview" targetFramework="net45" />
15+
<package id="Microsoft.WindowsAzure.Management.ExpressRoute" version="0.16.2-preview" targetFramework="net45" />
1616
<package id="Microsoft.WindowsAzure.Management.MediaServices" version="1.2.0" targetFramework="net45" />
1717
<package id="Microsoft.WindowsAzure.Management.ServiceBus" version="0.15.0-preview" targetFramework="net45" />
1818
<package id="Microsoft.WindowsAzure.Management.Storage" version="3.1.0" targetFramework="net45" />

0 commit comments

Comments
 (0)