C
C#ā€¢8mo ago
InfinityShadow20

Switching language Versions:

Hey Everyone, So I was trying to make my first ever text based game and all was going well until I got the error you can see in the ss below. I just updated to the latest version in the VS Installer less than 1 hour ago and Im not sure how to fix this issue. According to what it says here, I currently have v 7.3 and need v 8.0 or higher for this bit of the code to work. Is there an easy way to fix this? Thank you in advance, - InfinityShadow20
No description
129 Replies
Pobiega
Pobiegaā€¢8mo ago
It sounds very likely that you made a .NET Framework project, instead of a .NET project now this might sound confusing, so I'll just ask the bot to post a description: $net $.net
MODiX
MODiXā€¢8mo ago
.NET is a marketing term referring to a family of products, consisting of two different lineages. The .NET Framework ("netfx") lineage was introduced in 2002. This lineage runs only on Windows. Its most recent release is .NET Framework 4.8.1. While this lineage is still supported, very few new features are being introduced into it. Devs are encouraged not to target .NET Framework for new app development. The .NET Core ("netcore") lineage was introduced in 2016. This is a modern development platform which runs across many different OSes. The .NET Core 3.1 product was the last version in this lineage to bear the ".NET Core" name; and starting with the next release (.NET 5), the product was renamed to simply ".NET". .net6 in 2021, .net7 in 2022, .net8 in 2023 ... in this lineage is .NET 7. This lineage is where new features are actively being developed. Devs are encouraged to target .NET for new app development. Nowadays, the ".NET" moniker usually refers to recent versions of the netcore lineage. When you create a new app targeting .NET (not .NET Framework!), you're targeting this newer, modern, cross-platform API surface and runtime.
Pobiega
Pobiegaā€¢8mo ago
so when creating a new project in visual studio, make sure to NOT pick a framework version: $newproject
MODiX
MODiXā€¢8mo ago
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework. .NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended. https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Pobiega
Pobiegaā€¢8mo ago
@InfinityShadow20
InfinityShadow20
InfinityShadow20ā€¢8mo ago
so basically, there is no way to fix it and I have to basically start from scratch on a new project that doesn't have (.NET Framework)??
Pobiega
Pobiegaā€¢8mo ago
you don't have to "start from scratch" most of your code can be copied right over just make a new console project, then copy over all your code files, and try to run it fix errors as they pop up
InfinityShadow20
InfinityShadow20ā€¢8mo ago
well yeah, I meant like, basically copy everything over to like notepad or something, close and maybe delete the current project then start a new one and paste the code into into the new project and hopefully fix the issues... copy the files from File Explorer?
Pobiega
Pobiegaā€¢8mo ago
sure but only the .cs files
Burrito
Burritoā€¢8mo ago
You don't have to use notepad as a middle man, you can just make a new project in a new folder, and copy over the .cs files from your old project.
InfinityShadow20
InfinityShadow20ā€¢8mo ago
yeah im not gonna lie to you, even that seems a little to complicated for me šŸ¤£
Pobiega
Pobiegaā€¢8mo ago
its just copying a few files, its pretty much the most basic computer operation you can do
InfinityShadow20
InfinityShadow20ā€¢8mo ago
ok ill try that first then, just gotta creat a new project first how would I find the .cs files?
Pobiega
Pobiegaā€¢8mo ago
open up your project folder like, I hope you know that your project is just a bunch of files somewhere on your harddrive?
Pobiega
Pobiegaā€¢8mo ago
here is a screenshot from a brand new .net 8 console project:
No description
Want results from more Discord servers?
Add your server