You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tasks/UseDotNetV2/Strings/resources.resjson/en-US/resources.resjson
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,7 @@
79
79
"loc.messages.InvalidChannelObject": "Object cannot be used as Channel, required properties such as channel-version, releases.json is missing.",
80
80
"loc.messages.ReleasesIndexBodyIncorrect": "Parsed releases index body is not correct. Kindly see if the releases-index section is not empty in the file.",
81
81
"loc.messages.InvalidVersionObject": "Releases.json has a release with invalid %s object: %s",
82
+
"loc.messages.InvalidVersion": "Invalid version specified %s",
82
83
"loc.messages.FilesDataIsIncorrectInVersion": "In release %s for version %s, File data is incorrect (might have missing required fields, such as name, rid and url): %s",
83
84
"loc.messages.VersionFilesDataIncorrect": "Version's files data is missing or has missing required fields.",
84
85
"loc.messages.VersionInformationNotComplete": "Version: %s required information is not complete in releases.json file. Error: %s",
@@ -92,5 +93,6 @@
92
93
"loc.messages.FailedToFindGlobalJson": "Failed to find global.json at and inside path: %s",
93
94
"loc.messages.FailedToReadGlobalJson": "The global.json at path: '%s' has the wrong format. For information about global.json, visit here: https://docs.microsoft.com/en-us/dotnet/core/tools/global-json. Error while trying to read: %s",
94
95
"loc.messages.VersionNumberHasTheWrongFormat": "The version number: %s doesn't have the correct format. Versions can be given in the following formats: 2.x => Install latest in major version. 2.2.x => Install latest in major and minor version. 2.2.104 => Install exact version. Find the value of `version` for installing SDK/Runtime, from the releases.json. The link to releases.json of that major.minor version can be found in [**releases-index file.**](https://github.com/dotnet/core/blob/master/release-notes/releases-index.json). Like link to releases.json for 2.2 version is https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/2.2/releases.json",
95
-
"loc.messages.OnlyExplicitVersionAllowed": "Only explicit versions and accepted, such as: 2.2.301. Version: %s is not valid."
96
+
"loc.messages.OnlyExplicitVersionAllowed": "Only explicit versions and accepted, such as: 2.2.301. Version: %s is not valid.",
97
+
"loc.messages.SupportPhaseNotPresentInChannel": "support-phase is not present in the channel with channel-version %s."
Copy file name to clipboardExpand all lines: Tasks/UseDotNetV2/Tests/L0.ts
+48Lines changed: 48 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ describe('UseDotNet', function () {
150
150
151
151
it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should throw if version for pacakge type can not be found, and error message should contain the package type",(done)=>{
@@ -168,6 +170,32 @@ describe('UseDotNet', function () {
168
170
},tr,done);
169
171
});
170
172
173
+
it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should throw if includePreviewVersion is false and only 1 channel and is preview",(done)=>{
@@ -233,6 +261,26 @@ describe('UseDotNet', function () {
233
261
},tr,done);
234
262
});
235
263
264
+
it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should return latest version info if includePreviewVersion is true and only 1 channel and is preview",(done)=>{
assert(tr.succeeded==true,("Should have returned the correct version info."));
271
+
},tr,done);
272
+
});
273
+
274
+
it("[VersionFetcher.DotNetCoreVersionFetcher] getVersionInfo should return latest version info if includePreviewVersion is false and latest version is preview",(done)=>{
0 commit comments