diff --git a/build/Build.cs b/build/Build.cs
index 5533812b..5a3d22db 100644
--- a/build/Build.cs
+++ b/build/Build.cs
@@ -34,9 +34,6 @@ class Build : NukeBuild
[Solution] readonly Solution Solution;
- Project MainProject =>
- Solution.AllProjects.First(p => p.Name == "Zitadel" && p.SolutionFolder.Name == "src");
-
AbsolutePath SourceDirectory => RootDirectory / "src";
AbsolutePath TestsDirectory => RootDirectory / "tests";
AbsolutePath ArtifactsDirectory => RootDirectory / "artifacts";
@@ -84,7 +81,7 @@ class Build : NukeBuild
.SetVersion(Version)
.SetPackageReleaseNotes(PackageReleaseNotes)
.SetOutputDirectory(ArtifactsDirectory)
- .SetProject(MainProject)));
+ .SetProject(Solution)));
Target Publish => _ => _
.Requires(
diff --git a/tests/Zitadel.Api.Access.Dev/Zitadel.Api.Access.Dev.csproj b/tests/Zitadel.Api.Access.Dev/Zitadel.Api.Access.Dev.csproj
index bd3d7a16..3cc3720f 100644
--- a/tests/Zitadel.Api.Access.Dev/Zitadel.Api.Access.Dev.csproj
+++ b/tests/Zitadel.Api.Access.Dev/Zitadel.Api.Access.Dev.csproj
@@ -3,6 +3,7 @@
Exe
net5.0
+ false