Skip to content

Some MonoTargetsTasks project references are not removed during source build #69460

@lbussell

Description

@lbussell

We are seeing a new prebuilt package reported in source-build, Microsoft.DotNet.CilStrip.Sources.7.0.0-beta.22214.1.

It seems like AssemblyStripper.csproj is being picked up by the **/*.csproj pattern in tasks.proj and it is referencing the prebuilt:

<ItemGroup>
<ProjectReference Include="$(MSBuildThisFileDirectory)**\*.csproj" />
<!-- These projects do not need to be built during source-build. -->
<!-- For example, they may take dependencies on pre-built packages that aren't build-from-source. e.g. 'Microsoft.DotNet.CilStrip.Sources' -->
<ProjectReference Remove="MonoTargetsTasks\MonoTargetsTasks.csproj"
Condition="'$(DotNetBuildFromSource)' == 'true'" />
</ItemGroup>

This target should instead ignore all .csproj files under MonoTargetsTasks/.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions