Skip to content

Visual Studio continually rebuilds container #635

@afscrome

Description

@afscrome

If I have <EnableSdkContainerDebugging>True</EnableSdkContainerDebugging> enabled in my project, then Visual Studio continually rebuilds my project's container, even when there are no changes to the project and I'm not actually running my project . This is adding ~20-30 seconds onto every time Visual studio builds the project, adding a lot of lag into the inner loop.

e.g. I'm working on an Aspire App Host which references the project that is marked as EnableSdkContainerDebugging. Even though I'm not changing the containerized project, every time I build the app host. Similar happens if I'm running unit tests in a test project that itself references my containerized project.

I'd expect Visual Studio to only build the image if I try to run/debug the image, and for the build process to be aware of Incremental builds, and only build if something has actually changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions