Skip to content

Commit e04bebf

Browse files
Merge branch 'dotnet:main' into enable-xamarinuitest-harish26
2 parents 343b3a0 + daf8866 commit e04bebf

File tree

2,964 files changed

+1036
-198850
lines changed

Some content is hidden

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

2,964 files changed

+1036
-198850
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ body:
4242
label: Version with bug
4343
description: In what version do you see this issue? Run `dotnet workload list` to find your version.
4444
options:
45+
- 9.0.30 SR3
4546
- 9.0.22 SR2.2
4647
- 9.0.21 SR2.1
4748
- 9.0.14 SR1.4
@@ -158,6 +159,7 @@ body:
158159
- 9.0.14 SR1.4
159160
- 9.0.21 SR2.1
160161
- 9.0.22 SR2.2
162+
- 9.0.30 SR3
161163
validations:
162164
required: true
163165
- type: dropdown
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.1 BLOCK -->
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->
22

33
## Security
44

5-
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [many more](https://opensource.microsoft.com/).
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
66

7-
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [definition](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below.
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
88

99
## Reporting Security Issues
1010

11-
**Please do not report security vulnerabilities through public GitHub issues.** Instead, please report them to the Microsoft Security Response Center at [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://technet.microsoft.com/en-us/security/dn606155).
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
14+
15+
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
1216

1317
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
1418

1519
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
1620

17-
* Type of issue (e.g., buffer overflow, SQL injection, cross-site scripting, etc.)
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
1822
* Full paths of source file(s) related to the manifestation of the issue
1923
* The location of the affected source code (tag/branch/commit or direct URL)
2024
* Any special configuration required to reproduce the issue
@@ -24,14 +28,14 @@ Please include the requested information listed below (as much as you can provid
2428

2529
This information will help us triage your report more quickly.
2630

27-
Reports via MSRC may qualify for the .NET Core Bug Bounty. Details of the .NET Core Bug Bounty including terms and conditions are at https://aka.ms/corebounty.
28-
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
32+
2933
## Preferred Languages
3034

3135
We prefer all communications to be in English.
3236

3337
## Policy
3438

35-
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
3640

37-
<!-- END MICROSOFT SECURITY.MD BLOCK -->
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<MajorVersion>9</MajorVersion>
44
<MinorVersion>0</MinorVersion>
5-
<PatchVersion>30</PatchVersion>
5+
<PatchVersion>40</PatchVersion>
66
<SdkBandVersion>9.0.100</SdkBandVersion>
77
<PreReleaseVersionLabel>ci.main</PreReleaseVersionLabel>
88
<PreReleaseVersionIteration>

eng/cake/dotnet.cake

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -229,25 +229,6 @@ Task("uitests-apphost")
229229
RunMSBuildWithDotNet("./src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj", properties, binlogPrefix: "uitests-apphost-");
230230
});
231231

232-
Task("dotnet-legacy-controlgallery")
233-
.IsDependentOn("dotnet-legacy-controlgallery-android")
234-
.IsDependentOn("dotnet-legacy-controlgallery-ios");
235-
236-
Task("dotnet-legacy-controlgallery-ios")
237-
.Does(() =>
238-
{
239-
var properties = new Dictionary<string, string>();
240-
properties.Add("RuntimeIdentifier","iossimulator-x64");
241-
RunMSBuildWithDotNet("./src/Compatibility/ControlGallery/src/iOS/Compatibility.ControlGallery.iOS.csproj", properties, binlogPrefix: "controlgallery-ios-");
242-
});
243-
244-
Task("dotnet-legacy-controlgallery-android")
245-
.Does(() =>
246-
{
247-
var properties = new Dictionary<string, string>();
248-
RunMSBuildWithDotNet("./src/Compatibility/ControlGallery/src/Android/Compatibility.ControlGallery.Android.csproj", properties, binlogPrefix: "controlgallery-android-");
249-
});
250-
251232
Task("dotnet-integration-build")
252233
.Does(() =>
253234
{

eng/devices/android.cake

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,6 @@ Task("uitest")
115115
ExecuteUITests(projectPath, testAppProjectPath, testAppPackageName, testDevice, testResultsPath, binlogDirectory, configuration, targetFramework, "", androidVersion, dotnetToolPath, testAppInstrumentation);
116116
});
117117

118-
Task("cg-uitest")
119-
.IsDependentOn("dotnet-buildtasks")
120-
.Does(() =>
121-
{
122-
ExecuteCGLegacyUITests(projectPath, testAppProjectPath, testAppPackageName, testDevice, testResultsPath, configuration, targetFramework, dotnetToolPath, testAppInstrumentation);
123-
});
124-
125118
Task("logcat")
126119
.Does(() =>
127120
{
@@ -130,43 +123,6 @@ Task("logcat")
130123

131124
RunTarget(TARGET);
132125

133-
void ExecuteCGLegacyUITests(string project, string appProject, string appPackageName, string device, string resultsDir, string config, string tfm, string toolPath, string instrumentation)
134-
{
135-
CleanDirectories(resultsDir);
136-
137-
Information("Starting Compatibility Gallery UI Tests...");
138-
139-
var testApp = GetTestApplications(appProject, device, config, tfm, "").FirstOrDefault();
140-
141-
if (string.IsNullOrEmpty(appPackageName))
142-
{
143-
var appFile = new FilePath(testApp);
144-
appFile = appFile.GetFilenameWithoutExtension();
145-
appPackageName = appFile.FullPath.Replace("-Signed", "");
146-
}
147-
148-
Information($"Testing Device: {device}");
149-
Information($"Testing App Project: {appProject}");
150-
Information($"Testing App: {testApp}");
151-
Information($"Testing App Package Name: {appPackageName}");
152-
Information($"Results Directory: {resultsDir}");
153-
154-
InstallApk(testApp, appPackageName, resultsDir, deviceSkin);
155-
156-
//set env var for the app path for Xamarin.UITest setup
157-
SetEnvironmentVariable("ANDROID_APP", $"{testApp}");
158-
159-
var resultName = $"{System.IO.Path.GetFileNameWithoutExtension(project)}-{config}-{DateTime.UtcNow.ToFileTimeUtc()}";
160-
Information("Run UITests project {0}", resultName);
161-
RunTestWithLocalDotNet(
162-
project,
163-
config: config,
164-
pathDotnet: toolPath,
165-
noBuild: false,
166-
resultsFileNameWithoutExtension: resultName,
167-
filter: Argument("filter", ""));
168-
}
169-
170126
void ExecuteBuild(string project, string device, string binDir, string config, string tfm, string toolPath)
171127
{
172128
var projectName = System.IO.Path.GetFileNameWithoutExtension(project);

eng/devices/devices-shared.cake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ var projectMappings = new Dictionary<string, string>
1212
["MauiBlazorWebView.DeviceTests"] = "MauiBlazorWebView.DeviceTests",
1313
["Essentials.DeviceTests"] = "Essentials.DeviceTests",
1414
["Controls.TestCases.HostApp"] = "Controls.TestCases.HostApp",
15-
["Compatibility.ControlGallery.iOS"] = "Compatibility.ControlGallery.iOS",
16-
["Compatibility.ControlGallery.Android"] = "Compatibility.ControlGallery.Android",
1715
};
1816

1917
string TARGET = Argument("target", "Test");
@@ -29,12 +27,6 @@ if (TARGET.StartsWith("uitest", StringComparison.OrdinalIgnoreCase))
2927
DEFAULT_APP_PROJECT = "../../src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj";
3028
}
3129

32-
if (string.Equals(TARGET, "cg-uitest", StringComparison.OrdinalIgnoreCase))
33-
{
34-
DEFAULT_PROJECT = "../../src/Compatibility/ControlGallery/test/iOS.UITests/Compatibility.ControlGallery.iOS.UITests.csproj";
35-
DEFAULT_APP_PROJECT = "../../src/Compatibility/ControlGallery/src/iOS/Compatibility.ControlGallery.iOS.csproj";
36-
}
37-
3830
IEnumerable<string> GetTestApplications(string project, string device, string config, string tfm, string rid)
3931
{
4032
const string binDirBase = "bin";

eng/devices/ios.cake

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,6 @@ Task("uitest")
113113
ExecuteUITests(projectPath, testAppProjectPath, testDevice, testResultsPath, binlogDirectory, configuration, targetFramework, runtimeIdentifier, iosVersion, dotnetToolPath);
114114
});
115115

116-
Task("cg-uitest")
117-
.IsDependentOn("dotnet-buildtasks")
118-
.Does(() =>
119-
{
120-
ExecuteCGLegacyUITests(projectPath, testAppProjectPath, testDevice, testResultsPath, configuration, targetFramework, runtimeIdentifier, iosVersion, dotnetToolPath);
121-
});
122-
123116
RunTarget(TARGET);
124117

125118
void ExecuteBuild(string project, string device, string binDir, string config, string rid, string tfm, string toolPath)
@@ -295,54 +288,6 @@ void ExecuteBuildUITestApp(string appProject, string device, string binDir, stri
295288
Information("UI Test app build completed.");
296289
}
297290

298-
void ExecuteCGLegacyUITests(string project, string appProject, string device, string resultsDir, string config, string tfm, string rid, string iosVersion, string toolPath)
299-
{
300-
Information("Starting Compatibility Gallery UI Tests...");
301-
302-
CleanDirectories(resultsDir);
303-
304-
Information("Starting Compatibility Gallery UI Tests...");
305-
306-
var testApp = GetTestApplications(appProject, device, config, tfm, rid).FirstOrDefault();
307-
308-
Information($"Testing Device: {device}");
309-
Information($"Testing App Project: {appProject}");
310-
Information($"Testing App: {testApp}");
311-
Information($"Results Directory: {resultsDir}");
312-
313-
InstallIpa(testApp, "com.microsoft.mauicompatibilitygallery", device, $"{resultsDir}/ios", iosVersion, toolPath);
314-
315-
// For non-CI builds we assume that this is configured correctly on your machine
316-
if (IsCIBuild())
317-
{
318-
// Install IDB (and prerequisites)
319-
StartProcess("brew", "tap facebook/fb");
320-
StartProcess("brew", "install idb-companion");
321-
StartProcess("pip3", "install --user fb-idb");
322-
323-
// Create a temporary script file to hold the inline Bash script
324-
var makeSymLinkScript = "./temp_script.sh";
325-
// Below is an attempt to somewhat dynamically determine the path to idb and make a symlink to /usr/local/bin this is needed in order for Xamarin.UITest to find it
326-
System.IO.File.AppendAllLines(makeSymLinkScript, new[] { "sudo ln -s $(find /Users/$(whoami)/Library/Python/?.*/bin -name idb | head -1) /usr/local/bin" });
327-
328-
StartProcess("bash", makeSymLinkScript);
329-
System.IO.File.Delete(makeSymLinkScript);
330-
}
331-
332-
//set env var for the app path for Xamarin.UITest setup
333-
SetEnvironmentVariable("iOS_APP", $"{testApp}");
334-
335-
var resultName = $"{System.IO.Path.GetFileNameWithoutExtension(project)}-{config}-{DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")}";
336-
Information("Run UITests project {0}", resultName);
337-
RunTestWithLocalDotNet(
338-
project,
339-
config: config,
340-
pathDotnet: toolPath,
341-
noBuild: false,
342-
resultsFileNameWithoutExtension: resultName,
343-
filter: Argument("filter", ""));
344-
}
345-
346291
// Helper methods
347292

