Skip to content

Commit 8278e93

Browse files
authored
Merge pull request #5709 from vladimir-shcherbakov/iss#5512
Common Code Version of Compute Management Library (Issue #5512)
2 parents 400842c + 5fcf1fe commit 8278e93

File tree

227 files changed

+41558
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+41558
-19
lines changed

Azure.PowerShell.Netcore.sln

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27130.2010
4+
VisualStudioVersion = 15.0.27130.2027
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Authentication.Netcore", "src\Common\Commands.Common.Authentication\Common.Authentication.Netcore.csproj", "{D12674F6-CB92-438F-A68D-21CE12F8611B}"
77
EndProject
@@ -51,6 +51,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Strategies.Netcore",
5151
EndProject
5252
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Common.Tests", "src\Common\Commands.Common.Tests\Commands.Common.Tests.csproj", "{B0EF35E9-2D7A-4AAE-8A1A-728B6CC8524B}"
5353
EndProject
54+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Commands.Common.Compute.Netcore", "src\Common\Commands.Common.Compute\Commands.Common.Compute.Netcore.csproj", "{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}"
55+
EndProject
5456
Global
5557
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5658
Debug|Any CPU = Debug|Any CPU
@@ -205,18 +207,6 @@ Global
205207
{AF50ACE6-9A6A-4A18-8140-B6C5BDD0EFD6}.Release|x64.Build.0 = Release|Any CPU
206208
{AF50ACE6-9A6A-4A18-8140-B6C5BDD0EFD6}.Release|x86.ActiveCfg = Release|Any CPU
207209
{AF50ACE6-9A6A-4A18-8140-B6C5BDD0EFD6}.Release|x86.Build.0 = Release|Any CPU
208-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
209-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
210-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Debug|x64.ActiveCfg = Debug|Any CPU
211-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Debug|x64.Build.0 = Debug|Any CPU
212-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Debug|x86.ActiveCfg = Debug|Any CPU
213-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Debug|x86.Build.0 = Debug|Any CPU
214-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
215-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Release|Any CPU.Build.0 = Release|Any CPU
216-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Release|x64.ActiveCfg = Release|Any CPU
217-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Release|x64.Build.0 = Release|Any CPU
218-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Release|x86.ActiveCfg = Release|Any CPU
219-
{7B61AB3B-9F62-4B96-BCED-13920B56CD3C}.Release|x86.Build.0 = Release|Any CPU
220210
{40ACDC82-5A87-4D52-83B5-ED21274363A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
221211
{40ACDC82-5A87-4D52-83B5-ED21274363A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
222212
{40ACDC82-5A87-4D52-83B5-ED21274363A5}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -337,6 +327,18 @@ Global
337327
{B0EF35E9-2D7A-4AAE-8A1A-728B6CC8524B}.Release|x64.Build.0 = Release|Any CPU
338328
{B0EF35E9-2D7A-4AAE-8A1A-728B6CC8524B}.Release|x86.ActiveCfg = Release|Any CPU
339329
{B0EF35E9-2D7A-4AAE-8A1A-728B6CC8524B}.Release|x86.Build.0 = Release|Any CPU
330+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
331+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Debug|Any CPU.Build.0 = Debug|Any CPU
332+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Debug|x64.ActiveCfg = Debug|Any CPU
333+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Debug|x64.Build.0 = Debug|Any CPU
334+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Debug|x86.ActiveCfg = Debug|Any CPU
335+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Debug|x86.Build.0 = Debug|Any CPU
336+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Release|Any CPU.ActiveCfg = Release|Any CPU
337+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Release|Any CPU.Build.0 = Release|Any CPU
338+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Release|x64.ActiveCfg = Release|Any CPU
339+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Release|x64.Build.0 = Release|Any CPU
340+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Release|x86.ActiveCfg = Release|Any CPU
341+
{5E5D1F8E-92C8-40EB-AABA-DFD12AFD6D0A}.Release|x86.Build.0 = Release|Any CPU
340342
EndGlobalSection
341343
GlobalSection(SolutionProperties) = preSolution
342344
HideSolutionNode = FALSE
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\xunit.core.2.3.1\build\xunit.core.props" Condition="Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.props')" />
4+
<Import Project="..\..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\packages\xunit.runner.visualstudio.2.3.1\build\net20\xunit.runner.visualstudio.props')" />
5+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
6+
<PropertyGroup>
7+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9+
<ProjectGuid>{8A4E00AA-5F65-4A95-B9B0-FEC06486555E}</ProjectGuid>
10+
<OutputType>Library</OutputType>
11+
<AppDesignerFolder>Properties</AppDesignerFolder>
12+
<RootNamespace>Microsoft.Azure.Commands.Common.Compute.Tests</RootNamespace>
13+
<AssemblyName>Microsoft.Azure.Commands.Common.Compute.Tests</AssemblyName>
14+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
15+
<FileAlignment>512</FileAlignment>
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory">
38+
<HintPath>..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.3\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>
39+
<Private>True</Private>
40+
</Reference>
41+
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
42+
<SpecificVersion>False</SpecificVersion>
43+
<HintPath>..\..\packages\Microsoft.Rest.ClientRuntime.2.3.9\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
44+
<Private>True</Private>
45+
</Reference>
46+
<Reference Include="Microsoft.Rest.ClientRuntime.Azure, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
47+
<SpecificVersion>False</SpecificVersion>
48+
<HintPath>..\..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.10\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath>
49+
<Private>True</Private>
50+
</Reference>
51+
<Reference Include="System" />
52+
<Reference Include="System.Core" />
53+
<Reference Include="System.Net.Http" />
54+
<Reference Include="xunit.abstractions">
55+
<HintPath>..\..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll</HintPath>
56+
<Private>True</Private>
57+
</Reference>
58+
<Reference Include="xunit.assert, Version=2.3.1.3858, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
59+
<SpecificVersion>False</SpecificVersion>
60+
<HintPath>..\..\packages\xunit.assert.2.3.1\lib\netstandard1.1\xunit.assert.dll</HintPath>
61+
<Private>True</Private>
62+
</Reference>
63+
<Reference Include="xunit.core, Version=2.3.1.3858, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
64+
<SpecificVersion>False</SpecificVersion>
65+
<HintPath>..\..\packages\xunit.extensibility.core.2.3.1\lib\netstandard1.1\xunit.core.dll</HintPath>
66+
<Private>True</Private>
67+
</Reference>
68+
<Reference Include="xunit.execution.desktop">
69+
<HintPath>..\..\packages\xunit.extensibility.execution.2.3.1\lib\net452\xunit.execution.desktop.dll</HintPath>
70+
<Private>True</Private>
71+
</Reference>
72+
</ItemGroup>
73+
<ItemGroup>
74+
<Compile Include="CredentialManager.cs" />
75+
<Compile Include="Properties\AssemblyInfo.cs" />
76+
<Compile Include="Version2016-04-preview\ComputeManagementClientShould.cs" />
77+
</ItemGroup>
78+
<ItemGroup>
79+
<ProjectReference Include="..\Commands.Common.Compute\Commands.Common.Compute.csproj">
80+
<Project>{f6d508d1-be2d-475d-aa0f-dfb5c615cc9d}</Project>
81+
<Name>Commands.Common.Compute</Name>
82+
</ProjectReference>
83+
<ProjectReference Include="..\Commands.ScenarioTests.Common\Commands.ScenarioTests.Common.csproj">
84+
<Project>{C1BDA476-A5CC-4394-914D-48B0EC31A710}</Project>
85+
<Name>Commands.ScenarioTests.Common</Name>
86+
</ProjectReference>
87+
</ItemGroup>
88+
<ItemGroup>
89+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
90+
</ItemGroup>
91+
<ItemGroup>
92+
<None Include="packages.config" />
93+
</ItemGroup>
94+
<ItemGroup>
95+
<Analyzer Include="..\..\packages\xunit.analyzers.0.7.0\analyzers\dotnet\cs\xunit.analyzers.dll" />
96+
</ItemGroup>
97+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
98+
<Import Project="..\..\packages\xunit.core.2.3.1\build\xunit.core.targets" Condition="Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.targets')" />
99+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
100+
<PropertyGroup>
101+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
102+
</PropertyGroup>
103+
<Error Condition="!Exists('..\..\packages\xunit.core.2.3.1\build\xunit.core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\xunit.core.2.3.1\build\xunit.core.targets'))" />
104+
</Target>
105+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
106+
Other similar extension points exist, see Microsoft.Common.targets.
107+
<Target Name="BeforeBuild">
108+
</Target>
109+
<Target Name="AfterBuild">
110+
</Target>
111+
-->
112+
</Project>
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
namespace Microsoft.Azure.Commands.Common.Compute.Tests
16+
{
17+
using System;
18+
using System.Collections.Generic;
19+
using System.IO;
20+
using Microsoft.IdentityModel.Clients.ActiveDirectory;
21+
using Microsoft.Rest;
22+
23+
class CredentialManager
24+
{
25+
protected CredentialManager() { }
26+
27+
private const string ServicePrincipalEnvVariableName = "AZURE_SERVICE_PRINCIPAL";
28+
29+
private static readonly string UserId = "UserId".ToLower();
30+
private static readonly string Password = "Password".ToLower();
31+
private static readonly string AadTenant = "AADTenant".ToLower();
32+
private static readonly string Subscription = "SubscriptionId".ToLower();
33+
private const string AuthUrl = "https://login.microsoftonline.com/";
34+
private const string BaseUrl = "https://management.azure.com/";
35+
36+
public string ApplicationId { get; private set; }
37+
public string ApplicationSecret { get; private set; }
38+
public string TenantId { get; private set; }
39+
public string SubscriptionId { get; private set; }
40+
41+
public TokenCredentials TokenCredentials
42+
{
43+
get
44+
{
45+
var clientCredential = new ClientCredential(ApplicationId, ApplicationSecret);
46+
var context = new AuthenticationContext(Path.Combine(AuthUrl, TenantId));
47+
var result = context.AcquireTokenAsync(BaseUrl, clientCredential);
48+
49+
if (result == null) throw new InvalidOperationException("Failed to obtain the token");
50+
51+
return new TokenCredentials(result.Result.AccessToken);
52+
}
53+
}
54+
55+
public static CredentialManager FromServicePrincipalEnvVariable(string envVariableName = ServicePrincipalEnvVariableName)
56+
{
57+
//AZURE_SERVICE_PRINCIPAL = UserId =< UserGuid >; Password =< Password >; AADTenant =< TenantGuid >; SubscriptionId =< SubscriptionId >
58+
var spString = Environment.GetEnvironmentVariable(envVariableName);
59+
60+
if (spString == null) throw new ArgumentNullException($"Failed to get environment variable {envVariableName}");
61+
62+
var sp = new Dictionary<string, string>();
63+
var pairs = spString.Trim().Split(';');
64+
foreach (var pair in pairs)
65+
{
66+
var keyVal = pair.Trim().Split(new[] { '=' }, 2);
67+
if (keyVal.Length < 2) throw new ArgumentException($"Failed to parse {envVariableName}");
68+
sp.Add(keyVal[0].Trim().ToLower(), keyVal[1].Trim());
69+
}
70+
71+
if (!sp.ContainsKey(UserId.ToLower())) throw new ArgumentException($"Failed to find {UserId} in {envVariableName}");
72+
if (!sp.ContainsKey(Password.ToLower())) throw new ArgumentException($"Failed to find {Password} in {envVariableName}");
73+
if (!sp.ContainsKey(AadTenant.ToLower())) throw new ArgumentException($"Failed to find {AadTenant} in {envVariableName}");
74+
if (!sp.ContainsKey(Subscription.ToLower())) throw new ArgumentException($"Failed to find {Subscription} in {envVariableName}");
75+
76+
var credentialManager = new CredentialManager
77+
{
78+
ApplicationId = sp[UserId],
79+
ApplicationSecret = sp[Password],
80+
TenantId = sp[AadTenant],
81+
SubscriptionId = sp[Subscription]
82+
};
83+
84+
return credentialManager;
85+
}
86+
}
87+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Commands.Common.Compute.Tests")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("HP Inc.")]
12+
[assembly: AssemblyProduct("Commands.Common.Compute.Tests")]
13+
[assembly: AssemblyCopyright("Copyright © HP Inc. 2018")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("8a4e00aa-5f65-4a95-b9b0-fec06486555e")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
16+
17+
namespace Microsoft.Azure.Commands.Common.Compute.Tests
18+
{
19+
using Compute.Version2016_04_preview;
20+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
21+
using Xunit;
22+
using System.Linq;
23+
24+
namespace Version2016_04_preview
25+
{
26+
public class ComputeManagementClientShould
27+
{
28+
private IComputeManagementClient Client {get;}
29+
30+
public ComputeManagementClientShould()
31+
{
32+
var credManager = CredentialManager.FromServicePrincipalEnvVariable();
33+
Client = new ComputeManagementClient(credManager.TokenCredentials)
34+
{
35+
SubscriptionId = credManager.SubscriptionId
36+
};
37+
}
38+
39+
[Fact]
40+
[Trait(Category.RunType, Category.LiveOnly)]
41+
public void ListVirtualMachine()
42+
{
43+
var vmClient = Client.VirtualMachines;
44+
var vms = vmClient.ListAll().ToList();
45+
Assert.True(vms.Count > 0);
46+
}
47+
48+
[Fact]
49+
[Trait(Category.RunType, Category.LiveOnly)]
50+
public void ListVirtualMachineSizes()
51+
{
52+
var vmSizeClient = Client.VirtualMachineSizes;
53+
var vmSizes = vmSizeClient.List("WestUs").ToList();
54+
Assert.True(vmSizes.Count > 0);
55+
}
56+
57+
[Fact]
58+
[Trait(Category.RunType, Category.LiveOnly)]
59+
public void ListVirtualMachineImagePublishers()
60+
{
61+
var vmImagesClient = Client.VirtualMachineImages;
62+
var vmImagePublisers = vmImagesClient.ListPublishers("WestUs").ToList();
63+
Assert.True(vmImagePublisers.Count > 0);
64+
}
65+
66+
[Fact]
67+
[Trait(Category.RunType, Category.LiveOnly)]
68+
public void ListDisks()
69+
{
70+
var disksClient = Client.Disks;
71+
var disks = disksClient.List().ToList();
72+
Assert.True(disks.Count > 0);
73+
}
74+
}
75+
}
76+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.3" targetFramework="net452" />
4+
<package id="xunit" version="2.3.1" targetFramework="net452" />
5+
<package id="xunit.abstractions" version="2.0.1" targetFramework="net452" />
6+
<package id="xunit.analyzers" version="0.7.0" targetFramework="net452" />
7+
<package id="xunit.assert" version="2.3.1" targetFramework="net452" />
8+
<package id="xunit.core" version="2.3.1" targetFramework="net452" />
9+
<package id="xunit.extensibility.core" version="2.3.1" targetFramework="net452" />
10+
<package id="xunit.extensibility.execution" version="2.3.1" targetFramework="net452" />
11+
</packages>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp2.0</TargetFramework>
5+
<AssemblyName>Microsoft.Azure.Commands.Common.Compute</AssemblyName>
6+
<RootNamespace>Microsoft.Azure.Commands.Common.Compute</RootNamespace>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<ProjectReference Include="..\..\ResourceManager\Common\Commands.ResourceManager.Common\Common.ResourceManager.Netcore.csproj" />
12+
</ItemGroup>
13+
14+
</Project>

0 commit comments

Comments
 (0)