New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"2.1.0-preview1" and "2.1.0-preview2" cannot be with .Net Core tool installer task. #7032

Closed
sachinma opened this Issue Apr 20, 2018 · 9 comments

Comments

Projects
None yet
6 participants
@sachinma
Member

sachinma commented Apr 20, 2018

No description provided.

@sachinma

This comment has been minimized.

Member

sachinma commented Apr 20, 2018

To use "2.1.0-preview1" -> to download SDK, use "2.1.300-preview1-008174" and to download runtime use "2.1.0-preview1-26216-03" strings.

To use "2.1.0-preview2" -> to download SDK, use "2.1.300-preview2-008533" and to download runtime use "2.1.0-preview2-26406-04" strings.

@clguimanMSFT

This comment has been minimized.

Member

clguimanMSFT commented May 7, 2018

what about 2.1.0-rc1?

@phatcher

This comment has been minimized.

phatcher commented May 11, 2018

I tried with 2.1.0-rc1 and it says I have the name wrong...

2018-05-11T14:41:21.3002798Z ##[debug]Agent.Version=2.133.3
2018-05-11T14:41:21.3021113Z ##[debug]Agent.TempDirectory=D:\a\_temp
2018-05-11T14:41:21.3021743Z Downloading: https://dotnetcli.azureedge.net/dotnet/Sdk/2.1.0-rc1/dotnet-dev-win-x64.2.1.0-rc1.zip
2018-05-11T14:41:21.3022311Z ##[debug]destination D:\a\_temp\82a2e4a6-d5d5-454f-ac57-40e0a2cba28e
2018-05-11T14:41:21.3022605Z ##[debug]creating stream
2018-05-11T14:41:21.3065740Z ##[debug]downloading
2018-05-11T14:41:21.9443034Z Failed to download .NET Core package using legacy URL as well. Error: Error: Unexpected HTTP response: 404.
2018-05-11T14:41:21.9443764Z ##[debug]task result: Failed
2018-05-11T14:41:21.9499502Z ##[error]Failed to download .NET Core package. Please ensure that .NET Core sdk of version 2.1.0-rc1 exists. Check out: https://github.com/dotnet/core/blob/master/release-notes/releases.csv
2018-05-11T14:41:21.9509491Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to download .NET Core package. Please ensure that .NET Core sdk of version 2.1.0-rc1 exists. Check out: https://github.com/dotnet/core/blob/master/release-notes/releases.csv
2018-05-11T14:41:21.9523968Z ##[debug]Processed: ##vso[task.complete result=Failed;]Failed to download .NET Core package. Please ensure that .NET Core sdk of version 2.1.0-rc1 exists. Check out: https://github.com/dotnet/core/blob/master/release-notes/releases.csv
2018-05-11T14:41:21.9609494Z ##[section]Finishing: Use .NET Core sdk 2.1.0-rc1

That was the version name specified in the releases.csv

@sachinma

This comment has been minimized.

Member

sachinma commented May 11, 2018

To use 2.1.0-RC -> to download SDK, use "2.1.300-rc1-008673". And to download runtime, use "2.1.0-rc1".

@sachinma

This comment has been minimized.

Member

sachinma commented May 11, 2018

@bishal-pdMSFT can you have a look at this?

@johndelizo

This comment has been minimized.

johndelizo commented May 13, 2018

Thanks @sachinma I was able to fix my build error.

From image

To using "2.1.300-rc1-008673".

image

image

@bishal-pdMSFT

This comment has been minimized.

Contributor

bishal-pdMSFT commented May 14, 2018

@sachinma Proper fix for such issues would be to use releases.json file to fetch information about possible versions and their download locations. netcore team has started maintaining such a json(although there are few mismatches in that as well)

@sachinma

This comment has been minimized.

Member

sachinma commented May 15, 2018

Lets raise a issue on their repo to start understanding the right pattern that we should use in our task

@ds-ms

This comment has been minimized.

Member

ds-ms commented Jul 3, 2018

This issue has been fixed in this PR: #7434
The task now uses the mapping you see in the releases.json for downloading the desired versions.

@ds-ms ds-ms closed this Jul 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment