C
C#2y ago
joy

Unable to resolve the .NET SDK version as specified

hi all, im trying to build an asp net project but got this message
Unable to resolve the .NET SDK version as specified in the global.json located at ...
Unable to resolve the .NET SDK version as specified in the global.json located at ...
i try to list down the net version in my system, i have the version 3.xx, 5.xx, and 6.xx and i checked the project require net 6.xx version, but why is it still giving me this error message? does anybody know why?
5 Replies
Wz
Wz2y ago
What's in the global.json
joy
joy2y ago
inside the global.json it's this version 6.0.302 and in my system it's 6.0.300, do i have to install the 6.0.4xx version? bcs i saw in the microsoft download page there's no 6.0.302 one..
joy
joy2y ago
Wz
Wz2y ago
304 is the latest https://dotnet.microsoft.com/en-us/download/dotnet/6.0 for the 300 band the global json is requiring 302 at minimum, I think the default allows patch increments or you can just change the entry in the json to 300
joy
joy2y ago
ohhh... that works!! thank you! 🙏