Skip to content

Commit 662a3ff

Browse files
authored
Add psm1 generation for hybrid modules in debug build, #15483 (#15638)
1 parent efb1b14 commit 662a3ff

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/Aks/Aks/Aks.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66

77
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
8+
<Import Project="$(MSBuildThisFileDirectory)..\..\psm1.props" />
89

910
<PropertyGroup>
1011
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)</RootNamespace>

src/ResourceGraph/ResourceGraph/ResourceGraph.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66

77
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
8+
<Import Project="$(MSBuildThisFileDirectory)..\..\psm1.props" />
89

910
<PropertyGroup>
1011
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)</RootNamespace>

src/Websites/Websites/Websites.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
</PropertyGroup>
66

77
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
8+
<Import Project="$(MSBuildThisFileDirectory)..\..\psm1.props" />
89

910
<PropertyGroup>
1011
<RootNamespace>$(LegacyAssemblyPrefix)WebApps</RootNamespace>

src/psm1.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<Target Name="AddAccountsPsm1Dependency" AfterTargets="Build" Condition="'$(Configuration)' == 'Debug'">
3+
<Exec Command="pwsh -NonInteractive -NoLogo -NoProfile -Command &quot;. '$(OutDir)../../../tools/AddModulePsm1Dependency.ps1' -ModuleFolder '$(OutDir)' -IgnorePwshVersion &quot;" />
4+
</Target>
5+
</Project>

0 commit comments

Comments
 (0)