Skip to content

Commit f69cde9

Browse files
authored
Merge pull request #538 from microsoft/updates
Update metadata to 23.0.2-preview
2 parents 898c26e + a6fde4f commit f69cde9

File tree

10 files changed

+15
-14
lines changed

10 files changed

+15
-14
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<IncludeSymbols Condition=" '$(DebugType)' != 'embedded' ">true</IncludeSymbols>
3030
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
3131

32-
<MetadataVersion>17.0.2-preview</MetadataVersion>
32+
<MetadataVersion>23.0.2-preview</MetadataVersion>
3333
<!-- <DiaMetadataVersion>0.2.185-preview-g7e1e6a442c</DiaMetadataVersion> -->
3434
<ApiDocsVersion>0.1.7-alpha</ApiDocsVersion>
3535
</PropertyGroup>

azure-pipelines/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ steps:
2121
enabled: false # https://github.com/dotnet/sdk/issues/14578
2222

2323
- task: DotNetCoreCLI@2
24-
displayName: 🧪 dotnet test -f net5.0
24+
displayName: 🧪 dotnet test -f net6.0
2525
inputs:
2626
command: test
27-
arguments: --no-build -c $(BuildConfiguration) -f net5.0 --filter "TestCategory!=FailsInCloudTest$(TestFilter)" -v n /p:CollectCoverage=true --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings" /bl:"$(Build.ArtifactStagingDirectory)/build_logs/test_net5.0.binlog"
28-
testRunTitle: net5.0-$(Agent.JobName)
27+
arguments: --no-build -c $(BuildConfiguration) -f net6.0 --filter "TestCategory!=FailsInCloudTest$(TestFilter)" -v n /p:CollectCoverage=true --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings" /bl:"$(Build.ArtifactStagingDirectory)/build_logs/test_net6.0.binlog"
28+
testRunTitle: net6.0-$(Agent.JobName)
2929
condition: succeededOrFailed()
3030

3131
- task: DotNetCoreCLI@2

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.100",
3+
"version": "6.0.200",
44
"rollForward": "patch",
55
"allowPrerelease": false
66
}

src/Microsoft.Windows.CsWin32/Generator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,7 @@ private static ObjectCreationExpressionSyntax GuidValue(CustomAttribute guidAttr
21862186
Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(ToHex(k), k))));
21872187
}
21882188

2189-
private static ObjectCreationExpressionSyntax PropertyKeyValue(CustomAttribute propertyKeyAttribute)
2189+
private static ObjectCreationExpressionSyntax PropertyKeyValue(CustomAttribute propertyKeyAttribute, TypeSyntax type)
21902190
{
21912191
CustomAttributeValue<TypeSyntax> args = propertyKeyAttribute.DecodeValue(CustomAttributeTypeProvider.Instance);
21922192
var a = (uint)args.FixedArguments[0].Value!;
@@ -2202,7 +2202,7 @@ private static ObjectCreationExpressionSyntax PropertyKeyValue(CustomAttribute p
22022202
var k = (byte)args.FixedArguments[10].Value!;
22032203
var pid = (uint)args.FixedArguments[11].Value!;
22042204

2205-
return ObjectCreationExpression(IdentifierName("global::Windows.Win32.UI.Shell.PropertiesSystem.PROPERTYKEY")).WithInitializer(
2205+
return ObjectCreationExpression(type).WithInitializer(
22062206
InitializerExpression(SyntaxKind.ObjectInitializerExpression, SeparatedList<ExpressionSyntax>(new[]
22072207
{
22082208
AssignmentExpression(SyntaxKind.SimpleAssignmentExpression, IdentifierName("fmtid"), GuidValue(propertyKeyAttribute)),
@@ -2878,7 +2878,7 @@ private FieldDeclarationSyntax DeclareConstant(FieldDefinitionHandle fieldDefHan
28782878
ExpressionSyntax value =
28792879
fieldDef.GetDefaultValue() is { IsNil: false } constantHandle ? this.ToExpressionSyntax(this.Reader.GetConstant(constantHandle)) :
28802880
this.FindInteropDecorativeAttribute(customAttributes, nameof(GuidAttribute)) is CustomAttribute guidAttribute ? GuidValue(guidAttribute) :
2881-
this.FindInteropDecorativeAttribute(customAttributes, "PropertyKeyAttribute") is CustomAttribute propertyKeyAttribute ? PropertyKeyValue(propertyKeyAttribute) :
2881+
this.FindInteropDecorativeAttribute(customAttributes, "PropertyKeyAttribute") is CustomAttribute propertyKeyAttribute ? PropertyKeyValue(propertyKeyAttribute, fieldType.Type) :
28822882
throw new NotSupportedException("Unsupported constant: " + name);
28832883
bool requiresUnsafe = false;
28842884
if (fieldType.Type is not PredefinedTypeSyntax && value is not ObjectCreationExpressionSyntax)

src/Win32MetaGeneration/Win32MetaGeneration.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

test/GenerationSandbox.Tests/GenerationSandbox.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\..\src\Microsoft.Windows.CsWin32\build\Microsoft.Windows.CsWin32.props" />
33

44
<PropertyGroup>
5-
<TargetFrameworks>net5.0-windows7.0;netcoreapp3.1;net472</TargetFrameworks>
5+
<TargetFrameworks>net6.0-windows7.0;netcoreapp3.1;net472</TargetFrameworks>
66
<RootNamespace />
77
</PropertyGroup>
88

test/Microsoft.Windows.CsWin32.Tests/GeneratorTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ public void InterestingAPIs(
236236
"JsVariantToValue",
237237
"D2D1_DEFAULT_FLATTENING_TOLERANCE", // a float constant
238238
"WIA_CATEGORY_FINISHED_FILE", // GUID constant
239-
"DEVPKEY_MTPBTH_IsConnected", // PROPERTYKEY constant
239+
"DEVPKEY_MTPBTH_IsConnected", // DEVPROPKEY constant
240+
"PKEY_AudioEndpoint_FormFactor", // PROPERTYKEY constant
240241
"RT_CURSOR", // PCWSTR constant
241242
"IOleUILinkContainerW", // An IUnknown-derived interface with no GUID
242243
"RTM_ENTITY_EXPORT_METHODS",

test/Microsoft.Windows.CsWin32.Tests/Microsoft.Windows.CsWin32.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net5.0;netcoreapp3.1;net472</TargetFrameworks>
4+
<TargetFrameworks>net6.0;netcoreapp3.1;net472</TargetFrameworks>
55
<RootNamespace />
66
</PropertyGroup>
77

test/SpellChecker/SpellChecker.csproj

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

44
<PropertyGroup>
55
<OutputType>Exe</OutputType>
6-
<TargetFrameworks>net5.0-windows7.0;net472</TargetFrameworks>
6+
<TargetFrameworks>net6.0-windows8.0;net472</TargetFrameworks>
77
</PropertyGroup>
88

99
<ItemGroup>

test/WinRTInteropTest/WinRTInteropTest.csproj

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

44
<PropertyGroup>
55
<OutputType>WinExe</OutputType>
6-
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
6+
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
77
<Nullable>disable</Nullable>
88
</PropertyGroup>
99

0 commit comments

Comments
 (0)