Skip to content

Commit 4ef5bba

Browse files
committed
Merge pull request #878 from ogail/psget
Remove Commands.Common dependency from Common.Storage
2 parents 6623e0b + 32a79ed commit 4ef5bba

File tree

4 files changed

+36
-12
lines changed

4 files changed

+36
-12
lines changed

src/Common/Commands.Common.Storage/Commands.Common.Storage.csproj

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
</Reference>
143143
<Reference Include="System.Net.Http.WebRequest" />
144144
<Reference Include="System.Runtime.Serialization" />
145+
<Reference Include="System.ServiceModel" />
146+
<Reference Include="System.ServiceModel.Channels" />
145147
<Reference Include="System.Spatial, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
146148
<SpecificVersion>False</SpecificVersion>
147149
<HintPath>..\..\packages\System.Spatial.5.6.4\lib\net40\System.Spatial.dll</HintPath>
@@ -153,6 +155,21 @@
153155
<Reference Include="System.Xml" />
154156
</ItemGroup>
155157
<ItemGroup>
158+
<Compile Include="..\commands.common\AzurePowerShell.cs">
159+
<Link>Common\AzurePowerShell.cs</Link>
160+
</Compile>
161+
<Compile Include="..\commands.common\ConversionUtilities.cs">
162+
<Link>Common\ConversionUtilities.cs</Link>
163+
</Compile>
164+
<Compile Include="..\commands.common\DebugStreamTraceListener.cs">
165+
<Link>Common\DebugStreamTraceListener.cs</Link>
166+
</Compile>
167+
<Compile Include="..\commands.common\GeneralUtilities.cs">
168+
<Link>Common\GeneralUtilities.cs</Link>
169+
</Compile>
170+
<Compile Include="..\commands.common\RecordingTracingInterceptor.cs">
171+
<Link>Common\RecordingTracingInterceptor.cs</Link>
172+
</Compile>
156173
<Compile Include="AzureStorageContext.cs" />
157174
<Compile Include="BlobUploadParameters.cs" />
158175
<Compile Include="IStorageClientWrapper.cs" />
@@ -175,12 +192,6 @@
175192
<ItemGroup>
176193
<None Include="packages.config" />
177194
</ItemGroup>
178-
<ItemGroup>
179-
<ProjectReference Include="..\Commands.Common\Commands.Common.csproj">
180-
<Project>{5ee72c53-1720-4309-b54b-5fb79703195f}</Project>
181-
<Name>Commands.Common</Name>
182-
</ProjectReference>
183-
</ItemGroup>
184195
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
185196
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
186197
<Import Project="..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" />

src/Common/Commands.Common.Storage/Properties/Resources.Designer.cs

Lines changed: 14 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Common/Commands.Common.Storage/Properties/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
<data name="AnonymousAccountName" xml:space="preserve">
121121
<value>[Anonymous]</value>
122122
</data>
123+
<data name="BlobAlreadyExistsInTheAccount" xml:space="preserve">
124+
<value>Blob with the name {0} already exists in the account.</value>
125+
</data>
123126
<data name="SasTokenAccountName" xml:space="preserve">
124127
<value>[SasToken]</value>
125128
</data>

src/Common/Commands.Common.Storage/StorageClientWrapper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace Microsoft.WindowsAzure.Commands.Common.Storage
1717
using System;
1818
using System.Globalization;
1919
using System.IO;
20+
using Properties;
2021
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2122
using Microsoft.WindowsAzure.Management.Storage;
2223
using Microsoft.WindowsAzure.Management.Storage.Models;
@@ -97,7 +98,7 @@ private Uri UploadFile(string storageName, Uri blobEndpointUri, string storageKe
9798
else
9899
{
99100
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture,
100-
Commands.Common.Properties.Resources.BlobAlreadyExistsInTheAccount, blobName));
101+
Resources.BlobAlreadyExistsInTheAccount, blobName));
101102
}
102103
}
103104

0 commit comments

Comments
 (0)