Skip to content

Commit b0bde41

Browse files
dkattanCopilot
andcommitted
fix(packaging): include build assets
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ec34d91 commit b0bde41

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project>
2+
<PropertyGroup>
3+
<PSESBundledModulePath Condition="'$(PSESBundledModulePath)' == ''">PSESBundledModules</PSESBundledModulePath>
4+
<PSScriptAnalyzerSourceVersion Condition="'$(PSScriptAnalyzerSourceVersion)' == '' and Exists('$(MSBuildThisFileDirectory)..\..\..\Engine\Engine.csproj')">$([System.Text.RegularExpressions.Regex]::Match($([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\..\..\Engine\Engine.csproj')), '&lt;VersionPrefix&gt;([^&lt;]+)&lt;/VersionPrefix&gt;').Groups[1].Value)</PSScriptAnalyzerSourceVersion>
5+
</PropertyGroup>
6+
</Project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<Project>
2+
<PropertyGroup>
3+
<_PSSAImportedRoot Condition="Exists('$(MSBuildThisFileDirectory)..\PSScriptAnalyzer\PSScriptAnalyzer.psd1')">$([MSBuild]::EnsureTrailingSlash('$(MSBuildThisFileDirectory)..\PSScriptAnalyzer'))</_PSSAImportedRoot>
4+
<_PSSAImportedRoot Condition="'$(_PSSAImportedRoot)' == '' and '$(PSScriptAnalyzerSourceVersion)' != '' and Exists('$(MSBuildThisFileDirectory)..\..\..\out\PSScriptAnalyzer\$(PSScriptAnalyzerSourceVersion)\PSScriptAnalyzer.psd1')">$([MSBuild]::EnsureTrailingSlash('$(MSBuildThisFileDirectory)..\..\..\out\PSScriptAnalyzer\$(PSScriptAnalyzerSourceVersion)'))</_PSSAImportedRoot>
5+
</PropertyGroup>
6+
7+
<ItemGroup Condition="'$(_PSSAImportedRoot)' != ''">
8+
<Reference Include="Microsoft.Windows.PowerShell.ScriptAnalyzer" Condition="Exists('$(_PSSAImportedRoot)PSv7\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll')">
9+
<HintPath>$(_PSSAImportedRoot)PSv7\Microsoft.Windows.PowerShell.ScriptAnalyzer.dll</HintPath>
10+
<Private>false</Private>
11+
</Reference>
12+
<Reference Include="Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules" Condition="Exists('$(_PSSAImportedRoot)PSv7\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll')">
13+
<HintPath>$(_PSSAImportedRoot)PSv7\Microsoft.Windows.PowerShell.ScriptAnalyzer.BuiltinRules.dll</HintPath>
14+
<Private>false</Private>
15+
</Reference>
16+
<Reference Include="Microsoft.PowerShell.CrossCompatibility" Condition="Exists('$(_PSSAImportedRoot)PSv7\Microsoft.PowerShell.CrossCompatibility.dll')">
17+
<HintPath>$(_PSSAImportedRoot)PSv7\Microsoft.PowerShell.CrossCompatibility.dll</HintPath>
18+
<Private>false</Private>
19+
</Reference>
20+
21+
<Content Include="$(_PSSAImportedRoot)**\*"
22+
TargetPath="$(PSESBundledModulePath)\PSScriptAnalyzer\%(RecursiveDir)%(Filename)%(Extension)"
23+
CopyToOutputDirectory="PreserveNewest"
24+
CopyToPublishDirectory="PreserveNewest" />
25+
26+
<Content Include="$(_PSSAImportedRoot)PSv7\*.dll"
27+
TargetPath="%(Filename)%(Extension)"
28+
CopyToOutputDirectory="PreserveNewest"
29+
CopyToPublishDirectory="PreserveNewest" />
30+
</ItemGroup>
31+
</Project>

0 commit comments

Comments
 (0)