Skip to content

Commit

Permalink
Merge branch 'main' into merge/vs17.6-to-main
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKrivanek authored Jun 2, 2023
2 parents 1f831e5 + 159dcef commit 23abdf0
Show file tree
Hide file tree
Showing 266 changed files with 8,790 additions and 3,379 deletions.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ dotnet_diagnostic.IDE0049.severity = suggestion
# Use compound assignment
dotnet_diagnostic.IDE0054.severity = suggestion

# Fix formatting
dotnet_diagnostic.IDE0055.severity = suggestion

# Indexing can be simplified
dotnet_diagnostic.IDE0056.severity = suggestion

Expand Down Expand Up @@ -387,8 +390,11 @@ dotnet_diagnostic.IDE0241.severity = suggestion
# Struct can be made 'readonly'
dotnet_diagnostic.IDE0250.severity = suggestion

# Struct methods can be made 'readonly'
dotnet_diagnostic.IDE0251.severity = suggestion

# Null check can be simplified
dotnet_diagnostic.IDE0270.severity = suggestion

# naming rule violation
dotnet_diagnostic.IDE1006.severity = suggestion
dotnet_diagnostic.IDE1006.severity = suggestion
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/06_feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 💡 Feature Request
description: Suggest an idea for this project.
title: "[Feature Request]: "
labels: ["Feature Request"]
labels: ["Feature Request", "needs-triage"]
body:
- type: textarea
attributes:
Expand All @@ -24,4 +24,4 @@ body:
- type: textarea
attributes:
label: Alternative Designs
description: If you have an idea how to achieve this new feature, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
description: If you have an idea how to achieve this new feature, let us know that here. Please include any pointers to code, relevant changes, or related issues you know of.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,6 @@ stage1/

# .DS_Store for macOS
**/.DS_Store

# We keep launchSettings.json local
**/launchSettings.json
7 changes: 6 additions & 1 deletion .vsts-dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ jobs:
- job: FullReleaseOnWindows
displayName: "Windows Full Release (no bootstrap)"
pool:
vmImage: 'windows-2022'
${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCore-Public
demands: ImageOverride -equals windows.vs2022preview.amd64.open
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: VSEngSS-MicroBuild2022-1ES
demands: agent.os -equals Windows_NT
steps:
- task: BatchScript@1
displayName: cibuild.cmd
Expand Down
5 changes: 1 addition & 4 deletions .vsts-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ variables:
- name: SourceBranch
value: $(IbcSourceBranchName)
# If we're not on a vs* branch, use main as our optprof collection branch
# NOTE: the code is temporarily fixed. For the branches that should use opt-prof from the main branch we should use the latest working Opt-Prof collected from main 20230217.4.
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/heads/vs')) }}:
- name: OptProfDrop
value: 'OptimizationData/DotNet-msbuild-Trusted/main/20230217.4/7352286/1'
- name: SourceBranch
value: ''
value: main
# if OptProfDropName is set as a parameter, set OptProfDrop to the parameter and unset SourceBranch
- ${{ if ne(parameters.OptProfDropName, 'default') }}:
- name: OptProfDrop
Expand Down
4 changes: 0 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@
<MachineIndependentBuild>true</MachineIndependentBuild>
</PropertyGroup>

<PropertyGroup>
<AssemblyInformationCachePaths Condition="Exists('$(NetCoreRoot)sdk\$(NetCoreSdkVersion)\SdkPrecomputedAssemblyReferences.cache')">$(AssemblyInformationCachePaths);$(NetCoreRoot)sdk\$(NetCoreSdkVersion)\SDKPrecomputedAssemblyReferences.cache</AssemblyInformationCachePaths>
</PropertyGroup>

<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);*.log</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);*.binlog</DefaultItemExcludes>
Expand Down
34 changes: 0 additions & 34 deletions PublishToBlob.proj

This file was deleted.

2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
Expand Down
6 changes: 5 additions & 1 deletion documentation/ProjectReference-Protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ When `Clean`ing the output of a project, `CleanReferencedProjects` ensures that

## Targets required to be referenceable

These targets should exist in a project to be compatible with the common targets' `ProjectReference`. Some are called only conditionally.
These targets should exist in a project to be compatible with the common targets' `ProjectReference` (unless [marked with the `SkipNonexistentTargets='true'` metadatum](#targets-marked-with-skipnonexistenttargetstrue-metadatum)). Some are called only conditionally.

These targets are all defined in `Microsoft.Common.targets` and are defined in Microsoft SDKs. You should only have to implement them yourself if you require custom behavior or are authoring a project that doesn't import the common targets.

