Skip to content

Comments

Generate and deploy reference assembly for Microsoft.PowerShell.Commands.Utility.dll#8716

Merged
TravisEz13 merged 3 commits intoPowerShell:masterfrom
daxian-dbw:utilityRef
Jan 23, 2019
Merged

Generate and deploy reference assembly for Microsoft.PowerShell.Commands.Utility.dll#8716
TravisEz13 merged 3 commits intoPowerShell:masterfrom
daxian-dbw:utilityRef

Conversation

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Jan 23, 2019

PR Summary

Update New-ReferenceAssembly and New-UnifiedNugetPackage to generate reference assembly for Microsoft.PowerShell.Commands.Utility.dll and properly deploy it for Microsoft.PowerShell.Commands.Utility NuGet package and Microsoft.PowerShell.SDK NuGet package.

An incremental step to fix, eventually, #8121

PR Context

PR Checklist

@daxian-dbw daxian-dbw added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Jan 23, 2019

$projectFolder = New-Item -Path "$genAPIFolder/$assemblyName" -ItemType Directory -Force
$generatedSource = Join-Path $projectFolder "$assemblyName.cs"
$filteredSource = Join-Path $projectFolder "${assembly}_Filtered.cs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"${assemblyName}_Filtered.cs" ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! The filteredSource file is a temporary file and is renamed to $generatedSource after use, that's why I didn't catch it when verifying the changes.

<LangVersion>Latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Management.Infrastructure" Version="1.0.0-alpha08" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@adityapatwardhan
Copy link
Member

@TravisEz13 @PaulHigin Please have another look.

@TravisEz13 TravisEz13 dismissed PaulHigin’s stale review January 23, 2019 19:41

changes are done

@TravisEz13 TravisEz13 merged commit 86516ad into PowerShell:master Jan 23, 2019
@daxian-dbw daxian-dbw deleted the utilityRef branch January 23, 2019 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants