diff --git a/new-cli/Directory.Build.props b/new-cli/Directory.Build.props
index 518998d6b8..ea7d0c9db2 100644
--- a/new-cli/Directory.Build.props
+++ b/new-cli/Directory.Build.props
@@ -14,6 +14,17 @@
true
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
diff --git a/new-cli/Directory.Packages.props b/new-cli/Directory.Packages.props
index c87a7b71c2..4fa6197733 100644
--- a/new-cli/Directory.Packages.props
+++ b/new-cli/Directory.Packages.props
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/new-cli/GitVersion.Cli.Generator/Content.cs b/new-cli/GitVersion.Cli.Generator/Content.cs
index 31bdc2ae73..f3a2484a68 100644
--- a/new-cli/GitVersion.Cli.Generator/Content.cs
+++ b/new-cli/GitVersion.Cli.Generator/Content.cs
@@ -15,7 +15,6 @@ public static class Content
#nullable enable
""";
-
/*language=cs*/
public const string CommandImplContent = $$$"""
{{{GeneratedHeader}}}
diff --git a/new-cli/GitVersion.Core.Libgit2Sharp/Git/GitRepository.extended.cs b/new-cli/GitVersion.Core.Libgit2Sharp/Git/GitRepository.extended.cs
index d54427f263..c7286ff0fb 100644
--- a/new-cli/GitVersion.Core.Libgit2Sharp/Git/GitRepository.extended.cs
+++ b/new-cli/GitVersion.Core.Libgit2Sharp/Git/GitRepository.extended.cs
@@ -1,6 +1,3 @@
namespace GitVersion.Git;
-internal sealed partial class GitRepository : IGitRepository
-{
-
-}
+internal sealed partial class GitRepository : IGitRepository;
diff --git a/new-cli/GitVersion.Core.Libgit2Sharp/LockedFileException.cs b/new-cli/GitVersion.Core.Libgit2Sharp/LockedFileException.cs
index ac742982b0..3cef30a364 100644
--- a/new-cli/GitVersion.Core.Libgit2Sharp/LockedFileException.cs
+++ b/new-cli/GitVersion.Core.Libgit2Sharp/LockedFileException.cs
@@ -5,4 +5,16 @@ public class LockedFileException : Exception
public LockedFileException(Exception inner) : base(inner.Message, inner)
{
}
+
+ public LockedFileException()
+ {
+ }
+
+ public LockedFileException(string? message) : base(message)
+ {
+ }
+
+ public LockedFileException(string? message, Exception? innerException) : base(message, innerException)
+ {
+ }
}
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index 27f7f3b80a..acec33411c 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -12,8 +12,8 @@
-
-
+
+
@@ -30,7 +30,7 @@
-
+