Skip to content

Commit ff51fff

Browse files
committed
Stop removing files meant for the package
1 parent a323610 commit ff51fff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Nerdbank.GitVersioning.NuGet/Nerdbank.GitVersioning.NuGet.nuproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
<Target Name="SkipFrameworkAssemblies" AfterTargets="GetPackageFiles">
104104
<ItemGroup>
105105
<PackageFile Remove="@(PackageFile)" Condition="
106+
$([System.String]::new('%(TargetPath)').StartsWith('build\')) and
106107
!$([System.String]::new('%(TargetPath)').StartsWith('build\lib\')) and
107108
'%(FileName)' != 'NerdBank.GitVersioning' and
108109
'%(FileName)' != 'NerdBank.GitVersioning.Tasks' and
@@ -111,7 +112,8 @@
111112
'%(FileName)' != 'Newtonsoft.Json' and
112113
'%(FileName)' != 'PInvoke.Kernel32' and
113114
'%(FileName)' != 'PInvoke.MsCorEE' and
114-
'%(FileName)' != 'PInvoke.Windows.Core'
115+
'%(FileName)' != 'PInvoke.Windows.Core' and
116+
'%(Extension)' == '.dll'
115117
" />
116118
</ItemGroup>
117119
</Target>

0 commit comments

Comments
 (0)