Template build program targets net10.0

This commit is contained in:
Damian Hickey 2025-12-12 10:47:24 +01:00
parent 0c65a98630
commit b7cf736a37
2 changed files with 4 additions and 4 deletions

View file

@ -82,10 +82,10 @@ void CopyFile(DirectoryInfo directoryInfo, FileInfo fileInfo)
bool TryFindFile(string fileName, [NotNullWhen(true)] out FileInfo? found)
{
var executingAssemblyLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
?? throw new InvalidOperationException("Failed to find executing assembly location");
var currentDir = new DirectoryInfo(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
?? throw new InvalidOperationException("Failed to find directory for current assembly"));
var currentDir = new DirectoryInfo(executingAssemblyLocation);
while (currentDir != null && currentDir.Exists)
{

View file

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>