Esempio n. 1
0
        private string GetTargetPlatform()
        {
            if (TargetPlatform == null)
            {
                return(null);
            }

            if (Equals(TargetPlatform, MSBuildTargetPlatform.MSIL))
            {
                return(TargetPath == null || TargetPath.EndsWithOrdinalIgnoreCase(".sln")
                    ? "Any CPU".DoubleQuote()
                    : "AnyCPU");
            }

            return(TargetPlatform.ToString());
        }