Skip to content

Commit 45d1a73

Browse files
authored
Merge branch 'main' into finalizer-csharp
2 parents cfe2801 + 02b196a commit 45d1a73

File tree

1,028 files changed

+53107
-42071
lines changed

Some content is hidden

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

1,028 files changed

+53107
-42071
lines changed

Diff for: .config/dotnet-tools.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"microsoft.dotnet.darc": {
6-
"version": "1.1.0-beta.25128.5",
6+
"version": "1.1.0-beta.25161.2",
77
"commands": [
88
"darc"
99
]

Diff for: .github/copilot-instructions.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Coding Style and Changes:
2+
- Code should match the style of the file it's in.
3+
- Changes should be minimal to resolve a problem in a clean way.
4+
- User-visible changes to behavior should be considered carefully before committing. They should always be flagged.
5+
6+
Testing:
7+
- Large changes should always include test changes.
8+
- The Skip parameter of the Fact attribute to point to the specific issue link.
9+
10+
Output Considerations:
11+
- When considering how output should look, solicit advice from baronfel.
12+
13+
Localization:
14+
- Avoid modifying .xlf files and instead prompt the user to update them using the `/t:UpdateXlf` target on MSBuild.
15+
- Consider localizing strings in .resx files when possible.

Diff for: .github/workflows/remove-lockdown-label.yml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Remove Lockdown Label from PRs
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
permissions:
8+
actions: write
9+
pull-requests: write
10+
11+
jobs:
12+
remove-labels:
13+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'Branding')
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: PR's only change is <VersionFeature> in eng/Versions.props
20+
id: only_version_feature_changed
21+
uses: actions/github-script@v4
22+
with:
23+
script: |
24+
const otherChangesMessage = "❌ Changes in eng/Versions.props other than <VersionFeature> found";
25+
const onlyVersionFeatureMessage = "✅ PR's only change is <VersionFeature> in eng/Versions.props";
26+
const prNumber = context.payload.pull_request.number;
27+
const { data: files } = await github.pulls.listFiles({
28+
owner: context.repo.owner,
29+
repo: context.repo.repo,
30+
pull_number: prNumber
31+
});
32+
// If files other than eng/Versions.props are changed, output message and exit
33+
if (files.some(file => file.filename !== "eng/Versions.props")) {
34+
console.log(otherChangesMessage);
35+
core.exportVariable("only_version_feature_changed", "false");
36+
return;
37+
}
38+
// Iterate through the patch of eng/Versions.props to check for changes other than <VersionFeature>
39+
const versionsPropsFile = files.find(file => file.filename === "eng/Versions.props");
40+
const patchLines = versionsPropsFile.patch.split("\n").filter(l => l.startsWith("+") || l.startsWith("-"));
41+
for (const line of patchLines) {
42+
if (!line.includes("<VersionFeature>")) {
43+
console.log(otherChangesMessage);
44+
core.exportVariable("only_version_feature_changed", "false");
45+
return;
46+
}
47+
}
48+
console.log(onlyVersionFeatureMessage);
49+
core.exportVariable("only_version_feature_changed", "true");
50+
51+
- name: Remove Branch Lockdown label from other PRs targeting this branch
52+
if: steps.only_version_feature_changed.outputs.only_version_feature_changed == 'true'
53+
uses: actions/github-script@v4
54+
with:
55+
script: |
56+
const prs = await github.pulls.list({
57+
owner: context.repo.owner,
58+
repo: context.repo.repo,
59+
state: 'open',
60+
base: github.event.pull_request.base.ref,
61+
per_page: 300
62+
});
63+
const filtered_prs = prs.data
64+
.filter(pr => pr.number !== github.context.payload.pull_request.number)
65+
.filter(pr => pr.labels.map(label => label.name).includes('Branch Lockdown'));
66+
for (const pr of filtered_prs) {
67+
await github.issues.removeLabel({
68+
owner: context.repo.owner,
69+
repo: context.repo.repo,
70+
issue_number: pr.number,
71+
name: 'Branch Lockdown'
72+
});
73+
console.log(`Removed Branch Lockdown label from PR #${pr.number}`);
74+
}

