Minor fixes for dotnet7

This commit is contained in:
Wojciech Figat
2023-01-06 11:31:08 +01:00
parent a6050e6f27
commit 8896ebadda
2 changed files with 4 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ namespace Flax.Build
Modules.Add("Main");
}
#if !USE_NETCORE
// Mono on Linux is using dynamic linking and needs additional link files
if (buildOptions.Platform.Target == TargetPlatform.Linux && Platform.BuildTargetPlatform == TargetPlatform.Linux && !IsPreBuilt)
{
@@ -121,6 +122,7 @@ namespace Flax.Build
task.CommandPath = "ln";
task.CommandArguments = "-s -f libmonosgen-2.0.so libmonosgen-2.0.so.1.0.0";
}
#endif
}
private bool UseSeparateMainExecutable(BuildOptions buildOptions)

View File

@@ -232,8 +232,8 @@ namespace Flax.Build.NativeCpp
},
SystemAnalyzers = new HashSet<string>
{
@"Microsoft.Interop.LibraryImportGenerator",
@"Microsoft.Interop.SourceGeneration",
"Microsoft.Interop.LibraryImportGenerator",
"Microsoft.Interop.SourceGeneration",
},
FileReferences = new HashSet<string>(),
};