Initial work on nuget packages.

This commit is contained in:
Chandler Cox
2025-06-11 18:17:19 -05:00
parent eee4e55cf0
commit 28eaac37dc
8 changed files with 113 additions and 0 deletions

View File

@@ -134,6 +134,20 @@ namespace Flax.Build.Projects.VisualStudio
}
// References
// Nuget
if (project.CSharp.NugetPackageReferences.Any())
{
csProjectFileContent.AppendLine(" <ItemGroup>");
foreach (var reference in project.CSharp.NugetPackageReferences)
{
csProjectFileContent.AppendLine(string.Format(" <PackageReference Include=\"{0}\" Version=\"{1}\" />", reference.Name, reference.Version));
}
csProjectFileContent.AppendLine(" </ItemGroup>");
csProjectFileContent.AppendLine("");
}
csProjectFileContent.AppendLine(" <ItemGroup>");