File tree Expand file tree Collapse file tree 6 files changed +20
-19
lines changed
src/ResourceManager/MachineLearning
Commands.MachineLearning.Test Expand file tree Collapse file tree 6 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 59
59
<HintPath >..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath >
60
60
<Private >True</Private >
61
61
</Reference >
62
- <Reference Include =" ..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.0 -preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll" >
62
+ <Reference Include =" ..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.3 -preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll" >
63
63
<Name >Microsoft.Azure.Management.MachineLearning</Name >
64
64
<Private >True</Private >
65
65
</Reference >
Original file line number Diff line number Diff line change 6
6
<package id =" Microsoft.Azure.Gallery" version =" 2.6.2-preview" targetFramework =" net45" />
7
7
<package id =" Microsoft.Azure.Management.Authorization" version =" 1.0.2" targetFramework =" net45" />
8
8
<package id =" Microsoft.Azure.Management.Resources" version =" 2.20.0-preview" targetFramework =" net45" />
9
- <package id =" Microsoft.Azure.Management.MachineLearning" version =" 0.9.0 -preview" />
9
+ <package id =" Microsoft.Azure.Management.MachineLearning" version =" 0.9.3 -preview" />
10
10
<package id =" Microsoft.Azure.Management.Storage" version =" 3.0.0" targetFramework =" net45" />
11
11
<package id =" Microsoft.Azure.Test.Framework" version =" 1.0.5945.28173-prerelease" targetFramework =" net45" />
12
12
<package id =" Microsoft.Azure.Test.HttpRecorder" version =" 1.6.0-preview" targetFramework =" net45" />
Original file line number Diff line number Diff line change @@ -67,13 +67,19 @@ public override void ExecuteCmdlet()
67
67
68
68
if ( ! string . IsNullOrWhiteSpace ( this . OutputFile ) )
69
69
{
70
- bool fileExisting = File . Exists ( this . OutputFile ) ;
70
+ var currentPath = this . SessionState . Path . CurrentFileSystemLocation . Path ;
71
+ var definitionFileFullPath =
72
+ Path . IsPathRooted ( this . OutputFile ) ?
73
+ this . OutputFile :
74
+ Path . Combine ( currentPath , this . OutputFile ) ;
75
+
76
+ bool fileExisting = File . Exists ( definitionFileFullPath ) ;
71
77
this . ConfirmAction (
72
78
this . Force || ! fileExisting ,
73
79
"Want to overwriting the output file?" ,
74
80
"Overwriting the output file" ,
75
- this . OutputFile ,
76
- ( ) => File . WriteAllText ( this . OutputFile , serializedDefinition ) ) ;
81
+ definitionFileFullPath ,
82
+ ( ) => File . WriteAllText ( definitionFileFullPath , serializedDefinition ) ) ;
77
83
}
78
84
else
79
85
{
Original file line number Diff line number Diff line change 47
47
<Prefer32Bit >false</Prefer32Bit >
48
48
</PropertyGroup >
49
49
<ItemGroup >
50
- <Reference Include =" ..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.0 -preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll" >
50
+ <Reference Include =" ..\..\..\packages\Microsoft.Azure.Management.MachineLearning.0.9.3 -preview\lib\net45\Microsoft.Azure.Management.MachineLearning.dll" >
51
51
<Name >Microsoft.Azure.Management.MachineLearning</Name >
52
52
<Private >True</Private >
53
53
</Reference >
Original file line number Diff line number Diff line change @@ -51,22 +51,17 @@ internal static bool TryParseMlWebServiceMetadataFromResourceId(
51
51
52
52
internal static string GetWebServiceDefinitionFromFile ( string currentPath , string definitionFilePath )
53
53
{
54
- string definitionFileFullPath ;
55
- if ( Path . IsPathRooted ( definitionFilePath ) )
56
- {
57
- definitionFileFullPath = definitionFilePath ;
58
- }
59
- else
60
- {
61
- definitionFileFullPath = Path . Combine ( currentPath , definitionFilePath ) ;
62
- }
54
+ var definitionFileFullPath =
55
+ Path . IsPathRooted ( definitionFilePath ) ?
56
+ definitionFilePath :
57
+ Path . Combine ( currentPath , definitionFilePath ) ;
63
58
64
- if ( ! File . Exists ( definitionFilePath ) )
59
+ if ( ! File . Exists ( definitionFileFullPath ) )
65
60
{
66
- throw new FileNotFoundException ( Resources . MissingDefinitionFile , definitionFilePath ) ;
61
+ throw new FileNotFoundException ( Resources . MissingDefinitionFile , definitionFileFullPath ) ;
67
62
}
68
63
69
- return File . ReadAllText ( definitionFilePath ) ;
64
+ return File . ReadAllText ( definitionFileFullPath ) ;
70
65
}
71
66
}
72
67
}
Original file line number Diff line number Diff line change 10
10
<package id =" Microsoft.Rest.ClientRuntime.Azure" version =" 3.1.0" targetFramework =" net45" />
11
11
<package id =" Microsoft.Rest.ClientRuntime.Azure.Authentication" version =" 2.0.1-preview" targetFramework =" net45" />
12
12
<package id =" Newtonsoft.Json" version =" 6.0.8" targetFramework =" net45" />
13
- <package id =" Microsoft.Azure.Management.MachineLearning" version =" 0.9.0 -preview" />
13
+ <package id =" Microsoft.Azure.Management.MachineLearning" version =" 0.9.3 -preview" />
14
14
</packages >
You can’t perform that action at this time.
0 commit comments