Diff for: Directory.Build.props

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@
3131
<IsDebianBaseDistro Condition="$(HostRid.StartsWith('ubuntu')) OR $(HostRid.StartsWith('debian'))">true</IsDebianBaseDistro>
3232
<IsRPMBasedDistro Condition="$(HostRid.StartsWith('rhel'))">true</IsRPMBasedDistro>
3333
<IsRPMBasedDistro Condition="$(HostRid.StartsWith('centos'))">true</IsRPMBasedDistro>
34+
35+
<OSName Condition="'$(OSName)' == '' AND $(Rid) != ''">$(Rid.Substring(0, $(Rid.LastIndexOf('-'))))</OSName>
36+
<OSName Condition="'$(OSName)' == ''">$(HostOSName)</OSName>
37+
<Rid>$(OSName)-$(Architecture)</Rid>
38+
<ProductMonikerRid Condition="'$(ProductMonikerRid)' == ''">$(Rid)</ProductMonikerRid>
39+
40+
<PgoTerm Condition="'$(PgoInstrument)' == 'true'">-pgo</PgoTerm>
3441
</PropertyGroup>
3542

3643
<PropertyGroup>
@@ -53,6 +60,7 @@
5360

5461
<PropertyGroup>
5562
<SdkSrcRoot>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', 'src'))</SdkSrcRoot>
63+
<PackageProjectUrl>https://github.com/dotnet/sdk</PackageProjectUrl>
5664
<PackageLicenseExpression>MIT</PackageLicenseExpression>
5765
<LangVersion>Latest</LangVersion>
5866
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>

Diff for: Directory.Packages.props

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@
6767
<PackageVersion Include="Microsoft.TestPlatform.Build" Version="$(MicrosoftTestPlatformBuildPackageVersion)" />
6868
<PackageVersion Include="Microsoft.TestPlatform.CLI" Version="$(MicrosoftTestPlatformCLIPackageVersion)" />
6969
<PackageVersion Include="Microsoft.VisualStudio.Composition" Version="17.4.16" />
70+
<PackageVersion Include="Microsoft.VisualStudio.Sdk" Version="17.2.32505.173" />
71+
<PackageVersion Include="Microsoft.VSSDK.BuildTools" Version="17.11.435" />
7072
<PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="$(MicrosoftVisualStudioSetupConfigurationInteropVersion)" />
71-
<PackageVersion Include="Microsoft.VisualStudio.SolutionPersistence" Version="1.0.28" />
73+
<PackageVersion Include="Microsoft.VisualStudio.SolutionPersistence" Version="$(MicrosoftVisualStudioSolutionPersistenceVersion)" />
7274
<PackageVersion Include="Microsoft.Web.Deployment" Version="$(WebDeploymentPackageVersion)" />
7375
<PackageVersion Include="Microsoft.Web.Xdt" Version="$(MicrosoftWebXdtPackageVersion)" />
7476
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="$(MicrosoftWin32SystemEventsPackageVersion)" />

Diff for: NuGet.config

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
<add key="dotnet-tools-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-transport/nuget/v3/index.json" />
2626
<add key="dotnet-libraries" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries/nuget/v3/index.json" />
2727
<add key="dotnet-libraries-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-libraries-transport/nuget/v3/index.json" />
28+
<add key="vssdk" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vssdk/nuget/v3/index.json" />
29+
<add key="vssdk-archived" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vssdk-archived/nuget/v3/index.json" />
2830
<add key="vs-impl" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl/nuget/v3/index.json" />
2931
<!-- Used for Rich Navigation indexing task -->
3032
<add key="richnav" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-buildservices/nuget/v3/index.json" />

0 commit comments

Comments
 (0)