Skip to content

Commit 09424ca

Browse files
authored
Merge pull request #2228 from Microsoft/dev
Sync from dev
2 parents ef19106 + d45df24 commit 09424ca

File tree

5,917 files changed

+64969
-39957
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,917 files changed

+64969
-39957
lines changed

_utils/Identify-CSharp-Template-Commits-Without-VisualBasic-Equivalents.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## This script cannot be perfect in identifying everything. It should be used in combination with the script that looks at file last-modified times.
88

99
# last param is the SHA of the commit to check from (this should normally be the last release)
10-
$files = git diff --name-only df0f996d22e0847337ee54aec72c50aa5bf21614
10+
$files = git diff --name-only 7a4c807bf03ad0b3f8fff045752e1b3375603b67
1111

1212
function Get-CsEquivalentFile($vbfile)
1313
{

_utils/Identify-CSharp-Templates-Changed-More-Recently-Than-VisualBasic-Equivalents.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Get-CsEquivalentFile($vbfile)
1212
}
1313

1414
# Get list of all templates
15-
$allTemplates = Get-ChildItem ..\templates\* -Recurse -include template.json | where { $_.FullName -notmatch "\\templates\\test\\" } | % { Write-Output $_.FullName }
15+
$allTemplates = Get-ChildItem ..\templates\* -Recurse -include template.json | where { $_.FullName -notmatch "\\templates\\Uwp\\test\\" } | % { Write-Output $_.FullName }
1616
Foreach ($t in $allTemplates)
1717
{
1818
# find VB ones

_utils/List-CSharp-Templates-Without-VisualBasic-Equivalents.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Get list of all templates
2-
$allTemplates = Get-ChildItem ..\templates\* -Recurse -include template.json | where { $_.FullName -notmatch "\\templates\\test\\" } | % { Write-Output $_.FullName }
2+
$allTemplates = Get-ChildItem ..\templates\* -Recurse -include template.json | where { $_.FullName -notmatch "\\templates\\Uwp\\test\\" } | % { Write-Output $_.FullName }
33
Foreach ($t in $allTemplates)
44
{
55
# Ignore VB ones

_utils/Synchronize-Files-Used-By-VisualBasic-Templates.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# This is necessary because the way template folders are copied and filtered means that, for example, the VB templates can't point to files in the C# folders.
44

55
# This script finds all interested files in VB folders and then copies the equivalent file from the CS version
6-
Get-ChildItem ..\templates\* -Recurse -include *.xaml, *.resw, *.md, *.png, Package.appxmanifest | where { $_.FullName -Match "VB\\" -and ($_.FullName -notmatch "\\templates\\test\\") } | % { $cs = $_.FullName -replace "VB\\", "\\"; Copy-Item $cs $_.FullName }
6+
Get-ChildItem ..\templates\* -Recurse -include *.xaml, *.resw, *.md, *.png, Package.appxmanifest | where { $_.FullName -Match "VB\\" -and ($_.FullName -notmatch "\\templates\\Uwp\\test\\") } | % { $cs = $_.FullName -replace "VB\\", "\\"; Copy-Item $cs $_.FullName }
77

88
# This script handles project file postactions that add 3rd party references
9-
Get-ChildItem ..\templates\* -Recurse -include _postaction.vbproj | where { $_.FullName -notmatch "\\templates\\test\\" } | % { $cs = $_.FullName -replace "VB\\", "\\"; $cs = $cs -replace ".vbproj", ".csproj"; Copy-Item $cs $_.FullName }
9+
Get-ChildItem ..\templates\* -Recurse -include _postaction.vbproj | where { $_.FullName -notmatch "\\templates\\Uwp\\test\\" } | % { $cs = $_.FullName -replace "VB\\", "\\"; $cs = $cs -replace ".vbproj", ".csproj"; Copy-Item $cs $_.FullName }
1010

1111
# Formats JSON in a nicer format than the built-in ConvertTo-Json does.
1212
# This is based on code from https://github.com/PowerShell/PowerShell/issues/2736 and will be built into PS6.0
@@ -31,7 +31,7 @@ function Format-Json([Parameter(Mandatory, ValueFromPipeline)][String] $json) {
3131

3232
# This script updates all the localized string values in VB template files from their C# equivalents.
3333
# This is needed as the files can't just be copied as they have VB specific content.
34-
Get-ChildItem ..\templates\* -Recurse -include *template.json | where { $_.FullName -Match "VB\\" -and ($_.FullName -notmatch "\\templates\\test\\") } | % {
34+
Get-ChildItem ..\templates\* -Recurse -include *template.json | where { $_.FullName -Match "VB\\" -and ($_.FullName -notmatch "\\templates\\Uwp\\test\\") } | % {
3535

3636
$vbFile = $_.FullName;
3737
$csFile = $_.FullName -replace "VB\\", "\\";

_utils/Synchronize-Localization-Files-Used-By-Prism-Templates.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Format-Json([Parameter(Mandatory, ValueFromPipeline)][String] $json) {
2020

2121
# This script updates all the localized string values in Prism template files from their C# equivalents.
2222
# This is needed as the files can't just be copied as they have Prism specific content.
23-
[string[]] $templatesPath = "..\templates\Pages","..\templates\Features";
23+
[string[]] $templatesPath = "..\templates\Uwp\Pages","..\templates\Uwp\Features";
2424

2525
Get-ChildItem $templatesPath -Recurse -include *template.json | where { $_.FullName -Match ".Prism\\" } | % {
2626

code/Big.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27004.2010
4+
VisualStudioVersion = 15.0.27130.2026
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{481CC407-92E7-42A9-AD6E-AA157E5D40C3}"
77
EndProject

code/Test.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "src\Core\Core.cspro
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{11848CF0-5EFE-419F-9261-47F683109F96}"
1111
ProjectSection(SolutionItems) = preProject
12-
_tools\NuGet.exe = _tools\NuGet.exe
12+
tools\nuget.exe = tools\nuget.exe
1313
EndProjectSection
1414
EndProject
1515
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UI", "src\UI\UI.csproj", "{DCFD282D-D91C-49B5-8DBF-D943BAFEF5AA}"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
6+
7+
namespace Microsoft.Templates.Core
8+
{
9+
public class BreakingChangeVersion
10+
{
11+
public string Name { get; set; }
12+
13+
public Version BreakingVersion { get; set; }
14+
}
15+
}

code/src/Core/Configuration/Configuration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using System.IO;
1010
using System.Reflection;
1111
using System.Text;
12-
1312
using Newtonsoft.Json;
1413
using Newtonsoft.Json.Converters;
1514

@@ -40,6 +39,8 @@ public class Configuration
4039

4140
public List<string> AllowedPublicKeysPins { get; set; } = new List<string>() { };
4241

42+
public List<BreakingChangeVersion> BreakingChangesVersions { get; set; } = new List<BreakingChangeVersion>() { };
43+
4344
public string CustomTelemetryEndpoint { get; set; } = string.Empty;
4445

4546
public string GitHubDocsUrl { get; set; } = "https://github.com/Microsoft/WindowsTemplateStudio/blob/master/docs/";

code/src/Core/Configuration/WindowsTemplateStudio.tokenized.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,11 @@
1717
"8A79BF09C49440C614229A2338384348443353A4B3DBA4AD46EDC0FE1054ED220A0D3445783493869186DEADBF0D9D8627E0EAC2D37475C9EC991A0324038EA4",
1818
"2A0A69F1AB9BB46A8AE3563B72702FD6CCB16ECBF669D62A7DC92D217A084E318EC8BB2AE87A4A2C6855BDB9C0F4FD93D77E802AAACDDEB795C2EF718D7D4890",
1919
"3887006BEB41CEE5386343BE28289FB8D08ED52D4DCB0907FBC4624D0EA886E9295303467AD3323D98D20703CBFBDA331680B2D8D90B3A561A98C94E05E9A021"
20+
],
21+
"BreakingChangesVersions": [
22+
{
23+
"Name": "AddNavigationView",
24+
"BreakingVersion": "###BreakingChangesAddNavigationViewVersion###"
25+
}
2026
]
2127
}

0 commit comments

Comments
 (0)