348293
void PerformCleanupIfNeeded(bool cleanupEnabled, bool createDeviceLogs)

eng/pipelines/azure-pipelines-internal.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ trigger:
1818
- LICENSE.TXT
1919
- PATENTS.TXT
2020
- README.md
21-
- SECURITY.md
2221
- THIRD-PARTY-NOTICES.TXT
2322

2423
schedules:

eng/pipelines/common/setup-jdk.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
parameters:
2-
jdkFolder: $(JAVA_HOME_17_X64)
2+
jdkFolder: '$(JAVA_HOME_17_X64)'
33
jdkMajorVersion: 17
44

55
steps:
66
# Setup JDK Paths (gradle needs it)
77
- bash: |
8-
echo "##vso[task.setvariable variable=JI_JAVA_HOME]${{ parameters.jdkFolder }}"
9-
echo "##vso[task.setvariable variable=JAVA_HOME]${{ parameters.jdkFolder }}"
8+
if [ -n "${{ parameters.jdkFolder }}" ]; then
9+
jdkPath="${{ parameters.jdkFolder }}"
10+
echo "Using provided JDK folder: $jdkPath"
11+
else
12+
jdkPath=$(/usr/libexec/java_home -V 2>&1 | grep -E "${{ parameters.jdkMajorVersion }}.jdk" | head -n 1 | awk '{print $NF}')
13+
if [ -n "$jdkPath" ]; then
14+
echo "Found JDK path: $jdkPath"
15+
else
16+
echo "Unable to find JDK ${{ parameters.jdkMajorVersion }}"
17+
exit 1
18+
fi
19+
fi
20+
echo "##vso[task.setvariable variable=JI_JAVA_HOME]$jdkPath"
21+
echo "##vso[task.setvariable variable=JAVA_HOME]$jdkPath"
22+
echo "JAVA_HOME set to '$jdkPath'"
1023
displayName: Setup JDK ${{ parameters.jdkMajorVersion }} Paths
1124
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
1225

@@ -24,6 +37,7 @@ steps:
2437
echo "JAVA_HOME set to '$env:JAVA_HOME'"
2538
} else {
2639
echo "Unable to set JAVA_HOME"
40+
exit 1
2741
}
2842
displayName: Setup JDK ${{ parameters.jdkMajorVersion }} Paths
2943
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))

eng/pipelines/common/ui-tests-compatibility-steps.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)