Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<!-- Add packages, then highlight all lines and go to Edit > Advanced > Sort Lines -->
<ItemGroup>
<!-- Packages for the main MSAL code -->
<PackageVersion Include="Microsoft.Azure.Security.KeyGuardAttestation" Version="1.1.5" />
<PackageVersion Include="Microsoft.CodeAnalysis.RulesetToEditorconfigConverter" Version="3.3.3" PrivateAssets="All" />
<PackageVersion Include="Microsoft.CSharp" Version="4.5.0" />
<PackageVersion Include="Microsoft.Identity.Client.NativeInterop" Version="$(MSALRuntimeNativeInteropVersion)" IncludeAssets="all" />
Expand Down
20 changes: 17 additions & 3 deletions build/template-build-and-prep-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ steps:
Contents: '**/bin/**/**'
TargetFolder: '$(Build.SourcesDirectory)/WAM'

- task: CopyFiles@2
displayName: 'Copy Managed Identity DevApp Dlls'
inputs:
SourceFolder: 'tests\devapps\Managed Identity apps\ManagedIdentityAppVM'
Contents: '**\bin\**\*'
TargetFolder: '$(Build.SourcesDirectory)/ManagedIdentityAppVM'

- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact: drop'
inputs:
Expand Down Expand Up @@ -112,6 +119,16 @@ steps:
$errors += "Failed to find Linux runtime files in : " + $SearchInFolder + $app + "`n";
}

# Managed Identity app runtime DLL check
Comment thread
bgavrilMS marked this conversation as resolved.
$managedIdentityFolder = Join-Path $(Build.SourcesDirectory) 'ManagedIdentityAppVM'
$managedIdentityDll = Join-Path $managedIdentityFolder 'bin\Release\net8.0\runtimes\win-x64\native\AttestationClientLib.dll'
Comment thread
gladjohn marked this conversation as resolved.

Write-Host "Checking: $managedIdentityDll"
if (-not (Test-Path -Path $managedIdentityDll -PathType Leaf))
{
$errors += "Failed to find AttestationClientLib.dll at: $managedIdentityDll`n"
}

#exit if there are errors
IF (![string]::IsNullOrWhitespace($errors))
{
Expand All @@ -123,6 +140,3 @@ steps:
{
Write-Host "File check complete. All msalruntime dlls are present."
}



Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<ProjectReference Include="..\Microsoft.Identity.Client\Microsoft.Identity.Client.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Security.KeyGuardAttestation" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == '$(TargetFrameworkNetStandard)'">
<PackageReference Include="System.Security.Cryptography.Cng" />
</ItemGroup>
Expand All @@ -46,4 +50,4 @@
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Unshipped.txt" />
</ItemGroup>

</Project>
</Project>