I originally created this on Visual Studio 2019 but I need it in…

Question Answered step-by-step I originally created this on Visual Studio 2019 but I need it in… I originally created this on Visual Studio 2019 but I need it in Visual Studio 2017. Is their any way I could change it to work in 2017 because right now I’m getting build errors many with the “new” items. namespace _PlayPRSLS{    class Game    {        private readonly Player computer;        private Player player;        private Dictionary results;        public Game()        {            results = new Dictionary();            Enum.GetValues(typeof(Score)).Cast().ToList().ForEach(value =>            {                results.Add(value, 0);            });        }        public Game(Player player, Player computer) : this()        {            this.player = player;            this.computer = computer;        }        private void UpdateResult(Score score)        {            if (results.ContainsKey(score))            {                results[score]++;                return;            }            results.Add(score, 1);        }        static readonly Dictionary> _dictionary =            new Dictionary>();        static Game()        {            _dictionary.Add(Items.Scissors, new List<(Items item, string message, Score score)>()            {                new (Items.Scissors, “It is a Tie! {0} and {1} both selected Scissors. Try again!”, Score.Tie),                new (Items.Paper, “{0} Wins! Scissors cuts Paper!”, Score.Win),                new (Items.Rock, “OH NO! {0} Loses! Rock crushes scissors!”, Score.Lose),                new (Items.Spock, “OH NO! {0} Loses! Spock smashes scissors!”, Score.Lose),                new (Items.Lizard, “{0} Wins! Scissors decapitates lizard!”, Score.Win),            });            _dictionary.Add(Items.Rock, new List<(Items item, string message, Score score)>()            {                new (Items.Rock, “It is a Tie! {0} and {1} both selected Rock. Try again!”, Score.Tie),                new (Items.Paper, “OH NO! {0} Loses! Paper covers Rock!”, Score.Lose),                new (Items.Scissors, “{0} Wins! Rock crushes Scissors!”, Score.Win),                new (Items.Lizard, “{0} Wins! Rock crushes Lizard!”, Score.Win),                new (Items.Spock, “OH NO! {0} Loses! Spock vaporizes Rock!”, Score.Lose),            });            _dictionary.Add(Items.Paper, new List<(Items item, string message, Score score)>()            {                new (Items.Paper, “It is a Tie! {0} and {1} both selected Paper. Try again!”, Score.Tie),                new (Items.Rock, “{0} Wins! Paper covers Rock!”, Score.Win),                new (Items.Scissors, “OH NO! {0} Loses! Scissors cuts Paper!”, Score.Lose),                new (Items.Lizard, “OH NO! {0} Loses! Lizard eats Paper!”, Score.Lose),                new (Items.Spock, “{0} Wins! Paper disproves Spock!”, Score.Win),            });           _dictionary.Add(Items.Lizard, new List<(Items item, string message, Score score)>()            {                new (Items.Lizard, “It is a Tie! {0} and {1} both selected Lizard. Try again!”, Score.Tie),                new (Items.Rock, “OH NO! {0} Loses! Rock crushes Lizard!”, Score.Lose),                new (Items.Scissors, “OH NO! {0} Loses! Scissors decapitates Lizard!”, Score.Lose),                new (Items.Paper, “{0} Wins! Lizard eats Paper!”, Score.Win),                new (Items.Spock, “{0} Wins! Lizard poisons Spock!”, Score.Win),            });            _dictionary.Add(Items.Spock, new List<(Items item, string message, Score score)>()            {                new (Items.Spock, “It is a Tie! {0} and {1} both selected Spock. Try again!”, Score.Tie),                new (Items.Rock, “{0} Wins! Spock vaporizes Rock!”, Score.Win),                new (Items.Scissors, “{0} Wins! Spock smashes Scissors!”, Score.Win),                new (Items.Paper, “OH NO! {0} Loses! Paper disproves Spock!”, Score.Lose),                new (Items.Lizard, “OH NO! {0} Loses! Lizard poisons Spock!”, Score.Lose),            });        }        public (int total, int wins, int loses, int ties) GetTotalScore()        {            return (results.Sum(x => x.Value), results[Score.Win], results[Score.Lose], results[Score.Tie]);        }        public void Reset()        {            foreach (var key in results.Keys.AsEnumerable())                results[key] = 0;        }        public string DetermineWinner(Items playerMove)        {            Items computerMove = (Items)EnumsHelper.GetRandom();            if (_dictionary.TryGetValue(playerMove, out List<(Items item, string message, Score score)> collection))            {                var item = collection.First(c => c.item == computerMove);                UpdateResult(item.score);                return string.Format(item.message, player.Name, computer.Name);            }            return string.Empty;        }    }} Engineering & Technology Computer Science CIS 217 Share QuestionEmailCopy link Comments (0)