Skip to content

Commit

Permalink
Never include Roslyn files, even on local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jul 9, 2024
1 parent 92f466a commit 4487028
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion samples/dotnet/SponsorLink.targets
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ partial class SponsorLink
<Target Name="PackCopyLocalLockFileAssemblies" Condition="'$(MergeAnalyzerAssemblies)' != 'true'"
BeforeTargets="GetPackageContents" DependsOnTargets="ReferenceCopyLocalPathsOutputGroup">
<ItemGroup>
<PackageFile Include="@(ReferenceCopyLocalPathsOutputGroupOutput)" PackFolder="$(PackFolder)" />
<PackageFile Include="@(ReferenceCopyLocalPathsOutputGroupOutput)" Condition="
!$([MSBuild]::ValueOrDefault('%(FileName)', '').StartsWith('Microsoft.CodeAnalysis', StringComparison.OrdinalIgnoreCase)) And
!$([MSBuild]::ValueOrDefault('%(FileName)', '').StartsWith('Microsoft.CSharp', StringComparison.OrdinalIgnoreCase))"
PackFolder="$(PackFolder)" />
</ItemGroup>
</Target>

Expand Down

0 comments on commit 4487028

Please sign in to comment.