Skip to content

Commit 4b61994

Browse files
committed
Return content
1 parent 5646ee3 commit 4b61994

File tree

319 files changed

+26727
-0
lines changed

Some content is hidden

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

319 files changed

+26727
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
1330:
5+
retail:
6+
source:
7+
credscan:
8+
lastModifiedDate: 2024-03-25
9+
eslint:
10+
lastModifiedDate: 2024-03-25
11+
psscriptanalyzer:
12+
lastModifiedDate: 2024-03-25
13+
armory:
14+
lastModifiedDate: 2024-03-25
15+
binary:
16+
credscan:
17+
lastModifiedDate: 2024-03-25
18+
binskim:
19+
lastModifiedDate: 2024-03-25
20+
spotbugs:
21+
lastModifiedDate: 2024-03-25

Diff for: src/SourceBuild/content/.config/tsaoptions.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"instanceUrl": "https://devdiv.visualstudio.com/",
3+
"template": "TFSDEVDIV",
4+
"projectName": "DEVDIV",
5+
"areaPath": "DevDiv\\.NET Shared\\VMR",
6+
"iterationPath": "DevDiv",
7+
"notificationAliases": [ "[email protected]" ],
8+
"repositoryName": "dotnet-dotnet",
9+
"codebaseName": "dotnet-dotnet"
10+
}

Diff for: src/SourceBuild/content/.devcontainer/README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!--
2+
######## ######## ### ######## ######## ## ## #### ######
3+
## ## ## ## ## ## ## ## ## ## ## ## ##
4+
## ## ## ## ## ## ## ## ## ## ## ##
5+
######## ###### ## ## ## ## ## ######### ## ######
6+
## ## ## ######### ## ## ## ## ## ## ##
7+
## ## ## ## ## ## ## ## ## ## ## ## ##
8+
## ## ######## ## ## ######## ## ## ## #### ######
9+
-->
10+
11+
This Codespace allows you to debug or make changes to the .NET SDK product. The build takes about
12+
45 up to 75 minutes (depending on the machine and OS) and, after completion, produces an archived
13+
.NET SDK located in `/workspaces/dotnet/artifacts/assets/Release`.
14+
15+
In case you selected the prebuilt-sdk Codespace configuration (which is only useful when building
16+
from source), the built-from-source SDK will already be there.
17+
18+
## Build the SDK
19+
20+
To build the repository, run one of the following:
21+
```bash
22+
# Microsoft based build
23+
./build.sh
24+
```
25+
or
26+
27+
```bash
28+
# Building from source only
29+
./prep-source-build.sh && ./build.sh -sb
30+
```
31+
32+
> Please note that, at this time, the build modifies some of the checked-in sources so it might
33+
be preferential to rebuild the Codespace between attempts (or reset the working tree changes).
34+
35+
For more details, see the instructions at https://github.com/dotnet/dotnet.
36+
37+
## Synchronize your changes in locally
38+
39+
When debugging the build, you have two options how to test your changes in this environment.
40+
41+
### Making changes to the VMR directly
42+
43+
You can make the changes directly to the local checkout of the VMR at `/workspaces/dotnet`. You
44+
can then try to build the VMR and see if the change works for you.
45+
46+
### Pull changes into the Codespace from your fork
47+
48+
You can also make a fix in the individual source repository (e.g. `dotnet/runtime`) and push the
49+
fix into a branch; can be in your fork too. Once you have the commit pushed, you can pull this
50+
version of the repository into the Codespace by running:
51+
52+
```
53+
/workspaces/synchronize-vmr.sh \
54+
--repository <repo>:<commit, tag or branch> \
55+
--remote <repo>:<fork URI>
56+
```
57+
58+
You can now proceed building the VMR in the Codespace using instructions above. You can repeat
59+
this process and sync a new commit from your fork. Only note that, at this time, Source-Build
60+
modifies some of the checked-in sources so you'll need to revert the working tree changes
61+
between attempts.
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Container contains checked-out source code only
2+
{
3+
"name": "Default",
4+
"image": "mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9",
5+
"hostRequirements": {
6+
// A completely source built .NET is >64 GB with all the repos/artifacts
7+
"storage": "128gb"
8+
},
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"ms-dotnettools.csharp"
13+
]
14+
},
15+
"codespaces": {
16+
"openFiles": [
17+
".devcontainer/README.md"
18+
]
19+
}
20+
},
21+
"onCreateCommand": ".devcontainer/init.sh"
22+
}

Diff for: src/SourceBuild/content/.devcontainer/init.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
set -eux
4+
5+
source="${BASH_SOURCE[0]}"
6+
script_root="$( cd -P "$( dirname "$source" )" && pwd )"
7+
8+
workspace_dir=$(realpath "$script_root/../../")
9+
tmp_dir=$(realpath "$workspace_dir/tmp")
10+
vmr_dir=$(realpath "$workspace_dir/dotnet")
11+
12+
cp "$vmr_dir/.devcontainer/synchronize-vmr.sh" "$workspace_dir"
13+
14+
mkdir -p "$tmp_dir"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Container contains a pre-built SDK
2+
{
3+
"name": "Pre-built .NET SDK",
4+
"image": "mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream9",
5+
"hostRequirements": {
6+
// A completely source built .NET is >64 GB with all the repos/artifacts
7+
"storage": "128gb"
8+
},
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"ms-dotnettools.csharp"
13+
]
14+
},
15+
"codespaces": {
16+
"openFiles": [
17+
".devcontainer/README.md"
18+
]
19+
}
20+
},
21+
"onCreateCommand": ".devcontainer/prebuilt-sdk/init.sh"
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
source="${BASH_SOURCE[0]}"
4+
script_root="$( cd -P "$( dirname "$source" )" && pwd )"
5+
6+
"$script_root"/../../prep-source-build.sh
7+
8+
cp "$script_root/../synchronize-vmr.sh" "/workspaces/"
9+
"$script_root"/../../build.sh --online --clean-while-building || exit 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
(cd /workspaces/dotnet/src/sdk \
4+
&& ./eng/vmr-sync.sh --vmr /workspaces/dotnet --tmp /workspaces/tmp $*)

Diff for: src/SourceBuild/content/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.dotnet
2+
/.packages
3+
/artifacts
4+
/prereqs/packages
5+
/src/nuget-client/NuGet.config
6+
*.binlog

Diff for: src/SourceBuild/content/.sscignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cfs" : [
3+
"CFS0001",
4+
"CFS0013"
5+
]
6+
}

Diff for: src/SourceBuild/content/CODE_OF_CONDUCT.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Code of Conduct
2+
3+
This project has adopted the code of conduct defined by the Contributor Covenant
4+
to clarify expected behavior in our community.
5+
6+
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).

Diff for: src/SourceBuild/content/CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Contributing
2+
============
3+
4+
See [dotnet/runtime](./src/runtime/CONTRIBUTING.md) for general contribution guidelines such as allowed licenses.
5+
6+
At this time, the VMR will not accept any changes and is a read-only mirror of the development repositories only.
7+
Please, make the changes in the respective development repositories (e.g., [dotnet/runtime](https://github.com/dotnet/runtime) or [dotnet/sdk](https://github.com/dotnet/sdk)) and they will get synchronized into the VMR automatically.

0 commit comments

Comments
 (0)