59 Replies
I've installed .NET 7.0 already
Framework version should not have a
v
net7
net8
And so onWhere do you see that and how to fix it?
Ah, wait, you have
<TargetFrameworkVersion>
not <TargetFramework>
, huhIdk this is automatically generated
By?
I'm working with a friend of mine but everytime I work with someone I get this error. While I already have .net 7.0 installed. Only if I start the solution we can both work but that is not the case
Seeing at the Analyzers in the Game/Reader project it analyzes the .net 6.0 version
Maybe that is the problem but I don't know how I can make it analyze my .net 7.0 path
Any idea how to fix?
What is it, exactly?
A Unity game project?
What generated this
.csproj
file?No a console c# project
.net core
That... should not have created a
.csproj
that looks like thisWeird. He is also working with VS 2022 just like me. Also with the same version
so basically this line should be replaced?
Did he create a
Console App
or Console App (.NET Framework)
?
also, can you post the whole csproj?
$pasteIf your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Here for example
Just console app
Yeah I have no idea what it is
This looks nothing like a console app csproj
So strange
This is how a csproj of a console app looks
Oh, I just noticed, your csproj mentiones MSBuild from 2003
This is absolutely not a .NET or .NET Core app
This is .NET Framework
4.6 or so
Strange
do you know why .NET 7.0 is not in this list? It's so strange. I just downloaded + restarted my computer with SDK AND Runtime .NET 7.0
Do you happen to have
globals.json
somewhere in this project?Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
* Open
powershell
in a terminal in admin mode as in the following video:
https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4
* copy/paste the following script
* it will tell you if it detects invalid Path
setup
* Press Enter to confirm
No idk where that is located
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
@TeBeCo @ZZZZZZZZZZZZZZZZZZZZZZZZZ
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
It just says 7.0 lol
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
* close VS
* remove the hidden folder
.vs
* remove all bin
and obj
folder next to each csproj (DO NOT TOUCH THE .git
FOLDER OR WHAT'S INSIDE)
* restart vsUnknown User•13mo ago
Message Not Public
Sign In & Join Server To View
yup still
It's so strange why I can't make my target framework 7.0
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
What you mean? restart pc?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
I've restarted VS already
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Screenshot of this?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Okay will do
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Yea we could try
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Okay great, i'm doing that right now
I'll update you asap
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
I dont mind, only need net7
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
It worked thanks bro @TeBeCo
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
Use the /close command to mark a forum thread as answered