internal protected override void Read(IPropertySet pset)
        {
            base.Read(pset);

            assembly        = pset.GetValue("AssemblyName");
            signAssembly    = pset.GetValue <bool> ("SignAssembly");
            delaySign       = pset.GetValue <bool> ("DelaySign");
            assemblyKeyFile = pset.GetPathValue("AssemblyOriginatorKeyFile", FilePath.Empty);
            if (string.IsNullOrEmpty(assemblyKeyFile))
            {
                assemblyKeyFile = pset.GetPathValue("AssemblyKeyFile", FilePath.Empty);
            }
            if (compilationParameters != null)
            {
                compilationParameters.Read(pset);
            }
        }
示例#2
0
        internal protected override void Read(IPropertySet pset)
        {
            base.Read(pset);

            //we are assuming that if AppendTargetFrameworkToOutputPath has a value is .NET Core / .NET Standard proj.
            AppendTargetFrameworkToOutputPath = pset.GetValue <bool?> ("AppendTargetFrameworkToOutputPath", defaultValue: null);
            TargetFrameworkShortName          = pset.GetValue("TargetFramework");
            assembly        = pset.GetValue("AssemblyName");
            SignAssembly    = pset.GetValue <bool> ("SignAssembly");
            DelaySign       = pset.GetValue <bool> ("DelaySign");
            PublicSign      = pset.GetValue <bool> (nameof(PublicSign));
            AssemblyKeyFile = pset.GetPathValue("AssemblyOriginatorKeyFile", FilePath.Empty);
            if (string.IsNullOrEmpty(AssemblyKeyFile))
            {
                AssemblyKeyFile = pset.GetPathValue("AssemblyKeyFile", FilePath.Empty);
            }
            if (compilationParameters != null)
            {
                compilationParameters.Read(pset);
            }
        }