Skip to content

Commit

Permalink
Merge branch 'preview' into psm1-removal
Browse files Browse the repository at this point in the history
  • Loading branch information
MiYanni committed Oct 24, 2018
2 parents c221542 + 2defdff commit 83a96fc
Show file tree
Hide file tree
Showing 47 changed files with 88,462 additions and 122 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,3 @@ launchSettings.json
/SolutionMappings.json
/TestMappings.json
/tools/Modules/tmp
/tools/Az/Az.psm1
24 changes: 15 additions & 9 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,21 @@
Condition="'$(SkipHelp)' == 'false'"
ContinueOnError="false"/>

<!-- Cleanup extraneous files. -->
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />
<!-- Copying modules to be signed -->
<Copy SourceFiles="$(LibraryToolsFolder)\Az\Az.psd1"
DestinationFolder="$(PackageDirectory)\$(Configuration)"
ContinueOnError="false" />
<Copy SourceFiles="$(LibraryToolsFolder)\Az\Az.psm1"
DestinationFolder="$(PackageDirectory)\$(Configuration)"
ContinueOnError="false" />

<CallTarget Targets="CodeSignBinaries" Condition=" '$(CodeSign)' == 'true' " />

<Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psd1" DestinationFolder="$(LibraryToolsFolder)\Az" />
<Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psm1" DestinationFolder="$(LibraryToolsFolder)\Az" />

<!-- Cleanup extraneous files. -->
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(LibraryToolsFolder)\CleanupBuild.ps1 -BuildConfig $(Configuration) &quot;" />
</Target>


Expand All @@ -426,9 +437,6 @@
<Output TaskParameter="Path" PropertyName="WindowsSdkPath"/>
</GetFrameworkSdkPath>

<Copy SourceFiles="$(LibraryRoot)tools\Az\Az.psd1"
DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition= " '$(Scope)' == 'Netcore' "/>

<!-- Azure -->
<ItemGroup Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest' or '$(Scope)' == 'Netcore'">
<DelaySignedAssembliesToSign Include="$(PackageDirectory)\$(Configuration)\**\Microsoft*Azure*Commands*.dll" Exclude="$(PackageDirectory)\$(Configuration)\**\Microsoft*Azure*Commands*Common*.dll" />
Expand Down Expand Up @@ -478,6 +486,8 @@
Condition="'$(Scope)' != 'Netcore'"/>

<!-- Copying shortcut to be signed -->
<Copy SourceFiles="$(LibraryRoot)tools\Az\Az.psm1"
DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Netcore'" />
<Copy SourceFiles="$(LibraryRoot)tools\AzureRM\AzureRM.psm1"
DestinationFolder="$(PackageDirectory)\$(Configuration)" Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Latest'" />

Expand Down Expand Up @@ -515,10 +525,6 @@
<Exec Command="$(PowerShellCommandPrefix) &quot;. $(LibraryToolsFolder)\CheckSignature.ps1 -CustomPath $(StackPackageFolder)\$(Configuration) &quot;"
Condition="'$(Scope)' == 'All' or '$(Scope)' == 'Stack'"
ContinueOnError="ErrorAndContinue" />

<!-- Copying signed shortcut back -->
<Copy SourceFiles="$(PackageDirectory)\$(Configuration)\Az.psd1"
DestinationFolder="$(LibraryRoot)tools\Az" Condition= " '$(Scope)' == 'Latest' "/>
</Target>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'net472'">
<PackageReference Include="Microsoft.Azure.Management.PolicyInsights" Version="1.0.0" />
<PackageReference Include="Microsoft.Azure.Management.PolicyInsights" Version="2.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Azure.Management.PolicyInsights, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="Microsoft.Azure.Management.PolicyInsights, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.PolicyInsights.1.0.0\lib\net452\Microsoft.Azure.Management.PolicyInsights.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.PolicyInsights.2.0.0\lib\net452\Microsoft.Azure.Management.PolicyInsights.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ScenarioTests\RemediationTests.cs" />
<Compile Include="ScenarioTests\QueryOptionTests.cs" />
<Compile Include="ScenarioTests\PolicyStateTests.cs" />
<Compile Include="ScenarioTests\PolicyStateSummaryTests.cs" />
Expand All @@ -69,6 +70,9 @@
<None Include="ScenarioTests\Common.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="ScenarioTests\RemediationTests.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="ScenarioTests\PolicyStateSummaryTests.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -198,6 +202,9 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.PolicyInsights.Test.ScenarioTests.QueryOptionTests\QueryResultsWithTop.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.PolicyInsights.Test.ScenarioTests.RemediationTests\*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
Expand Down
Loading

0 comments on commit 83a96fc

Please sign in to comment.