Expand Down Expand Up @@ -85,6 +85,10 @@ If implementing a project with an “outer” (determine what properties to pass
* As of 15.7, this is _optional_. If a project does not contain a `GetCopyToOutputDirectoryItems` target, projects that reference it will not copy any of its outputs to their own output folders, but the build can succeed.
* `Clean` should delete all outputs of the project.
* It is not called during a normal build, only during "Clean" and "Rebuild".

### Targets Marked With `SkipNonexistentTargets='true'` Metadatum
`GetTargetFrameworks` and `GetTargetFrameworksWithPlatformForSingleTargetFramework` are skippable if nonexistent since some project types (for example, `wixproj` projects) may not define them. See [this comment](https://github.com/dotnet/msbuild/blob/cc55017f88688cbe3f9aa810cdf44273adea76ea/src/Tasks/Microsoft.Managed.After.targets#L74-L77) for more details.

## Other protocol requirements

As with all MSBuild logic, targets can be added to do other work with `ProjectReference`s.
Expand Down
15 changes: 10 additions & 5 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ The folder contains collection of docs and references for MSBuild, detailed info
### Problems?

* [Rebuilding when nothing changed](wiki/Rebuilding-when-nothing-changed.md)
* [Controling References Behavior](wiki/Controlling-Dependencies-Behavior.md)
* [Something's wrong in my build](wiki/Something's-wrong-in-my-build.md)
* [Some gotchas around the Microsoft.Build.Framework project/assembly](wiki/Microsoft.Build.Framework.md)
* [GAC and MSBuild](wiki/UnGAC.md)
Expand All @@ -50,16 +51,17 @@ The folder contains collection of docs and references for MSBuild, detailed info
* [`ProjectReference`](ProjectReference-Protocol.md)
* [MSBuild Server](MSBuild-Server.md)
* [Low priority nodes](specs/low-priority-switch.md)
* [Threading in MSBuild worker nodes](specs/threading.md)
* [Nodes orchestration](wiki/Nodes-Orchestration.md)
* [Project cache plugin](specs/project-cache.md)
* [Support for remote host objects](specs/remote-host-object.md)
* [Static graph](specs/static-graph.md)
* [Single project isolated builds: implementation details](specs/single-project-isolated-builds.md)
* [Task isolation](specs/task-isolation-and-dependencies.md)
* [Threading in MSBuild worker nodes](specs/threading.md)
* [Target maps](wiki/Target-Maps.md)
* [Managing parallelism in MSBuild](specs/resource-management.md)
* [SDK resolution](specs/sdk-resolvers-algorithm.md)
* [Nodes orchestration](wiki/Nodes-Orchestration.md)
* [RAR core scenarios](specs/rar-core-scenarios.md)

### Tasks

Expand All @@ -74,11 +76,14 @@ The folder contains collection of docs and references for MSBuild, detailed info
* [Binary log](wiki/Binary-Log.md)
* [Live logger: how to opt in](livelogger/Opt-In-Mechanism.md)

## Designs

* [Resolve Assembly Reference as a service](design/rar-as-service.md)
## Archived Designs
* [Resolve Assembly Reference as a service](specs/rar-as-service.md)
* Prototype: https://github.com/dotnet/msbuild/issues/6193

## Proposed Designs
* [Packages Sourcing](specs/proposed/interactive-package-references.md)
* [Secrets Metadata](specs/proposed/security-metadata.md)

## Community contributions

* [MSBuild overview](Contributions/MSBuild-overview.md)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion documentation/specs/event-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ EventSource is primarily used to profile code. For MSBuild specifically, a major
| RarComputeClosure | Resolves references from, for example, properties to explicit values. Used in resolving assembly references (RAR). |
| RarLogResults | Logs the results from having resolved assembly references (RAR). |
| RarOverall | Initiates the process of resolving assembly references (RAR). |
| RarRemoveReferencesMarkedForExclusion | Removes blacklisted references from the reference table, putting primary and dependency references in invalid file lists. |
| RarRemoveReferencesMarkedForExclusion | Removes denylisted references from the reference table, putting primary and dependency references in invalid file lists. |
| RequestThreadProc | A function to requesting a new builder thread. |
| ReusableStringBuilderFactory | Uses and resizes (if necessary) of ReusableStringBuilders. |
| ReusableStringBuilderFactoryUnbalanced | Identifies improper usage from multiple threads or buggy code: multiple Gets were called without a Relase. |
Expand Down
Loading

0 comments on commit 23abdf0

Please sign in to comment.