Skip to content

Commit 474f115

Browse files
committed
Merge remote-tracking branch 'origin/master' into merge/release/2.2-to-master
2 parents 68067b8 + d416d22 commit 474f115

File tree

12 files changed

+651
-16
lines changed

12 files changed

+651
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
bin/
22
obj/
33
.vs/
4+
.vscode/
45
*.suo
56
*.user
67
_ReSharper.*

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<IsSampleProject Condition="$(RepoRelativeProjectDir.Contains('sample'))">true</IsSampleProject>
107107
</PropertyGroup>
108108

109-
<Import Project="build\tasks\RepoTasks.tasks" Condition="'$(MSBuildProjectName)' != 'RepoTasks'" />
109+
<Import Project="build\tasks\RepoTasks.tasks" Condition="'$(MSBuildProjectName)' != 'RepoTasks' AND '$(DesignTimeBuild)' != 'true'" />
110110

111111
<Import Project="eng\Dependencies.props" />
112112
<Import Project="eng\PatchConfig.props" />

build.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,13 @@ elseif ($Projects) {
242242
else {
243243
# When adding new sub-group build flags, add them to this check.
244244
if((-not $Native) -and (-not $Managed) -and (-not $NodeJS) -and (-not $Installers)) {
245-
Write-Warning "No default group of projects was specified, so building the 'managed' subset of projects. Run ``build.cmd -help`` for more details."
245+
Write-Warning "No default group of projects was specified, so building the 'managed' and 'native' subsets of projects. Run ``build.cmd -help`` for more details."
246246

247247
# This goal of this is to pick a sensible default for `build.cmd` with zero arguments.
248-
# We believe the most common thing our contributors will work on is C#, so if no other build group was picked, build the C# projects.
248+
# Now that we support subfolder invokations of build.cmd, we will be pushing to have build.cmd build everything (-all) by default
249249

250250
$Managed = $true
251+
$Native = $true
251252
}
252253

253254
$MSBuildArguments += "/p:BuildManaged=$Managed"

build/repo.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@
168168
<Move SourceFiles="%(SubmoduleGlobalJsonFiles.BackupPath)" DestinationFiles="%(SubmoduleGlobalJsonFiles.Identity)" Condition="Exists(%(SubmoduleGlobalJsonFiles.BackupPath))" />
169169

170170
<!-- Join required because shipping category is stored in artifact.props (PackageArtifact), but information about package ID and version comes from repos (ArtifactInfo). -->
171-
<RepoTasks.JoinItems
171+
<RepoTasks.JoinRepoItems
172172
Left="@(_Temp)"
173173
LeftMetadata="*"
174174
Right="@(ArtifactInfo->WithMetadataValue('ArtifactType','NuGetPackage'));@(ShippedArtifactInfo->WithMetadataValue('ArtifactType','NuGetPackage'))"
175175
RightKey="PackageId"
176176
RightMetadata="Version">
177177
<Output TaskParameter="JoinResult" ItemName="PackageArtifact" />
178-
</RepoTasks.JoinItems>
178+
</RepoTasks.JoinRepoItems>
179179

180180
<ItemGroup>
181181
<_PackageArtifactWithoutMatchingInfo Include="@(_Temp)" Exclude="@(PackageArtifact)" />

build/tasks/JoinItems.cs renamed to build/tasks/JoinRepoItems.cs

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

1111
namespace RepoTasks
1212
{
13-
public class JoinItems : Task
13+
public class JoinRepoItems : Task
1414
{
1515
[Required]
1616
public ITaskItem[] Left { get; set; }

build/tasks/RepoTasks.tasks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<UsingTask TaskName="RepoTasks.GenerateRestoreSourcesPropsFile" AssemblyFile="$(_RepoTaskAssembly)" />
77
<UsingTask TaskName="RepoTasks.GenerateGuid" AssemblyFile="$(_RepoTaskAssembly)" />
88
<UsingTask TaskName="RepoTasks.GetMsiProperty" AssemblyFile="$(_RepoTaskAssembly)" />
9-
<UsingTask TaskName="RepoTasks.JoinItems" AssemblyFile="$(_RepoTaskAssembly)" />
9+
<UsingTask TaskName="RepoTasks.JoinRepoItems" AssemblyFile="$(_RepoTaskAssembly)" />
1010
<UsingTask TaskName="RepoTasks.OrderBy" AssemblyFile="$(_RepoTaskAssembly)" />
1111
<UsingTask TaskName="RepoTasks.GenerateSharedFrameworkMetadataFiles" AssemblyFile="$(_RepoTaskAssembly)" />
1212
<UsingTask TaskName="RepoTasks.PublishToAzureBlob" AssemblyFile="$(_RepoTaskAssembly)" />

docs/BuildFromSource.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ Before opening our .sln files in Visual Studio or VS Code, you need to perform t
6161

6262
1. Executing the following on command-line:
6363
```
64-
.\build.cmd
64+
.\restore.cmd
6565
```
6666
This will download required tools and build the entire repository once. At that point, you should be able to open .sln files to work on the projects you care about.
6767

68-
2. Use the `startvs.cmd` script to open Visual Studio .sln files. This script first sets required environment variables.
68+
> :bulb: Pro tip: you will also want to run this command after pulling large sets of changes. On the master branch, we regularly update the versions of .NET Core SDK required to build the repo.
69+
> You will need to restart Visual Studio every time we update the .NET Core SDK.
6970
70-
> :bulb: Pro tip: you will also want to run this command after pulling large sets of changes. Visual Studio will only build projects in a solution file, and makes a best effort to use other files on disk. If you pull many changes, the files on disk may be stale and will need to re-build.
71+
2. Use the `startvs.cmd` script to open Visual Studio .sln files. This script first sets required environment variables.
7172

7273
### Solution files
7374

0 commit comments

Comments
 (0)