Skip to content

Commit 6f0756a

Browse files
committed
Disable test solution creation for .NET 11
1 parent 9b98fd4 commit 6f0756a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Microsoft.DotNet.Docker.Tests/TestSolution.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ public TestSolution(ProductImageData imageData, string sampleName, DockerHelper
4545

4646
private string CreateTestSolutionWithSdkImage(string solutionDir, string appType)
4747
{
48+
if (_imageData.Version.Major == 11)
49+
{
50+
// Project templates are not yet updated for .NET 11.
51+
// Re-enable when https://github.com/dotnet/sdk/issues/50295 is resolved.
52+
return "";
53+
}
54+
4855
Directory.CreateDirectory(solutionDir);
4956
string appProjectContainerName = _imageData.GetIdentifier($"create-{appType}");
5057
string testProjectContainerName = _imageData.GetIdentifier("create-test");

0 commit comments

Comments
 (0)