Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableSdkContainerDebugging causes build failure if ContainerImageTags is set #564

Open
Cjewett opened this issue Apr 26, 2024 · 2 comments

Comments

@Cjewett
Copy link

Cjewett commented Apr 26, 2024

When setting EnableSdkContainerDebugging to true it breaks our compilation because we have ContainerImageTags set. The error is Both ContainerImageTag and ContainerImageTags were provided, but only one or the other is allowed. If I remove EnableSdkContainerDebugging the error goes away, but then the launchProfile for SdkContainer no longer works.

<PropertyGroup>
  <EnableSdkContainerSupport>true</EnableSdkContainerSupport>
  <EnableSdkContainerImage>true</EnableSdkContainerImage>
  <ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:8.0.0-jammy</ContainerBaseImage>
  <ContainerImageTags>latest;$(Version)</ContainerImageTags>
</PropertyGroup>

Using SDK 8.0.204

@baronfel
Copy link
Member

baronfel commented Oct 9, 2024

@Cjewett this is with the VS/VSCode tooling I expect? If so then ContainerImageTags may need to have a Condition added if/when the container debugging is enabled :-/

@Cjewett
Copy link
Author

Cjewett commented Oct 9, 2024

@baronfel Yeah, this is with Visual Studio. I'll try to circle back this weekend to see if wrapping things with conditions will offer a temp solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants