Skip to content

Optimize SourceLink to only run on Release builds to prevent increment builds from breaking on new commits #301

@TheAngryByrd

Description

@TheAngryByrd

Is your feature request related to a problem? Please describe.

Update any places that are using SourceLink to only be run during Release Configurations

    <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
        <!-- Disable SourceLink for Debug builds since it breaks incremental builds. See
        https://github.com/dotnet/sdk/issues/37371#issuecomment-2561620166 -->
        <EnableSourceLink>false</EnableSourceLink>
        <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
        <EmbedUntrackedSources>true</EmbedUntrackedSources>
    </PropertyGroup>

For reference:
https://github.com/TheAngryByrd/IcedTasks/blob/b94f98007e8df40ae8da4f48df08a654ff4a1ca0/Directory.Build.props#L31-L37

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions