Skip to content

Commit b97c3a7

Browse files
authored
Merge branch 'release/10.0.2xx' into merge/release/10.0.1xx-to-release/10.0.2xx
2 parents caf0e5b + 1b3a9de commit b97c3a7

File tree

16 files changed

+65
-44
lines changed

16 files changed

+65
-44
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,4 @@ Microsoft.TemplateEngine.VC.db
258258

259259
#Rider
260260
.idea/
261+
.nuget/

eng/Version.Details.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file should be imported by eng/Versions.props
66
<Project>
77
<PropertyGroup>
88
<!-- dotnet/dotnet dependencies -->
9-
<MicrosoftDotNetArcadeSdkPackageVersion>10.0.0-beta.25568.102</MicrosoftDotNetArcadeSdkPackageVersion>
9+
<MicrosoftDotNetArcadeSdkPackageVersion>10.0.0-beta.25601.105</MicrosoftDotNetArcadeSdkPackageVersion>
1010
<SystemCommandLinePackageVersion>2.0.1</SystemCommandLinePackageVersion>
1111
<!-- _git/dotnet-runtime dependencies -->
1212
<MicrosoftBclAsyncInterfacesPackageVersion>9.0.3</MicrosoftBclAsyncInterfacesPackageVersion>

eng/Version.Details.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
3-
<Source Uri="https://github.com/dotnet/dotnet" Mapping="templating" Sha="115a29577547ce136b754d96d2ebfb184595a923" BarId="291265" />
3+
<Source Uri="https://github.com/dotnet/dotnet" Mapping="templating" Sha="8a620c2ac745de3e6704b89df649777315e25cdc" BarId="292823" />
44
<ProductDependencies>
55
<Dependency Name="System.CommandLine" Version="2.0.1">
66
<Uri>https://github.com/dotnet/dotnet</Uri>
77
<Sha>115a29577547ce136b754d96d2ebfb184595a923</Sha>
88
</Dependency>
99
</ProductDependencies>
1010
<ToolsetDependencies>
11-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25568.102">
11+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25601.105">
1212
<Uri>https://github.com/dotnet/dotnet</Uri>
13-
<Sha>115a29577547ce136b754d96d2ebfb184595a923</Sha>
13+
<Sha>8a620c2ac745de3e6704b89df649777315e25cdc</Sha>
1414
</Dependency>
1515
<!-- Dependencies required for source build. We'll still update manually -->
1616
<Dependency Name="System.Formats.Asn1" Version="9.0.3">

eng/Versions.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<Project>
22
<Import Project="Version.Details.props" Condition="Exists('Version.Details.props')" />
33
<PropertyGroup>
4-
<VersionPrefix>10.0.101</VersionPrefix>
4+
<VersionPrefix>10.0.200</VersionPrefix>
55
<!-- When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages -->
66
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
77
<DotNetFinalVersionKind Condition="'$(StabilizePackageVersion)' == 'true'">release</DotNetFinalVersionKind>
88
<!-- Calculate prerelease label -->
9-
<PreReleaseVersionLabel>servicing</PreReleaseVersionLabel>
10-
<PreReleaseVersionIteration></PreReleaseVersionIteration>
9+
<PreReleaseVersionLabel Condition="'$(StabilizePackageVersion)' != 'true'">preview</PreReleaseVersionLabel>
10+
<PreReleaseVersionLabel Condition="'$(StabilizePackageVersion)' == 'true' and $(VersionPrefix.EndsWith('00'))">rtm</PreReleaseVersionLabel>
11+
<PreReleaseVersionLabel Condition="'$(StabilizePackageVersion)' == 'true' and !$(VersionPrefix.EndsWith('00'))">servicing</PreReleaseVersionLabel>
12+
<PreReleaseVersionIteration Condition="'$(StabilizePackageVersion)' != 'true'"></PreReleaseVersionIteration>
1113
<UsingToolXliff>true</UsingToolXliff>
1214
<FlagNetStandard1XDependencies>true</FlagNetStandard1XDependencies>
1315
</PropertyGroup>

src/Microsoft.TemplateEngine.Abstractions/Installer/InstallRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public InstallRequest(string identifier, string? version = null, string? install
2424
/// <summary>
2525
/// Name to be used when display the request.
2626
/// </summary>
27-
public string DisplayName => string.IsNullOrWhiteSpace(Version) ? PackageIdentifier : $"{PackageIdentifier}::{Version}";
27+
public string DisplayName => string.IsNullOrWhiteSpace(Version) ? PackageIdentifier : $"{PackageIdentifier}@{Version}";
2828

2929
/// <summary>
3030
/// Installer to be used to install the request.

src/Microsoft.TemplateEngine.Edge/Installers/NuGet/Exceptions/DownloadException.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ namespace Microsoft.TemplateEngine.Edge.Installers.NuGet
55
{
66
internal class DownloadException : Exception
77
{
8-
public DownloadException(string packageIdentifier, string packageVersion, string filePath) : base($"Failed to download {packageIdentifier}::{packageVersion} from {filePath}")
8+
public DownloadException(string packageIdentifier, string packageVersion, string filePath) : base($"Failed to download {packageIdentifier}@{packageVersion} from {filePath}")
99
{
1010
PackageIdentifier = packageIdentifier;
1111
PackageVersion = packageVersion;
1212
PackageLocation = filePath;
1313
}
1414

15-
public DownloadException(string packageIdentifier, string packageVersion, IEnumerable<string> attemptedSources) : base($"Failed to download {packageIdentifier}::{packageVersion} from NuGet feeds {string.Join(";", attemptedSources)}")
15+
public DownloadException(string packageIdentifier, string packageVersion, IEnumerable<string> attemptedSources) : base($"Failed to download {packageIdentifier}@{packageVersion} from NuGet feeds {string.Join(";", attemptedSources)}")
1616
{
1717
PackageIdentifier = packageIdentifier;
1818
PackageVersion = packageVersion;
1919
SourcesList = attemptedSources;
2020
}
2121

22-
public DownloadException(string packageIdentifier, string packageVersion, IEnumerable<string> attemptedSources, Exception inner) : base($"Failed to download {packageIdentifier}::{packageVersion} from NuGet feeds {string.Join(";", attemptedSources)}", inner)
22+
public DownloadException(string packageIdentifier, string packageVersion, IEnumerable<string> attemptedSources, Exception inner) : base($"Failed to download {packageIdentifier}@{packageVersion} from NuGet feeds {string.Join(";", attemptedSources)}", inner)
2323
{
2424
PackageIdentifier = packageIdentifier;
2525
PackageVersion = packageVersion;

src/Microsoft.TemplateEngine.Edge/Installers/NuGet/Exceptions/PackageNotFoundException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal class PackageNotFoundException : Exception
1313
SourcesList = attemptedSources;
1414
}
1515

16-
public PackageNotFoundException(string packageIdentifier, NuGetVersion packageVersion, IEnumerable<string> attemptedSources) : base($"{packageIdentifier}::{packageVersion} was not found in NuGet feeds {string.Join(";", attemptedSources)}")
16+
public PackageNotFoundException(string packageIdentifier, NuGetVersion packageVersion, IEnumerable<string> attemptedSources) : base($"{packageIdentifier}@{packageVersion} was not found in NuGet feeds {string.Join(";", attemptedSources)}")
1717
{
1818
PackageIdentifier = packageIdentifier;
1919
PackageVersion = packageVersion;

src/Microsoft.TemplateEngine.Edge/Installers/NuGet/NuGetManagedTemplatePackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private NuGetManagedTemplatePackage(
8686

8787
public IManagedTemplatePackageProvider ManagedProvider { get; }
8888

89-
public string DisplayName => string.IsNullOrWhiteSpace(Version) ? Identifier : $"{Identifier}::{Version}";
89+
public string DisplayName => string.IsNullOrWhiteSpace(Version) ? Identifier : $"{Identifier}@{Version}";
9090

9191
public string Identifier => Details[PackageIdKey];
9292

src/Microsoft.TemplateEngine.Edge/Installers/NuGet/NugetApiPackageManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ await GetLatestVersionInternalAsync(
137137
_nugetLogger.LogWarning(
138138
string.Format(
139139
LocalizableStrings.NuGetApiPackageManager_Warning_FailedToDownload,
140-
$"{packageMetadata.Identity.Id}::{packageMetadata.Identity.Version}",
140+
$"{packageMetadata.Identity.Id}@{packageMetadata.Identity.Version}",
141141
source.Source));
142142
try
143143
{
@@ -159,7 +159,7 @@ await GetLatestVersionInternalAsync(
159159
_nugetLogger.LogWarning(
160160
string.Format(
161161
LocalizableStrings.NuGetApiPackageManager_Warning_FailedToDownload,
162-
$"{packageMetadata.Identity.Id}::{packageMetadata.Identity.Version}",
162+
$"{packageMetadata.Identity.Id}@{packageMetadata.Identity.Version}",
163163
source.Source));
164164
_nugetLogger.LogDebug($"Details: {e}.");
165165
try
@@ -335,13 +335,13 @@ await Task.WhenAll(
335335
NugetPackageMetadata? matchedVersion = foundPackages.FirstOrDefault(package => package.Identity.Version == packageVersion);
336336
if (matchedVersion != null)
337337
{
338-
_nugetLogger.LogDebug($"{packageIdentifier}::{packageVersion} was found in {foundSource.Source}.");
338+
_nugetLogger.LogDebug($"{packageIdentifier}@{packageVersion} was found in {foundSource.Source}.");
339339
linkedCts.Cancel();
340340
return (foundSource, matchedVersion);
341341
}
342342
else
343343
{
344-
_nugetLogger.LogDebug($"{packageIdentifier}::{packageVersion} is not found in NuGet feed {foundSource.Source}.");
344+
_nugetLogger.LogDebug($"{packageIdentifier}@{packageVersion} is not found in NuGet feed {foundSource.Source}.");
345345
}
346346
}
347347
if (!atLeastOneSourceValid)
@@ -351,7 +351,7 @@ await Task.WhenAll(
351351
_nugetLogger.LogWarning(
352352
string.Format(
353353
LocalizableStrings.NuGetApiPackageManager_Warning_PackageNotFound,
354-
$"{packageIdentifier}::{packageVersion}",
354+
$"{packageIdentifier}@{packageVersion}",
355355
string.Join(", ", sources.Select(source => source.Source))));
356356
throw new PackageNotFoundException(packageIdentifier, packageVersion, sources.Select(source => source.Source));
357357
}

src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/LocalizationModelDeserializer.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ private static IReadOnlyDictionary<string, PostActionLocalizationModel> LoadPost
131131

132132
foreach (var postActionParts in strings.GroupBy(p => p.NameParts.FirstOrDefault()))
133133
{
134+
if (string.IsNullOrEmpty(postActionParts.Key))
135+
{
136+
// Post action with no ID. Ignore.
137+
continue;
138+
}
139+
134140
string postActionId = postActionParts.Key;
135141
string? description = postActionParts.SingleOrDefault(p => p.NameParts.Skip(1).FirstOrDefault() == "description").LocalizedString;
136142
var instructions = LoadManualInstructionModels(postActionParts
@@ -162,6 +168,12 @@ private static IReadOnlyDictionary<string, string> LoadManualInstructionModels(I
162168

163169
foreach (var instructionParts in strings.GroupBy(p => p.NameParts.FirstOrDefault()))
164170
{
171+
if (string.IsNullOrEmpty(instructionParts.Key))
172+
{
173+
// Instruction with no ID. Ignore.
174+
continue;
175+
}
176+
165177
string id = instructionParts.Key;
166178
string? text = instructionParts.SingleOrDefault(p => p.NameParts.Skip(1).FirstOrDefault() == "text").LocalizedString;
167179
results[id] = text;

0 commit comments

Comments
 (0)