Skip to content

Commit 505ee39

Browse files
author
Klein Hu
committed
Remove ProjectReference in Commands.MachineLearning.csproj
1 parent dc1f011 commit 505ee39

File tree

2 files changed

+15
-43
lines changed

2 files changed

+15
-43
lines changed

src/ResourceManager/MachineLearning/Commands.MachineLearning/Cmdlets/WebServicesCmdletBase.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@
2222
using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions;
2323
using Microsoft.Azure.Commands.ResourceManager.Common;
2424
using Microsoft.Rest.Azure;
25-
using PSResourceManagerModels = Microsoft.Azure.Commands.Resources.Models;
2625

2726
namespace Microsoft.Azure.Commands.MachineLearning
2827
{
2928
public abstract class WebServicesCmdletBase : AzureRMCmdlet
3029
{
3130
public const string CommandletSuffix = "AzureRmMlWebService";
3231

33-
private PSResourceManagerModels.ResourcesClient resourcesClient;
34-
3532
private WebServicesClient webServicesClient;
3633

3734
/// <summary>
@@ -47,24 +44,6 @@ protected CancellationToken? CancellationToken
4744
}
4845
}
4946

50-
public PSResourceManagerModels.ResourcesClient ResourceClient
51-
{
52-
get
53-
{
54-
if (this.resourcesClient == null)
55-
{
56-
this.resourcesClient = new PSResourceManagerModels.ResourcesClient(DefaultProfile.Context)
57-
{
58-
VerboseLogger = WriteVerboseWithTimestamp,
59-
ErrorLogger = WriteErrorWithTimestamp,
60-
WarningLogger = WriteWarningWithTimestamp
61-
};
62-
}
63-
return this.resourcesClient;
64-
}
65-
set { this.resourcesClient = value; }
66-
}
67-
6847
public WebServicesClient WebServicesClient
6948
{
7049
get

src/ResourceManager/MachineLearning/Commands.MachineLearning/Commands.MachineLearning.csproj

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,21 @@
8282
<SpecificVersion>False</SpecificVersion>
8383
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
8484
</Reference>
85+
<Reference Include="Microsoft.Azure.Commands.Resources.dll">
86+
<Private>true</Private>
87+
</Reference>
88+
<Reference Include="Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll">
89+
<Private>true</Private>
90+
</Reference>
91+
<Reference Include="Microsoft.Azure.Commands.ResourceManager.Common.dll">
92+
<Private>true</Private>
93+
</Reference>
94+
<Reference Include="Microsoft.WindowsAzure.Commands.Common.dll">
95+
<Private>true</Private>
96+
</Reference>
97+
<Reference Include="Microsoft.Azure.Commands.Common.Authentication.dll">
98+
<Private>true</Private>
99+
</Reference>
85100
<Reference Include="System" />
86101
<Reference Include="System.Core" />
87102
<Reference Include="System.Net.Http" />
@@ -93,28 +108,6 @@
93108
<Reference Include="System.Xml" />
94109
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
95110
</ItemGroup>
96-
<ItemGroup>
97-
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication\Commands.Common.Authentication.csproj">
98-
<Project>{d3804b64-c0d3-48f8-82ec-1f632f833c9e}</Project>
99-
<Name>Commands.Common.Authentication</Name>
100-
</ProjectReference>
101-
<ProjectReference Include="..\..\..\Common\Commands.Common\Commands.Common.csproj">
102-
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
103-
<Name>Commands.Common</Name>
104-
</ProjectReference>
105-
<ProjectReference Include="..\..\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj">
106-
<Project>{3819d8a7-c62c-4c47-8ddd-0332d9ce1252}</Project>
107-
<Name>Commands.ResourceManager.Common</Name>
108-
</ProjectReference>
109-
<ProjectReference Include="..\..\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj">
110-
<Project>{8058d403-06e3-4bed-8924-d166ce303961}</Project>
111-
<Name>Commands.Resources.Rest</Name>
112-
</ProjectReference>
113-
<ProjectReference Include="..\..\Resources\Commands.Resources\Commands.Resources.csproj">
114-
<Project>{e1f5201d-6067-430e-b303-4e367652991b}</Project>
115-
<Name>Commands.Resources</Name>
116-
</ProjectReference>
117-
</ItemGroup>
118111
<ItemGroup>
119112
<Compile Include="Cmdlets\ExportWebServiceDefinition.cs" />
120113
<Compile Include="Cmdlets\GetAzureMLWebServiceKeys.cs" />

0 commit comments

Comments
 (0)