Skip to content

Commit 8584994

Browse files
committed
Merge branch 'main' into enable_runtimeConfig
2 parents 28d0fa4 + cb8ae89 commit 8584994

28 files changed

+560
-496
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
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.25259.3",
6+
"version": "1.1.0-beta.25264.3",
77
"commands": [
88
"darc"
99
]

.vsts-ci.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -145,33 +145,6 @@ extends:
145145
_SignType: real
146146
dependsOn: Official_windows_x64
147147
downloadManifestMsiPackages: true
148-
### PGO ###
149-
- categoryName: PGO
150-
pgoInstrument: true
151-
publishArgument: $(_publishArgument)
152-
signArgument: $(_signArgument)
153-
officialBuildProperties: $(_officialBuildProperties)
154-
runTests: false
155-
variables:
156-
_SignType: real
157-
- categoryName: PGO
158-
pgoInstrument: true
159-
targetArchitecture: x86
160-
publishArgument: $(_publishArgument)
161-
signArgument: $(_signArgument)
162-
officialBuildProperties: $(_officialBuildProperties)
163-
runTests: false
164-
variables:
165-
_SignType: real
166-
- categoryName: PGO
167-
pgoInstrument: true
168-
targetArchitecture: arm64
169-
publishArgument: $(_publishArgument)
170-
signArgument: $(_signArgument)
171-
officialBuildProperties: $(_officialBuildProperties)
172-
runTests: false
173-
variables:
174-
_SignType: real
175148

176149
############### LINUX ###############
177150
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml@self
@@ -266,21 +239,6 @@ extends:
266239
officialBuildProperties: $(_officialBuildProperties)
267240
osProperties: /p:OSName=linux-musl
268241
runTests: false
269-
### PGO ###
270-
- categoryName: PGO
271-
pgoInstrument: true
272-
publishArgument: $(_publishArgument)
273-
officialBuildProperties: $(_officialBuildProperties)
274-
osProperties: $(linuxOsPortableProperties)
275-
runTests: false
276-
- categoryName: PGO
277-
pgoInstrument: true
278-
targetArchitecture: arm64
279-
runtimeIdentifier: linux-arm64
280-
publishArgument: $(_publishArgument)
281-
officialBuildProperties: $(_officialBuildProperties)
282-
osProperties: $(linuxOsPortableProperties)
283-
runTests: false
284242

285243
############### MACOS ###############
286244
- template: /eng/pipelines/templates/jobs/sdk-job-matrix.yml@self

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262

6363
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
6464
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
65+
66+
<!-- https://github.com/dotnet/source-build/issues/4115. -->
67+
<PublishWindowsPdb>false</PublishWindowsPdb>
6568
</PropertyGroup>
6669

6770
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">

documentation/general/dotnet-run-file.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ We call these *file-based programs* (as opposed to *project-based programs*).
77
dotnet run file.cs
88
```
99

10+
See also [IDE spec](https://github.com/dotnet/roslyn/blob/main/docs/features/file-based-programs-vscode.md).
11+
1012
## Motivation
1113

1214
File-based programs
@@ -71,7 +73,7 @@ Internally, the SDK CLI detects entry points by parsing all `.cs` files in the d
7173
and checking which ones contain top-level statements (`Main` methods are not supported for now as that would require full semantic analysis, not just parsing).
7274
Results of this detection are used to exclude other entry points from [builds](#multiple-entry-points) and [app directive collection](#directives-for-project-metadata).
7375
This means the CLI might consider a file to be an entry point which later the compiler doesn't
74-
(for example because its top-level statements are under `#if SYMBOL` and the build has `DefineConstants=SYMBOL`).
76+
(for example because its top-level statements are under `#if !SYMBOL` and the build has `DefineConstants=SYMBOL`).
7577
However such inconsistencies should be rare and hence that is a better trade off than letting the compiler decide which files are entry points
7678
because that could require multiple builds (first determine entry points and then re-build with app directives except those from other entry points).
7779
To avoid parsing all C# files twice (in CLI and in the compiler), the CLI could use the compiler server for parsing so the trees are reused

eng/Version.Details.xml

Lines changed: 281 additions & 281 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 132 additions & 132 deletions
Large diffs are not rendered by default.

eng/common/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ while [[ $# > 0 ]]; do
136136
restore=true
137137
pack=true
138138
;;
139-
-productBuild|-pb)
139+
-productbuild|-pb)
140140
build=true
141141
product_build=true
142142
restore=true

eng/common/core-templates/steps/source-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ steps:
5151
${{ coalesce(parameters.platform.buildScript, './build.sh') }} --ci \
5252
--configuration $buildConfig \
5353
--restore --build --pack -bl \
54+
--source-build \
5455
${{ parameters.platform.buildArguments }} \
5556
$internalRuntimeDownloadArgs \
5657
$targetRidArgs \
5758
$baseRidArgs \
5859
$portableBuildArgs \
59-
/p:DotNetBuildSourceOnly=true \
60-
/p:DotNetBuildRepo=true \
6160
displayName: Build
6261

6362
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml

eng/common/darc-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function InstallDarcCli {
6868
fi
6969
fi
7070

71-
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
71+
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json"
7272

7373
echo "Installing Darc CLI version $darcVersion..."
7474
echo "You may need to restart your command shell if this is the first dotnet tool you have installed."

eng/common/sdl/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Guardian.Cli" version="0.199.0"/>
3+
<package id="Microsoft.Guardian.Cli" version="0.109.0"/>
44
</packages>

0 commit comments

Comments
 (0)