installer icon indicating copy to clipboard operation
installer copied to clipboard

[17.4 Community Preview 2.1] SDK Resolver Failure

Open sangwook96 opened this issue 3 years ago • 6 comments

Hi, Yesterday, I installed the latest preview version. And then, I created a new Maui project with a template but I could not make it and got the error log.

error: SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed while attempting to resolve the SDK "Microsoft.NET.Sdk". Exception: "System.FormatException: Invalid numeric identifier: 'new_6'.

How can I create it without any issues?

Before, I created it well on 17.4 Community Preview 2.0 Or, How can I install 17.4 Community Preview 2.0 again?

Could you help me? Thanks

sangwook96 avatar Sep 21 '22 06:09 sangwook96

@Redth any ideas? @sangwook96 can you search for "new_6" in the dotnet\sdk-manifests folder? Can you also run dotnet --info and share the results as well?

marcpopMSFT avatar Sep 21 '22 21:09 marcpopMSFT

Is "new_6" in the project name? this could be potentially causing an issue too?

Could you share the project/solution that's failing to build?

Redth avatar Sep 22 '22 01:09 Redth

@marcpopMSFT the path for the latest dotnet sdk and sdk-manifest folders are like below: sdk: C:\Program Files\dotnet\sdk\7.0.100-rc.2.22477.23 sdk-manifest: C:\Program Files\dotnet\sdk-manifests\7.0.100-rc.2 So, is it possible the Exception: "System.FormatException: Invalid numeric identifier is due the path as path have non-numeric characters?

@Redth we are using miengine code repo for custom debug-engine : https://github.com/microsoft/MIEngine.git you can clone and load it into VS2022Preview to get the error.

The same project (https://github.com/microsoft/MIEngine.git) loads well into VS2022 Community but not in latest Preview.

om90prakash avatar Oct 25 '22 16:10 om90prakash

@Redth , @marcpopMSFT , HI Sorry, I did not see your answer. Now I saw it. After some days, my errors changed like NU1301: Unable to load the service index for source https://tizen.myget.org/F/dotnet/api/v3/index.json. NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json. I can not download the nuget packages,so I can not build my project till now. I can not resolve it on 17.4 previews 2.1 and 3.0 and 4.0 till now.

Could you help me with the issue? Thanks

sangwook96 avatar Oct 27 '22 12:10 sangwook96

Those NU1301 usually means you don't have access to a particular feed but since those are online feeds, I'm not sure. @aortiz-msft @JonDouglas who may know more about the nuget errors.

marcpopMSFT avatar Nov 07 '22 22:11 marcpopMSFT

Was this resolved in 17.4.0?

marcpopMSFT avatar Jan 05 '23 21:01 marcpopMSFT

Old issue triage: No recent responses so closing.

marcpopMSFT avatar Jul 23 '24 20:07 marcpopMSFT