-
Notifications
You must be signed in to change notification settings - Fork 4k
Add Common.Dependencies project #3734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@azuresdkci test this please |
5646803
to
af2ccf9
Compare
// ---------------------------------------------------------------------------------- | ||
|
||
|
||
namespace Microsoft.Azure.Graph.RBAC.ActiveDirectory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make the api version part of the namespace - this will make it easier to include a new version
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Commands.Common.GraphRBAC")] | ||
[assembly: AssemblyDescription("")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should fill these out
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
|
||
namespace Microsoft.Azure.Management.Internal.Network |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, we should add the api-version to the namsepace
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Common.Dependencies")] | ||
[assembly: AssemblyDescription("")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should fill out the details
@@ -1,18 +1,3 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<packages> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove files with no depednencies.
@@ -12,7 +12,8 @@ | |||
// limitations under the License. | |||
// ---------------------------------------------------------------------------------- | |||
|
|||
using Microsoft.Azure.Commands.Network; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra space
…t.targets file, update BreakingChangeIssues.csv
a906a69
to
5c6864f
Compare
…nto common-dependencies
…nto common-dependencies # Conflicts: # src/ResourceManager/Network/Commands.Network/Commands.Network.csproj # src/ResourceManager/Network/Commands.Network/packages.config
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("Commands.Common.Authorization")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make these match the values in other common assemblies (particularly the copyright, company sruff). Liek this: https://github.com/Azure/azure-powershell/blob/preview/src/Common/Commands.Common.Authentication.Abstractions/Properties/AssemblyInfo.cs
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.3" targetFramework="net452" /> | ||
<package id="Microsoft.Rest.ClientRuntime" version="2.3.5" targetFramework="net452" /> | ||
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.5" targetFramework="net452" /> | ||
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.2.9-preview" targetFramework="net452" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not need this
@@ -0,0 +1,8 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<packages> | |||
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.3" targetFramework="net452" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove dependencies on ADAL and Azure.Authentication packages
@@ -103,7 +104,7 @@ | |||
<XUnitTests Include=".\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll"/> | |||
<XUnitTests Include=".\src\ResourceManager\Scheduler\Commands.Scheduler.Test\bin\Debug\Microsoft.Azure.Commands.Scheduler.Test.dll"/> | |||
<!-- <XUnitTests Include=".\src\ResourceManager\ServerManagement\Commands.ServerManagement.Test\bin\Debug\Microsoft.Azure.Commands.ServerManagement.Test.dll"/> --> | |||
<!-- <XUnitTests Include=".\src\ResourceManager\ServiceFabric\Commands.ServiceFabric.Test\bin\Debug\Microsoft.Azure.Commands.ServiceFabric.Test.dll"/> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's leave this around so the service team can uncomment it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markcowl I removed this line because ServiceFabric already defined their test dll above (below KeyVault). I will move the uncommented line below ServiceBus
setup/azurecmdfiles.wxi
Outdated
<Component Id="cmpD85C4D043B5D7961FFDBBB38A14A782E" Guid="*"> | ||
<File Id="filBFB9D3DDC47B17AEBD9413E4DDDA77CC" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Azure.AnalysisServices\Microsoft.IdentityModel.Clients.ActiveDirectory.dll" /> | ||
</Component> | ||
<Component Id="cmpEAF41C675624E5CC949D2BC960518696" Guid="*"> | ||
<File Id="fil42FA267C2555527DAB21C3F75040CEA5" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Azure.AnalysisServices\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll" /> | ||
</Component> | ||
<Component Id="cmpDEED295F765F387FFB9382664C481366" Guid="*"> | ||
<File Id="filFF02AF539455FC759869BFE97EEE1BE1" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\Azure.AnalysisServices\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure to regen after the suggested changes
tools/Common.Dependencies.targets
Outdated
<HintPath>$(LibraryNugetPackageFolder)\Microsoft.Rest.ClientRuntime.Azure.3.3.5\lib\net45\Microsoft.Rest.ClientRuntime.Azure.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Rest.ClientRuntime.Azure.Authentication"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove azure.authentication, and two IdentityModel libraries - these should eb only in the authentication common libraires.
tools/Common.Dependencies.targets
Outdated
</Reference> | ||
<Reference Include="System.Net.Http.WebRequest" /> | ||
<Reference Include="System.Runtime.Serialization" /> | ||
<Reference Include="System.Spatial"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.Spatial is part of the Microsoft.WindowsAzure.Storage dependency chain. We cna move this out of here
…nto common-dependencies # Conflicts: # src/ResourceManager/AnalysisServices/Commands.AnalysisServices/Commands.AnalysisServices.csproj # src/ResourceManager/AnalysisServices/Commands.AnalysisServices/packages.config
NuGet.config
Outdated
<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> | ||
<add key="powershell-core" value="https://powershell.myget.org/F/powershell-core/api/v3/index.json" /> | ||
</packageSources> | ||
<disabledPackageSources> | ||
<add key="local-feed" value="true" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep in local feed if possible
Description
Fix for issue #3435 and #3437
Add
Common.Dependencies
project, which will contain references to common libraries used throughout the modules.Remove dependencies on cmdlet projects for ARM projects.
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines