TypicalSoldier
TypicalSoldier
Explore posts from servers
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
$close
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
thanks for all your help!!!
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
i was able to fix the problem entirely by updating the .net.universalwindowsplatform package in nuget...
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
is there any reliable way to quickly update these projects to the newest .net framework?
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
i figured when it asks the target version i want to upgrade to and i select windows 11 it should update it to the newest release
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
what the fuckkk
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
it's for a current university class...the book it has us reading is based on VS 2017
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
it says it isnt there either
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
it says those aren't found in my solution
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
its open
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
idk how to check it but i just downloaded the lastest .net version 7.0.4
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
if you search it up in the nuget manager it pops up and you can install it...with or without it, i still get this godforsaken error Predefined type 'System.ValueTuple`2' is not defined or imported for whatever the fuck reason
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
✅ Predefined type 'System.ValueTuple2' is not defined or imported
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 namespace Methods { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); } private void calculateClick(object sender, RoutedEventArgs e) { int calculatedValue = 0; try { int leftHandSide = System.Int32.Parse(lhsOperand.Text); int rightHandSide = System.Int32.Parse(rhsOperand.Text); if (addition.IsChecked.HasValue && addition.IsChecked.Value) { calculatedValue = addValues(leftHandSide, rightHandSide); showResult(calculatedValue); } else if (subtraction.IsChecked.HasValue && subtraction.IsChecked.Value) { calculatedValue = subtractValues(leftHandSide, rightHandSide); showResult(calculatedValue); } else if (multiplication.IsChecked.HasValue && multiplication.IsChecked.Value) { calculatedValue = multiplyValues(leftHandSide, rightHandSide); showResult(calculatedValue); } else if (division.IsChecked.HasValue && division.IsChecked.Value) { int division, remainder; (division, remainder) = divide(leftHandSide, rightHandSide); result.Text = $" remainder "; } } catch (Exception caught) { expression.Text = ""; result.Text = caught.Message; } } private int addValues(int leftHandSide, int rightHandSide) { expression.Text = $"{leftHandSide} + {rightHandSide}"; return leftHandSide + rightHandSide; } private int subtractValues(int leftHandSide, int rightHandSide) { expression.Text = $"{leftHandSide} - {rightHandSide}"; return leftHandSide - rightHandSide; } private int multiplyValues(int leftHandSide, int rightHandSide) { expression.Text = $"{leftHandSide} * {rightHandSide}"; return leftHandSide * rightHandSide; } private (int, int) divide(int leftHandSide, int rightHandSide) { expression.Text = $" / "; int division = leftHandSide / rightHandSide; int remainder = leftHandSide % rightHandSide; return (division, remainder); } private void showResult(int answer) => result.Text = answer.ToString(); } }
41 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
❔ ✅ Textbox is way bigger than it is in designer C# / UWP / Blank App Template
Thanks again!
23 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
❔ ✅ Textbox is way bigger than it is in designer C# / UWP / Blank App Template
i can't believe i'm doing this shit...thanks guys
23 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
❔ ✅ Textbox is way bigger than it is in designer C# / UWP / Blank App Template
okay, i'll give it a shot
23 replies
CC#
Created by TypicalSoldier on 3/25/2023 in #help
❔ ✅ Textbox is way bigger than it is in designer C# / UWP / Blank App Template
is there a command that says how to use layout controls?
23 replies