Add 'forceFrameworkVersion' parameter to Project node which overrides

the overrides passed down by the command line or the Solution node.
This specifies that this particular Project requires the given framework.
This commit is contained in:
Robert Adams
2022-04-06 10:54:56 -04:00
parent fa6049f32d
commit 6d21e45ce1

View File

@@ -616,6 +616,7 @@ namespace Prebuild.Core.Nodes
if (m_useFramework)
m_Framework = (FrameworkVersion)Helper.EnumAttributeValue(node, "frameworkVersion", typeof(FrameworkVersion), m_Framework);
m_Framework = (FrameworkVersion)Helper.EnumAttributeValue(node, "forceFrameworkVersion", typeof(FrameworkVersion), m_Framework);
m_StartupObject = Helper.AttributeValue(node, "startupObject", m_StartupObject);
m_RootNamespace = Helper.AttributeValue(node, "rootNamespace", m_RootNamespace);