I am getting the below error while trying a build a project using .NET8.
error NU1100: Unable to resolve 'Microsoft.NETCore.App.Ref (= 6.0.27)' for 'net6.0'.
The machine doesn't have internet connectivity. Earlier i remember building a .NET project using .NET6 or prior version was requiring to connect to nuget.org and downloading the packages to %user%.nuget.
But with .NET8 i don't see that happening.I tried to build on a machine which has internet connectivity but as part of the build the packages are not downloaded to %user$.nuget.
The difference between the two machines is machine1 doesn't have internet connectivity and is using .NET8 unzipped version and machine2 has internet connectivity and is using Visual Studio 2022 installation which comes with .NET8 runtime.
dotnet --versionanddotnet --list-sdks? What is the actual VS version on the second (without internet) machine?