From 289eb4c34ced7b329f99480ca5d622ae98990b57 Mon Sep 17 00:00:00 2001 From: Allison Chou Date: Wed, 3 Mar 2021 16:06:28 -0800 Subject: [PATCH 1/4] master -> main everywhere --- .github/ISSUE_TEMPLATE/analyzer-suggestion.md | 2 +- .vscode/launch.json | 2 +- CONTRIBUTING.md | 6 +- README.md | 28 ++++---- azure-pipelines-integration-lsp.yml | 8 +-- azure-pipelines-integration.yml | 8 +-- azure-pipelines-official.yml | 10 +-- azure-pipelines-richnav.yml | 2 +- azure-pipelines.yml | 8 +-- docs/Language Feature Status.md | 72 +++++++++---------- docs/analyzers/Analyzer Samples.md | 2 +- docs/analyzers/FixAllProvider.md | 6 +- docs/compilers/API Notes/6-11-20.md | 2 +- docs/compilers/CSharp/CommandLine.md | 6 +- ...Compiler Breaking Changes - post VS2017.md | 2 +- docs/compilers/CSharp/Unicode Version.md | 2 +- .../Dynamic Analysis/MetadataFormat.md | 6 +- docs/compilers/Visual Basic/CommandLine.md | 6 +- ...uilding, Debugging, and Testing on Unix.md | 14 ++-- ...ding, Debugging, and Testing on Windows.md | 2 +- docs/contributing/Compiler Test Plan.md | 2 +- .../Developing a Language Feature.md | 6 +- ...cumentation for IDE CodeStyle analyzers.md | 2 +- docs/contributing/Nullable Annotations.md | 2 +- .../DefaultInterfaceImplementation.md | 4 +- docs/features/ExpressionVariables.md | 2 +- docs/features/TopLevelStatements.md | 2 +- docs/features/async-main.md | 2 +- docs/features/deconstruction.md | 10 +-- docs/features/enhanced-using.md | 2 +- docs/features/nullable-reference-types.md | 16 ++--- docs/features/pdb-compilation-options.md | 4 +- docs/infrastructure/feature branches azure.md | 12 ++-- docs/specs/PortablePdb-Metadata.md | 2 +- docs/wiki/API-Changes.md | 6 +- docs/wiki/Building-Testing-and-Debugging.md | 2 +- docs/wiki/C#-Interactive-Walkthrough.md | 4 +- .../wiki/Changelog-for-C#-and-VB-compilers.md | 56 +++++++-------- docs/wiki/Compiler-release-process.md | 8 +-- docs/wiki/Contributing-Code.md | 12 ++-- docs/wiki/FAQ.md | 2 +- .../Getting-Started-C#-Semantic-Analysis.md | 2 +- ...etting-Started-C#-Syntax-Transformation.md | 4 +- .../Getting-Started-VB-Semantic-Analysis.md | 2 +- ...etting-Started-VB-Syntax-Transformation.md | 4 +- ...ed-Writing-a-Custom-Analyzer-&-Code-Fix.md | 12 ++-- ...ing-Started-on-Visual-Studio-2015-CTP-5.md | 2 +- ...ing-Started-on-Visual-Studio-2015-CTP-6.md | 2 +- ...g-Started-on-Visual-Studio-2015-Preview.md | 2 +- ...etting-Started-on-Visual-Studio-2015-RC.md | 2 +- .../Getting-Started-on-Visual-Studio-2015.md | 2 +- ...How-To-Write-a-C#-Analyzer-and-Code-Fix.md | 6 +- ...te-a-Visual-Basic-Analyzer-and-Code-Fix.md | 6 +- .../Languages-features-in-C#-6-and-VB-14.md | 4 +- docs/wiki/Linux-Instructions.md | 2 +- docs/wiki/Measuring-Compiler-Performance.md | 2 +- docs/wiki/NuGet-packages.md | 2 +- docs/wiki/README.md | 68 +++++++++--------- ...ording-performance-traces-with-PerfView.md | 2 +- ...l-Studio-crashes-and-performance-issues.md | 2 +- docs/wiki/Roadmap.md | 2 +- ...ng-Roslyn-compilations-in-.NET-Core-App.md | 2 +- docs/wiki/Samples-and-Walkthroughs.md | 18 ++--- docs/wiki/Syntax-Visualizer.md | 8 +-- docs/wiki/Troubleshooting-tips.md | 2 +- docs/wiki/VS-2015-RC-API-Changes.md | 2 +- eng/build-utils.ps1 | 2 +- eng/common/SigningValidation.proj | 2 +- eng/common/generate-graph-files.ps1 | 2 +- eng/common/internal-feed-operations.ps1 | 2 +- eng/common/internal-feed-operations.sh | 2 +- eng/common/native/CommonLibrary.psm1 | 2 +- eng/common/performance/performance-setup.ps1 | 2 +- eng/common/performance/performance-setup.sh | 4 +- eng/common/sdl/execute-all-sdl-tools.ps1 | 2 +- eng/common/sdl/init-sdl.ps1 | 2 +- eng/common/sdl/push-gdn.ps1 | 2 +- .../templates/post-build/post-build.yml | 4 +- .../templates/steps/perf-send-to-helix.yml | 4 +- eng/common/templates/steps/send-to-helix.yml | 4 +- eng/common/tools.ps1 | 2 +- eng/common/tools.sh | 2 +- eng/config/PublishData.json | 4 +- eng/config/globalconfigs/Common.globalconfig | 2 +- eng/test-build-correctness.ps1 | 4 +- .../CreateAndUploadNugetZip.ps1 | 2 +- scripts/generate-badges.ps1 | 4 +- scripts/merge-vs-deps.ps1 | 6 +- scripts/report-ci-times.ps1 | 4 +- ...dexOperatorDiagnosticAnalyzer.InfoCache.cs | 2 +- ...ngeOperatorDiagnosticAnalyzer.InfoCache.cs | 2 +- .../UseIndexOrRangeOperator/Helpers.cs | 6 +- .../BinaryOperatorOverloadResolution.cs | 4 +- .../UnaryOperatorOverloadResolution.cs | 2 +- .../Source/SourceTypeParameterSymbol.cs | 2 +- .../Emit/CodeGen/CodeGenDeconstructTests.cs | 2 +- .../CSharp/Test/Emit/PDB/PDBTests.cs | 2 +- .../Semantic/Semantics/InitOnlyMemberTests.cs | 2 +- .../Semantics/NullableReferenceTypesTests.cs | 4 +- .../Semantics/OverloadResolutionTests.cs | 10 +-- .../DefaultInterfaceImplementationTests.cs | 14 ++-- .../Microsoft.Managed.Core.targets | 2 +- .../Portable/CommandLine/CommonCompiler.cs | 2 +- .../CommandLine/SarifV1ErrorLogger.cs | 2 +- .../Core/Portable/DiaSymReader/Readme.md | 2 +- .../Portable/InternalUtilities/JsonWriter.cs | 2 +- .../MetadataReader/MetadataDecoder.cs | 2 +- src/Compilers/Core/Portable/SpecialType.cs | 2 +- .../CustomDebugInfoKind.cs | 4 +- ...arpRegexParserTests_DotnetNegativeTests.cs | 2 +- .../Core/Shared/Utilities/ThreadingContext.cs | 2 +- ...agedCallingConventionCompletionProvider.cs | 2 +- .../RegularExpressions/RegexCharClass.cs | 2 +- .../Lsif/Generator/Graph/DefinitionResult.cs | 2 +- src/Features/Lsif/Generator/Graph/Event.cs | 2 +- .../Generator/Graph/FoldingRangeResult.cs | 2 +- src/Features/Lsif/Generator/Graph/Item.cs | 2 +- .../Lsif/Generator/Graph/LsifDocument.cs | 2 +- .../Lsif/Generator/Graph/LsifProject.cs | 2 +- src/Features/Lsif/Generator/Graph/Range.cs | 2 +- .../Lsif/Generator/Graph/ReferenceResult.cs | 2 +- .../Lsif/Generator/Graph/ResultSet.cs | 2 +- src/Features/Lsif/Generator/README.md | 2 +- src/Tools/BuildBoss/README.md | 2 +- .../BuildBoss/StructuredLoggerCheckerUtil.cs | 2 +- .../CompilationOptionsReader.cs | 10 +-- src/Tools/Source/RunTests/TestRunner.cs | 2 +- .../CPS/AdditionalPropertyNames.cs | 2 +- .../VisualStudioWorkspaceContextService.cs | 2 +- .../Razor/RazorLanguageServiceClient.cs | 2 +- .../CodeGeneration/AttributeGenerator.cs | 2 +- .../CoreTest/UtilityTest/EditDistanceTests.cs | 2 +- .../Remote/Razor/ServiceHubServiceBase.cs | 2 +- .../Extensions/ExpressionSyntaxExtensions.cs | 2 +- 134 files changed, 354 insertions(+), 354 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/analyzer-suggestion.md b/.github/ISSUE_TEMPLATE/analyzer-suggestion.md index db5d8e1e1a1a6..bc850e748186b 100644 --- a/.github/ISSUE_TEMPLATE/analyzer-suggestion.md +++ b/.github/ISSUE_TEMPLATE/analyzer-suggestion.md @@ -22,4 +22,4 @@ Any more additional information you would like to add. **Documentation requirements:** -When this analyzer is implemented, it must be documented by following the steps at [Documentation for IDE CodeStyle analyzers](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Documentation%20for%20IDE%20CodeStyle%20analyzers.md). +When this analyzer is implemented, it must be documented by following the steps at [Documentation for IDE CodeStyle analyzers](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Documentation%20for%20IDE%20CodeStyle%20analyzers.md). diff --git a/.vscode/launch.json b/.vscode/launch.json index 5c446623b4d14..d7d14f82f8116 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,7 @@ { // Use IntelliSense to find out which attributes exist for C# debugging // Use hover for the description of the existing attributes - // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/main/debugger-launchjson.md "version": "0.2.0", "configurations": [ { diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7e279afd87fd4..7f642eb39dd7b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ Guidelines for contributing to the Roslyn repo. - **DO** submit issues for other features. This facilitates discussion of a feature separately from its implementation, and increases the acceptance rates for pull requests. - **DO NOT** submit large code formatting changes without discussing with the team first. -When you are ready to proceed with making a change, get set up to build (either on [Windows](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) or on [Unix](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Unix.md)) the code and familiarize yourself with our developer workflow. +When you are ready to proceed with making a change, get set up to build (either on [Windows](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) or on [Unix](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Unix.md)) the code and familiarize yourself with our developer workflow. These two blogs posts on contributing code to open source projects are good too: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza and [Don’t “Push” Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik. @@ -27,11 +27,11 @@ These two blogs posts on contributing code to open source projects are good too: ## Coding Style -The Roslyn project is a member of the [.NET Foundation](https://github.com/orgs/dotnet) and follows the same [developer guide](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md). The repo also includes [.editorconfig](http://editorconfig.org) files to help enforce this convention. Contributors should ensure they follow these guidelines when making submissions. +The Roslyn project is a member of the [.NET Foundation](https://github.com/orgs/dotnet) and follows the same [developer guide](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md). The repo also includes [.editorconfig](http://editorconfig.org) files to help enforce this convention. Contributors should ensure they follow these guidelines when making submissions. ### CSharp -- **DO** use the coding style outlined in the [.NET Runtime Coding Guidelines](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md) +- **DO** use the coding style outlined in the [.NET Runtime Coding Guidelines](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md) - **DO** use plain code to validate parameters at public boundaries. Do not use Contracts or magic helpers. ```csharp diff --git a/README.md b/README.md index 7fa4b7a5624aa..4c9cfcf9a8a02 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,11 @@ If you want to suggest a new feature for the C# or Visual Basic languages go her All work on the C# and Visual Basic compiler happens directly on [GitHub](https://github.com/dotnet/roslyn). Both core team members and external contributors send pull requests which go through the same review process. -If you are interested in fixing issues and contributing directly to the code base, a great way to get started is to ask some questions on [GitHub Discussions](https://github.com/dotnet/roslyn/discussions)! Then check out our [contributing guide](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) which covers the following: +If you are interested in fixing issues and contributing directly to the code base, a great way to get started is to ask some questions on [GitHub Discussions](https://github.com/dotnet/roslyn/discussions)! Then check out our [contributing guide](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) which covers the following: -- [Coding guidelines](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Contributing-Code.md) -- [The development workflow, including debugging and running tests](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) -- [Submitting pull requests](https://github.com/dotnet/roslyn/blob/master/CONTRIBUTING.md) +- [Coding guidelines](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Contributing-Code.md) +- [The development workflow, including debugging and running tests](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) +- [Submitting pull requests](https://github.com/dotnet/roslyn/blob/main/CONTRIBUTING.md) - Finding a bug to fix in the [IDE](https://aka.ms/roslyn-ide-bugs-help-wanted) or [Compiler](https://aka.ms/roslyn-compiler-bugs-help-wanted) - Finding a feature to implement in the [IDE](https://aka.ms/roslyn-ide-feature-help-wanted) or [Compiler](https://aka.ms/roslyn-compiler-feature-help-wanted) @@ -54,36 +54,36 @@ Visit [Roslyn Architecture Overview](https://docs.microsoft.com/en-us/dotnet/csh |Branch|Windows Debug|Windows Release|Unix Debug| |:--:|:--:|:--:|:--:| -**master**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Build_Windows_Debug&configuration=Build_Windows_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Build_Windows_Release&configuration=Build_Windows_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Build_Unix_Debug&configuration=Build_Unix_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)| -**master-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Build_Windows_Debug&configuration=Build_Windows_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Build_Windows_Release&configuration=Build_Windows_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Build_Unix_Debug&configuration=Build_Unix_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)| +**main**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Build_Windows_Debug&configuration=Build_Windows_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Build_Windows_Release&configuration=Build_Windows_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Build_Unix_Debug&configuration=Build_Unix_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)| +**main-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Build_Windows_Debug&configuration=Build_Windows_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Build_Windows_Release&configuration=Build_Windows_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Build_Unix_Debug&configuration=Build_Unix_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)| #### Desktop Unit Tests |Branch|Debug x86|Debug x64|Release x86|Release x64| |:--:|:--:|:--:|:--:|:--:| -**master**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_Desktop_Debug_32&configuration=Test_Windows_Desktop_Debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_Desktop_Debug_64&configuration=Test_Windows_Desktop_Debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_Desktop_Release_32&configuration=Test_Windows_Desktop_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_Desktop_Release_64&configuration=Test_Windows_Desktop_Release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)| -**master-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_Desktop_Debug_32&configuration=Test_Windows_Desktop_Debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_Desktop_Debug_64&configuration=Test_Windows_Desktop_Debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_Desktop_Release_32&configuration=Test_Windows_Desktop_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_Desktop_Release_64&configuration=Test_Windows_Desktop_Release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)| +**main**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_Desktop_Debug_32&configuration=Test_Windows_Desktop_Debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_Desktop_Debug_64&configuration=Test_Windows_Desktop_Debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_Desktop_Release_32&configuration=Test_Windows_Desktop_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_Desktop_Release_64&configuration=Test_Windows_Desktop_Release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)| +**main-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_Desktop_Debug_32&configuration=Test_Windows_Desktop_Debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_Desktop_Debug_64&configuration=Test_Windows_Desktop_Debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_Desktop_Release_32&configuration=Test_Windows_Desktop_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_Desktop_Release_64&configuration=Test_Windows_Desktop_Release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)| #### CoreClr Unit Tests |Branch|Windows Debug|Windows Release|Linux| |:--:|:--:|:--:|:--:| -**master**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_CoreClr_Debug&configuration=Test_Windows_CoreClr_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_CoreClr_Release&configuration=Test_Windows_CoreClr_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Linux_Debug&configuration=Test_Linux_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)| -**master-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_CoreClr_Debug&configuration=Test_Windows_CoreClr_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_CoreClr_Release&configuration=Test_Windows_CoreClr_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Linux_Debug&configuration=Test_Linux_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)| +**main**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_CoreClr_Debug&configuration=Test_Windows_CoreClr_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_CoreClr_Release&configuration=Test_Windows_CoreClr_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Linux_Debug&configuration=Test_Linux_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)| +**main-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_CoreClr_Debug&configuration=Test_Windows_CoreClr_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_CoreClr_Release&configuration=Test_Windows_CoreClr_Release&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Linux_Debug&configuration=Test_Linux_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)| #### Integration Tests |Branch|Debug x86|Debug x64|Release x86|Release x64 |:--:|:--:|:--:|:--:|:--:| -**master**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master&jobname=VS_Integration&configuration=VS_Integration%20debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master&jobname=VS_Integration&configuration=VS_Integration%20debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master&jobname=VS_Integration&configuration=VS_Integration%20release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master&jobname=VS_Integration&configuration=VS_Integration%20release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master&view=logs)| -**master-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=master-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=master-vs-deps&view=logs)| +**main**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main&jobname=VS_Integration&configuration=VS_Integration%20debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main&jobname=VS_Integration&configuration=VS_Integration%20debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main&jobname=VS_Integration&configuration=VS_Integration%20release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main&jobname=VS_Integration&configuration=VS_Integration%20release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main&view=logs)| +**main-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20debug_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20debug_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-integration-CI?branchname=main-vs-deps&jobname=VS_Integration&configuration=VS_Integration%20release_64&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=245&branchname=main-vs-deps&view=logs)| #### Misc Tests |Branch|Determinism|Build Correctness|Source build|Spanish|MacOS| |:--:|:--:|:--|:--:|:--:|:--:| -**master**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Correctness_Determinism&configuration=Correctness_Determinism&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Correctness_Build&configuration=Correctness_Build&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Correctness_SourceBuild&configuration=Correctness_SourceBuild&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_Windows_Desktop_Spanish_Release_32&configuration=Test_Windows_Desktop_Spanish_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master&jobname=Test_macOS_Debug&configuration=Test_macOS_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master&view=logs)| -**master-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Correctness_Determinism&configuration=Correctness_Determinism&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Correctness_Build&configuration=Correctness_Build&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Correctness_SourceBuild&configuration=Correctness_SourceBuild&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_Windows_Desktop_Spanish_Release_32&configuration=Test_Windows_Desktop_Spanish_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=master-vs-deps&jobname=Test_macOS_Debug&configuration=Test_macOS_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=master-vs-deps&view=logs)| +**main**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Correctness_Determinism&configuration=Correctness_Determinism&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Correctness_Build&configuration=Correctness_Build&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Correctness_SourceBuild&configuration=Correctness_SourceBuild&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_Windows_Desktop_Spanish_Release_32&configuration=Test_Windows_Desktop_Spanish_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main&jobname=Test_macOS_Debug&configuration=Test_macOS_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main&view=logs)| +**main-vs-deps**|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Correctness_Determinism&configuration=Correctness_Determinism&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Correctness_Build&configuration=Correctness_Build&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Correctness_SourceBuild&configuration=Correctness_SourceBuild&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_Windows_Desktop_Spanish_Release_32&configuration=Test_Windows_Desktop_Spanish_Release_32&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)|[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/dotnet/roslyn/roslyn-CI?branchname=main-vs-deps&jobname=Test_macOS_Debug&configuration=Test_macOS_Debug&label=build)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=15&branchname=main-vs-deps&view=logs)| [//]: # (End current test results) diff --git a/azure-pipelines-integration-lsp.yml b/azure-pipelines-integration-lsp.yml index fc876c6876797..d436a7353ad62 100644 --- a/azure-pipelines-integration-lsp.yml +++ b/azure-pipelines-integration-lsp.yml @@ -2,16 +2,16 @@ # Branches that trigger a build on commit trigger: -- master -- master-vs-deps +- main +- main-vs-deps - release/* - features/* - demos/* # Branches that trigger builds on PR pr: -- master -- master-vs-deps +- main +- main-vs-deps - release/* - features/* - demos/* diff --git a/azure-pipelines-integration.yml b/azure-pipelines-integration.yml index a6d60439c0d90..455f2809ccf90 100644 --- a/azure-pipelines-integration.yml +++ b/azure-pipelines-integration.yml @@ -1,15 +1,15 @@ # Branches that trigger a build on commit trigger: -- master -- master-vs-deps +- main +- main-vs-deps - release/* - features/* - demos/* # Branches that trigger builds on PR pr: -- master -- master-vs-deps +- main +- main-vs-deps - release/* - features/* - demos/* diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index 963d10df8f24c..73ba2711a1f41 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -100,20 +100,20 @@ stages: condition: and(succeeded(), ne(variables['PRNumber'], 'default')) - task: tagBuildOrRelease@0 - displayName: Tag master validation build + displayName: Tag main validation build inputs: type: 'Build' tags: | - MasterValidationBuild - condition: and(succeeded(), eq(variables['SourceBranchName'], 'master')) + MainValidationBuild + condition: and(succeeded(), eq(variables['SourceBranchName'], 'main')) - task: PowerShell@2 - displayName: Merge master-vs-deps into source branch + displayName: Merge main-vs-deps into source branch inputs: filePath: 'scripts\merge-vs-deps.ps1' ${{ if eq(variables['System.TeamProject'], 'internal') }}: arguments: '-accessToken $(dn-bot-dnceng-build-rw-code-rw)' - condition: and(succeeded(), eq(variables['SourceBranchName'], 'master')) + condition: and(succeeded(), eq(variables['SourceBranchName'], 'main')) - powershell: Write-Host "##vso[task.setvariable variable=VisualStudio.DropName]Products/$(System.TeamProject)/$(Build.Repository.Name)/$(SourceBranchName)/$(Build.BuildNumber)" displayName: Setting VisualStudio.DropName variable diff --git a/azure-pipelines-richnav.yml b/azure-pipelines-richnav.yml index f2f8f6ed712a6..6652eb3757fae 100644 --- a/azure-pipelines-richnav.yml +++ b/azure-pipelines-richnav.yml @@ -1,5 +1,5 @@ trigger: -- master +- main pr: none jobs: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7e912c94695ab..180fc555895ce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,15 +1,15 @@ # Branches that trigger a build on commit trigger: -- master -- master-vs-deps +- main +- main-vs-deps - release/* - features/* - demos/* # Branches that trigger builds on PR pr: -- master -- master-vs-deps +- main +- main-vs-deps - release/* - features/* - demos/* diff --git a/docs/Language Feature Status.md b/docs/Language Feature Status.md index e77488bef3d5a..06818036ed03c 100644 --- a/docs/Language Feature Status.md +++ b/docs/Language Feature Status.md @@ -15,22 +15,22 @@ efforts behind them. | [File-scoped namespace](https://github.com/dotnet/csharplang/issues/137) | [FileScopedNamespaces](https://github.com/dotnet/roslyn/tree/features/FileScopedNamespaces) | In Progress | [chsienki](https://github.com/chsienki) | [cston](https://github.com/cston), [RikkiGibson](https://github.com/RikkiGibson) | [CyrusNajmabadi](https://github.com/CyrusNajmabadi) | | [Interpolated string improvements](https://github.com/dotnet/csharplang/issues/2302) | [interpolated-string](https://github.com/dotnet/roslyn/tree/features/interpolated-string) | [In Progress](https://github.com/dotnet/roslyn/issues/51499) | [333fred](https://github.com/333fred) | [AlekseyTs](https://github.com/AlekseyTs), [chsienki](https://github.com/chsienki) | [jaredpar](https://github.com/jaredpar) | | [Parameterless struct constructors](https://github.com/dotnet/csharplang/issues/99) | TBD | In Progress | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv), [333fred](https://github.com/333fred) | [jcouv](https://github.com/jouv) | -| [nameof(parameter)](https://github.com/dotnet/csharplang/issues/373) | master | [In Progress](https://github.com/dotnet/roslyn/issues/40524) | [jcouv](https://github.com/jcouv) | TBD | [jcouv](https://github.com/jcouv) | +| [nameof(parameter)](https://github.com/dotnet/csharplang/issues/373) | main | [In Progress](https://github.com/dotnet/roslyn/issues/40524) | [jcouv](https://github.com/jcouv) | TBD | [jcouv](https://github.com/jcouv) | | [Improved Definite Assignment](https://github.com/dotnet/csharplang/issues/4465) | [improved-definite-assignment](https://github.com/dotnet/roslyn/tree/features/improved-definite-assignment) | [In Progress](https://github.com/dotnet/roslyn/issues/51463) | [RikkiGibson](https://github.com/RikkiGibson) | [jcouv](https://github.com/jcouv) | [jaredpar](https://github.com/jaredpar) | | [Relax ordering of `ref` and `partial` modifiers](https://github.com/dotnet/csharplang/issues/946) | [ref-partial](https://github.com/dotnet/roslyn/tree/features/ref-partial) | In Progress | [alrz](https://github.com/alrz) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | | [Parameter null-checking](https://github.com/dotnet/csharplang/issues/2145) | [param-nullchecking](https://github.com/dotnet/roslyn/tree/features/param-nullchecking) | [In Progress](https://github.com/dotnet/roslyn/issues/36024) | [fayrose](https://github.com/fayrose) | [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) | | [Caller expression attribute](https://github.com/dotnet/csharplang/issues/287) | [caller-expression](https://github.com/dotnet/roslyn/tree/features/caller-expression) | Prototype | [alrz](https://github.com/alrz) | [jcouv](https://github.com/jcouv) | [jcouv](https://github.com/jcouv) | | [Generic attributes](https://github.com/dotnet/csharplang/issues/124) | [generic-attributes](https://github.com/dotnet/roslyn/tree/features/generic-attributes) | [In Progress](https://github.com/dotnet/roslyn/issues/36285) | [AviAvni](https://github.com/AviAvni) | [agocke](https://github.com/agocke) | [mattwar](https://github.com/mattwar) | | [Default in deconstruction](https://github.com/dotnet/roslyn/pull/25562) | [decon-default](https://github.com/dotnet/roslyn/tree/features/decon-default) | [Implemented](https://github.com/dotnet/roslyn/issues/25559) | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | -| [Constant Interpolated Strings](https://github.com/dotnet/csharplang/issues/2951) | master | [Merged into 16.9p3](https://github.com/dotnet/roslyn/pull/49676) | [kevinsun-dev](https://github.com/kevinsun-dev) | [333fred](https://github.com/333fred) | [jaredar](https://github.com/jaredpar), [agocke](https://github.com/agocke) | -| [Mix declarations and variables in deconstruction](https://github.com/dotnet/csharplang/issues/125) | master | [Merged into 16.10](https://github.com/dotnet/roslyn/issues/47746) | [YairHalberstadt ](https://github.com/YairHalberstadt) | [jcouv](https://github.com/jcouv) | [MadsTorgersen](https://github.com/MadsTorgersen) | +| [Constant Interpolated Strings](https://github.com/dotnet/csharplang/issues/2951) | main | [Merged into 16.9p3](https://github.com/dotnet/roslyn/pull/49676) | [kevinsun-dev](https://github.com/kevinsun-dev) | [333fred](https://github.com/333fred) | [jaredar](https://github.com/jaredpar), [agocke](https://github.com/agocke) | +| [Mix declarations and variables in deconstruction](https://github.com/dotnet/csharplang/issues/125) | main | [Merged into 16.10](https://github.com/dotnet/roslyn/issues/47746) | [YairHalberstadt ](https://github.com/YairHalberstadt) | [jcouv](https://github.com/jcouv) | [MadsTorgersen](https://github.com/MadsTorgersen) | | [List patterns](https://github.com/dotnet/csharplang/issues/3435) | [list-patterns](https://github.com/dotnet/roslyn/tree/features/list-patterns) | [In Progress](https://github.com/dotnet/roslyn/issues/51289) | [alrz](https://github.com/alrz) | [333fred](https://github.com/333fred) (tentative) | [333fred](https://github.com/333fred) | # VB 16.9 | Feature | Branch | State | Developers | Reviewer | LDM Champ | |-------------------------------------------------------------------------------------------|--------|------------------------------------------------------------------|-------------------------------------------|-----------------------------------|-----------| -| [Enable consumption of init-only properties](https://github.com/dotnet/roslyn/pull/50414) | master | [Merged (16.9p3)](https://github.com/dotnet/roslyn/issues/50792) | [AlekseyTs](https://github.com/AlekseyTs) | [jcouv](https://github.com/jcouv) | N/A | +| [Enable consumption of init-only properties](https://github.com/dotnet/roslyn/pull/50414) | main | [Merged (16.9p3)](https://github.com/dotnet/roslyn/issues/50792) | [AlekseyTs](https://github.com/AlekseyTs) | [jcouv](https://github.com/jcouv) | N/A | # C# 9 @@ -38,36 +38,36 @@ efforts behind them. |----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|------------------------------------------------------------------------------|------------------------------------------------------------------------------------|-----------------------------------------| | [Target-typed new](https://github.com/dotnet/csharplang/issues/100) | [target-typed-new](https://github.com/dotnet/roslyn/tree/features/target-typed-new) | [Merged into 16.7p1](https://github.com/dotnet/roslyn/issues/28489) | [alrz](https://github.com/alrz) | [jcouv](https://github.com/jcouv) | [jcouv](https://github.com/jcouv) | | [Skip locals init](https://github.com/dotnet/csharplang/issues/1738) | [localsinit](https://github.com/dotnet/roslyn/tree/features/localsinit) | [Merged](https://github.com/dotnet/roslyn/issues/25780) | [t-camaia](https://github.com/t-camaia), [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) | [agocke](https://github.com/agocke) | -| [Lambda discard parameters](https://github.com/dotnet/csharplang/issues/111) | master | [Merged](https://github.com/dotnet/roslyn/issues/38820) | [jcouv](https://github.com/jcouv) | [AlekseyTs](https://github.com/AlekseyTs), [chsienki](https://github.com/chsienki) | [jcouv](https://github.com/jcouv) | +| [Lambda discard parameters](https://github.com/dotnet/csharplang/issues/111) | main | [Merged](https://github.com/dotnet/roslyn/issues/38820) | [jcouv](https://github.com/jcouv) | [AlekseyTs](https://github.com/AlekseyTs), [chsienki](https://github.com/chsienki) | [jcouv](https://github.com/jcouv) | | [Native ints](https://github.com/dotnet/csharplang/issues/435) | [features/NativeInt](https://github.com/dotnet/roslyn/tree/features/NativeInt) | [Merged into 16.7p1](https://github.com/dotnet/roslyn/issues/38821) | [cston](https://github.com/cston) | [333fred](https://github.com/333fred), [gafter](https://github.com/gafter) | [jaredpar](https://github.com/jaredpar) | | [Attributes on local functions](https://github.com/dotnet/csharplang/issues/1888) | [features/local-function-attributes](https://github.com/dotnet/roslyn/tree/features/local-function-attributes) | [Merged](https://github.com/dotnet/roslyn/issues/38801) | [RikkiGibson](https://github.com/RikkiGibson) | [agocke](https://github.com/agocke) | [agocke](https://github.com/agocke) | | [Function pointers](https://github.com/dotnet/csharplang/issues/191) | [function-pointers](https://github.com/dotnet/roslyn/tree/features/function-pointers) | [Merged into 16.7p3](https://github.com/dotnet/roslyn/issues/43321) | [333fred](https://github.com/333fred) | [AlekseyTs](https://github.com/AlekseyTs) | [jaredpar](https://github.com/jaredpar) | -| [Pattern matching improvements](https://github.com/dotnet/csharplang/issues/2850) | master | [Merged into 16.7p1](https://github.com/dotnet/roslyn/issues/40727) | [gafter](https://github.com/gafter) | [RikkiGibson](https://github.com/RikkiGibson),[agocke](https://github.com/agocke) | [gafter](https://github.com/gafter) | +| [Pattern matching improvements](https://github.com/dotnet/csharplang/issues/2850) | main | [Merged into 16.7p1](https://github.com/dotnet/roslyn/issues/40727) | [gafter](https://github.com/gafter) | [RikkiGibson](https://github.com/RikkiGibson),[agocke](https://github.com/agocke) | [gafter](https://github.com/gafter) | | [Static lambdas](https://github.com/dotnet/csharplang/issues/275) | [features/static-lambdas](https://github.com/dotnet/roslyn/tree/features/static-lambdas) | [Merged in 16.7p4](https://github.com/dotnet/roslyn/issues/39606) | [CyrusNajmabadi](https://github.com/CyrusNajmabadi) | [jcouv](https://github.com/jcouv) | [jcouv](https://github.com/jcouv) | | [Records](https://github.com/dotnet/csharplang/issues/39) | [features/records](https://github.com/dotnet/roslyn/tree/features/records) | [Merged into 16.7p3](https://github.com/dotnet/roslyn/issues/40726) | [agocke](https://github.com/agocke) | [gafter](https://github.com/gafter), [333fred](https://github.com/333fred) | [agocke](https://github.com/agocke) | | [Target-typed conditional](https://github.com/dotnet/csharplang/issues/2460) | [features/target-typing](https://github.com/dotnet/roslyn/tree/features/target-typing) | [Merged into 16.7p4](https://github.com/dotnet/roslyn/issues/43186) | [gafter](https://github.com/gafter) | [agocke](https://github.com/agocke), [RikkiGibson](https://github.com/RikkiGibson) | [gafter](https://github.com/gafter) | | [Covariant](https://github.com/dotnet/csharplang/issues/49) [Returns](https://github.com/dotnet/csharplang/issues/2844) | [features/covariant-returns](https://github.com/dotnet/roslyn/tree/features/covariant-returns) | [Merged into 16.8p2](https://github.com/dotnet/roslyn/issues/43188) | [gafter](https://github.com/gafter) | [AlekseyTs](https://github.com/AlekseyTs), [agocke](https://github.com/agocke) | [gafter](https://github.com/gafter) | | [Extension GetEnumerator](https://github.com/dotnet/csharplang/issues/3194) | [features/extension-foreach](https://github.com/dotnet/roslyn/tree/features/extension-foreach) | [Merged into 16.8p2](https://github.com/dotnet/roslyn/issues/43184) | [YairHalberstadt](https://github.com/YairHalberstadt) | [333fred](https://github.com/333fred) | [333fred](https://github.com/333fred) | -| [Module initializers](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/module-initializers.md) | [features/module-initializers](https://github.com/dotnet/roslyn/tree/features/module-initializers) | [Merged in 16.7p4](https://github.com/dotnet/roslyn/issues/40500) | [RikkiGibson](https://github.com/RikkiGibson) [jnm2](https://github.com/jnm2)| [AlekseyTs](https://github.com/AlekseyTs) | [gafter](https://github.com/gafter) | -| [Extending Partial](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/extending-partial-methods.md) | [features/partial-methods](https://github.com/dotnet/roslyn/tree/features/partial-methods) | [Merged into 16.7p2](https://github.com/dotnet/roslyn/issues/43795) | [RikkiGibson](https://github.com/RikkiGibson) | [chsienki](https://github.com/chsienki) | [jaredpar](https://github.com/jaredpar) | -| [Top-level statements](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/top-level-statements.md) | [features/SimplePrograms](https://github.com/dotnet/roslyn/tree/features/SimplePrograms) | [Merged into 16.7p3](https://github.com/dotnet/roslyn/issues/43563) | [AlekseyTs](https://github.com/AlekseyTs) | [cston](https://github.com/cston), [RikkiGibson](https://github.com/RikkiGibson) | [MadsTorgersen](https://github.com/MadsTorgersen) | +| [Module initializers](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/module-initializers.md) | [features/module-initializers](https://github.com/dotnet/roslyn/tree/features/module-initializers) | [Merged in 16.7p4](https://github.com/dotnet/roslyn/issues/40500) | [RikkiGibson](https://github.com/RikkiGibson) [jnm2](https://github.com/jnm2)| [AlekseyTs](https://github.com/AlekseyTs) | [gafter](https://github.com/gafter) | +| [Extending Partial](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/extending-partial-methods.md) | [features/partial-methods](https://github.com/dotnet/roslyn/tree/features/partial-methods) | [Merged into 16.7p2](https://github.com/dotnet/roslyn/issues/43795) | [RikkiGibson](https://github.com/RikkiGibson) | [chsienki](https://github.com/chsienki) | [jaredpar](https://github.com/jaredpar) | +| [Top-level statements](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/top-level-statements.md) | [features/SimplePrograms](https://github.com/dotnet/roslyn/tree/features/SimplePrograms) | [Merged into 16.7p3](https://github.com/dotnet/roslyn/issues/43563) | [AlekseyTs](https://github.com/AlekseyTs) | [cston](https://github.com/cston), [RikkiGibson](https://github.com/RikkiGibson) | [MadsTorgersen](https://github.com/MadsTorgersen) | # C# 8.0 | Feature | Branch | State | Developers | Reviewer | LDM Champ | | ------- | ------ | ----- | ---------- | -------- | --------- | -| [Default Interface Methods](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/default-interface-methods.md) | master | [Merged to dev16.1 preview2](https://github.com/dotnet/roslyn/issues/19217) | [AlekseyTs](https://github.com/AlekseyTs) | [gafter](https://github.com/gafter) | [gafter](https://github.com/gafter) | -| [Nullable reference type](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/nullable-reference-types-specification.md) | master | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/22152) | [cston](https://github.com/cston), [jcouv](https://github.com/jcouv) | [AlekseyTs](https://github.com/AlekseyTs), [333fred](https://github.com/333fred) | [mattwar](https://github.com/mattwar) | -| [Recursive patterns](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/patterns.md) | master | [Merged to dev16.0 preview2](https://github.com/dotnet/roslyn/issues/25935) | [gafter](https://github.com/gafter) | [agocke](https://github.com/agocke), [cston](https://github.com/cston) | [gafter](https://github.com/gafter) | -| [Async streams](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/async-streams.md) | master | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/24037) | [jcouv](https://github.com/jcouv) | [agocke](https://github.com/agocke) | [stephentoub](https://github.com/stephentoub) | -| [Enhanced using](https://github.com/dotnet/csharplang/issues/1623) | master | [Merged to dev16.0 preview2](https://github.com/dotnet/roslyn/issues/28588) | [chsienki](https://github.com/chsienki) | [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) | -| [Ranges](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md) | master | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/23205) | [agocke](https://github.com/agocke) | [cston](https://github.com/cston) | [jaredpar](https://github.com/jaredpar) | -| [Null-coalescing Assignment](https://github.com/dotnet/csharplang/issues/34) | master | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/29168) | [333fred](https://github.com/333fred) | [cston](https://github.com/cston) | [gafter](https://github.com/gafter) -| [Alternative interpolated verbatim strings](https://github.com/dotnet/csharplang/issues/1630) | master | Merged to dev16.0 preview1 | [jcouv](https://github.com/jcouv) | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv) -| [stackalloc in nested contexts](https://github.com/dotnet/csharplang/issues/1412) | master | Merged to dev16.2 preview1 | [gafter](https://github.com/gafter) | - | [gafter](https://github.com/gafter) -| [Unmanaged generic structs](https://github.com/dotnet/csharplang/issues/1744) | master | [Merged to dev16.1 preview1](https://github.com/dotnet/roslyn/issues/31374) | [RikkiGibson](https://github.com/RikkiGibson) | - | [jaredpar](https://github.com/jaredpar) | -| [Static local functions](https://github.com/dotnet/csharplang/issues/1565) | master | [Merged in dev16.0 preview2](https://github.com/dotnet/roslyn/issues/32069) | [cston](https://github.com/cston) | [jaredpar](https://github.com/jaredpar) | [jcouv](https://github.com/jcouv) -| [Readonly members](https://github.com/dotnet/csharplang/issues/1710) | master | [Merged to dev16.1 preview2](https://github.com/dotnet/roslyn/issues/32911) | [RikkiGibson](https://github.com/RikkiGibson) | TBD | [jaredpar](https://github.com/jaredpar) +| [Default Interface Methods](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/default-interface-methods.md) | main | [Merged to dev16.1 preview2](https://github.com/dotnet/roslyn/issues/19217) | [AlekseyTs](https://github.com/AlekseyTs) | [gafter](https://github.com/gafter) | [gafter](https://github.com/gafter) | +| [Nullable reference type](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/nullable-reference-types-specification.md) | main | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/22152) | [cston](https://github.com/cston), [jcouv](https://github.com/jcouv) | [AlekseyTs](https://github.com/AlekseyTs), [333fred](https://github.com/333fred) | [mattwar](https://github.com/mattwar) | +| [Recursive patterns](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/patterns.md) | main | [Merged to dev16.0 preview2](https://github.com/dotnet/roslyn/issues/25935) | [gafter](https://github.com/gafter) | [agocke](https://github.com/agocke), [cston](https://github.com/cston) | [gafter](https://github.com/gafter) | +| [Async streams](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/async-streams.md) | main | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/24037) | [jcouv](https://github.com/jcouv) | [agocke](https://github.com/agocke) | [stephentoub](https://github.com/stephentoub) | +| [Enhanced using](https://github.com/dotnet/csharplang/issues/1623) | main | [Merged to dev16.0 preview2](https://github.com/dotnet/roslyn/issues/28588) | [chsienki](https://github.com/chsienki) | [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) | +| [Ranges](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md) | main | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/23205) | [agocke](https://github.com/agocke) | [cston](https://github.com/cston) | [jaredpar](https://github.com/jaredpar) | +| [Null-coalescing Assignment](https://github.com/dotnet/csharplang/issues/34) | main | [Merged to dev16.0 preview1](https://github.com/dotnet/roslyn/issues/29168) | [333fred](https://github.com/333fred) | [cston](https://github.com/cston) | [gafter](https://github.com/gafter) +| [Alternative interpolated verbatim strings](https://github.com/dotnet/csharplang/issues/1630) | main | Merged to dev16.0 preview1 | [jcouv](https://github.com/jcouv) | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv) +| [stackalloc in nested contexts](https://github.com/dotnet/csharplang/issues/1412) | main | Merged to dev16.2 preview1 | [gafter](https://github.com/gafter) | - | [gafter](https://github.com/gafter) +| [Unmanaged generic structs](https://github.com/dotnet/csharplang/issues/1744) | main | [Merged to dev16.1 preview1](https://github.com/dotnet/roslyn/issues/31374) | [RikkiGibson](https://github.com/RikkiGibson) | - | [jaredpar](https://github.com/jaredpar) | +| [Static local functions](https://github.com/dotnet/csharplang/issues/1565) | main | [Merged in dev16.0 preview2](https://github.com/dotnet/roslyn/issues/32069) | [cston](https://github.com/cston) | [jaredpar](https://github.com/jaredpar) | [jcouv](https://github.com/jcouv) +| [Readonly members](https://github.com/dotnet/csharplang/issues/1710) | main | [Merged to dev16.1 preview2](https://github.com/dotnet/roslyn/issues/32911) | [RikkiGibson](https://github.com/RikkiGibson) | TBD | [jaredpar](https://github.com/jaredpar) # VB 16.0 @@ -82,43 +82,43 @@ efforts behind them. | ------- | ------ | ----- | ---------- | -------- | --------- | | [blittable](https://github.com/dotnet/csharplang/pull/206) | None | Merged | None | - | [jaredpar](https://github.com/jaredpar) | | [Support == and != for tuples](https://github.com/dotnet/csharplang/issues/190) | [tuple-equality](https://github.com/dotnet/roslyn/tree/features/tuple-equality) | Merged | [jcouv](https://github.com/jcouv) | [AlekseyTs](https://github.com/AlekseyTs) | [jcouv](https://github.com/jcouv) | -| strongname | master | Merged | [tyoverby](https://github.com/tyoverby) | [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) | +| strongname | main | Merged | [tyoverby](https://github.com/tyoverby) | [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) | | [Attribute on backing field](https://github.com/dotnet/csharplang/issues/42) | features/compiler | Merged | [jcouv](https://github.com/jcouv) | [AlekseyTs](https://github.com/AlekseyTs) | [jcouv](https://github.com/jcouv) | | Ref Reassignment | [ref-reassignment](https://github.com/dotnet/roslyn/tree/features/ref-reassignment) | Merged | [agocke](https://github.com/agocke) | [vsadov](https://github.com/vsadov) | [gafter](https://github.com/gafter) | | Constraints | [constraints](https://github.com/dotnet/roslyn/tree/features/constraints) | Merged | [OmarTawfik](https://github.com/OmarTawfik) | [vsadov](https://github.com/vsadov) | [gafter](https://github.com/gafter) | | [Stackalloc initializers](https://github.com/dotnet/csharplang/issues/1286) | [stackalloc-init](https://github.com/dotnet/roslyn/tree/features/stackalloc-init) | Merged | [alrz](https://github.com/alrz) | [vsadov](https://github.com/vsadov) | [jcouv](https://github.com/jcouv) | | [Custom fixed](https://github.com/dotnet/csharplang/issues/1314) | [custom-fixed](https://github.com/dotnet/roslyn/tree/features/custom-fixed) | Merged | [vsadov](https://github.com/vsadov) | [jcouv](https://github.com/jcouv) | [jarepdar](https://github.com/jaredpar) | -| [Indexing movable fixed buffers](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/indexing-movable-fixed-fields.md) | - | Merged | [vsadov](https://github.com/vsadov) | [jcouv](https://github.com/jcouv) | [jarepdar](https://github.com/jaredpar) | +| [Indexing movable fixed buffers](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/indexing-movable-fixed-fields.md) | - | Merged | [vsadov](https://github.com/vsadov) | [jcouv](https://github.com/jcouv) | [jarepdar](https://github.com/jaredpar) | | [Improved overload candidates](https://github.com/dotnet/csharplang/issues/98) | features/compiler | Merged | [gafter](https://github.com/gafter) | [cston](https://github.com/cston) | [mattwar](https://github.com/mattwar) | -| [Expression variables](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/expression-variables-in-initializers.md) | [features/ExpressionVariables](https://github.com/dotnet/roslyn/tree/features/ExpressionVariables) | Merged | [AlekseyTs](https://github.com/AlekseyTs) | [gafter](https://github.com/gafter) | [AlekseyTs](https://github.com/AlekseyTs) | +| [Expression variables](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/expression-variables-in-initializers.md) | [features/ExpressionVariables](https://github.com/dotnet/roslyn/tree/features/ExpressionVariables) | Merged | [AlekseyTs](https://github.com/AlekseyTs) | [gafter](https://github.com/gafter) | [AlekseyTs](https://github.com/AlekseyTs) | # C# 7.2 fixes | Feature | Branch | State | Developers | Reviewer | LDM Champ | | ------- | ------ | ----- | ---------- | -------- | --------- | | [`ref` and `this` ordering in ref extension](https://github.com/dotnet/roslyn/pull/23643) | - | Merged | [alrz](https://github.com/alrz) | - | - | -| [Tiebreaker for by-val and `in` overloads](https://github.com/dotnet/roslyn/pull/23122) | master | Merged | [OmarTawfik](https://github.com/OmarTawfik) | - | - | +| [Tiebreaker for by-val and `in` overloads](https://github.com/dotnet/roslyn/pull/23122) | main | Merged | [OmarTawfik](https://github.com/OmarTawfik) | - | - | # C# 7.2 | Feature | Branch | State | Developers | Reviewer | LDM Champ | | ------- | ------ | ----- | ---------- | -------- | --------- | -| [ref readonly](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.2/readonly-ref.md) | master | Merged | [vsadov](https://github.com/vsadov), [OmarTawfik](https://github.com/OmarTawfik) | [cston](https://github.com/cston),[gafter](https://github.com/gafter) | [jaredpar](https://github.com/jaredpar) | -| [interior pointer/Span/ref struct](https://github.com/dotnet/csharplang/pull/264) | master | Merged | [vsadov](https://github.com/vsadov) | [gafter](https://github.com/gafter), [jaredpar](https://github.com/jaredpar) | [jaredpar](https://github.com/jaredpar) | -| [non-trailing named arguments](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.2/non-trailing-named-arguments.md) | master | Merged | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | -| [private protected](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.2/private-protected.md) | master | Merged | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | -| [conditional ref operator](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.2/conditional-ref.md) | master | Merged | [vsadov](https://github.com/vsadov) | [cston](https://github.com/cston) | [jaredpar](https://github.com/jaredpar) | -| [Digit separator after base specifier](https://github.com/dotnet/roslyn/pull/20449) | master | Merged | [alrz](https://github.com/alrz) | - | [gafter](https://github.com/gafter) | +| [ref readonly](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.2/readonly-ref.md) | main | Merged | [vsadov](https://github.com/vsadov), [OmarTawfik](https://github.com/OmarTawfik) | [cston](https://github.com/cston),[gafter](https://github.com/gafter) | [jaredpar](https://github.com/jaredpar) | +| [interior pointer/Span/ref struct](https://github.com/dotnet/csharplang/pull/264) | main | Merged | [vsadov](https://github.com/vsadov) | [gafter](https://github.com/gafter), [jaredpar](https://github.com/jaredpar) | [jaredpar](https://github.com/jaredpar) | +| [non-trailing named arguments](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.2/non-trailing-named-arguments.md) | main | Merged | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | +| [private protected](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.2/private-protected.md) | main | Merged | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | +| [conditional ref operator](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.2/conditional-ref.md) | main | Merged | [vsadov](https://github.com/vsadov) | [cston](https://github.com/cston) | [jaredpar](https://github.com/jaredpar) | +| [Digit separator after base specifier](https://github.com/dotnet/roslyn/pull/20449) | main | Merged | [alrz](https://github.com/alrz) | - | [gafter](https://github.com/gafter) | # C# 7.1 | Feature | Branch | State | Developers | Reviewer | LDM Champ | | ------- | ------ | ----- | ---------- | -------- | --------- | -| [Async Main](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/async-main.md) | master | Merged | [tyoverby](https://github.com/tyoverby) | [vsadov](https://github.com/vsadov) | [stephentoub](https://github.com/stephentoub) | -| [Default Expressions](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/target-typed-default.md) | master | Merged | [jcouv](https://github.com/jcouv) | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv) | -| [Ref Assemblies](https://github.com/dotnet/roslyn/blob/master/docs/features/refout.md) | master | Merged (IDE and project-system integrations ongoing) | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | N/A | -| [Infer tuple names](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/infer-tuple-names.md) | master | Merged | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | -| [Pattern-matching with generics](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/generics-pattern-match.md) | master | Merged | [gafter](https://github.com/gafter) | [agocke](https://github.com/agocke) | [gafter](https://github.com/gafter) | +| [Async Main](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/async-main.md) | main | Merged | [tyoverby](https://github.com/tyoverby) | [vsadov](https://github.com/vsadov) | [stephentoub](https://github.com/stephentoub) | +| [Default Expressions](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/target-typed-default.md) | main | Merged | [jcouv](https://github.com/jcouv) | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv) | +| [Ref Assemblies](https://github.com/dotnet/roslyn/blob/main/docs/features/refout.md) | main | Merged (IDE and project-system integrations ongoing) | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | N/A | +| [Infer tuple names](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/infer-tuple-names.md) | main | Merged | [jcouv](https://github.com/jcouv) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) | +| [Pattern-matching with generics](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/generics-pattern-match.md) | main | Merged | [gafter](https://github.com/gafter) | [agocke](https://github.com/agocke) | [gafter](https://github.com/gafter) | # FAQ diff --git a/docs/analyzers/Analyzer Samples.md b/docs/analyzers/Analyzer Samples.md index 6c6e9dc41689c..463a53d7287b2 100644 --- a/docs/analyzers/Analyzer Samples.md +++ b/docs/analyzers/Analyzer Samples.md @@ -1,6 +1,6 @@ **Samples Location:** -Sample analyzers to demonstrate recommended implementation models for different analysis scenarios have been added to [Samples.sln](https://github.com/dotnet/roslyn-sdk/tree/master/Samples.sln). +Sample analyzers to demonstrate recommended implementation models for different analysis scenarios have been added to [Samples.sln](https://github.com/dotnet/roslyn-sdk/tree/main/Samples.sln). **Description:** diff --git a/docs/analyzers/FixAllProvider.md b/docs/analyzers/FixAllProvider.md index 29b41cbe3bdc3..c6b947950fb72 100644 --- a/docs/analyzers/FixAllProvider.md +++ b/docs/analyzers/FixAllProvider.md @@ -54,7 +54,7 @@ Selecting an Equivalence key for code actions Each unique equivalence key for a code fixer defines a unique equivalence class of code actions. Equivalence key of the trigger code action is part of the `FixAllContext` and is used to determine the FixAll occurrences code fix. Normally, you can use the **'title'** of the code action as the equivalence key. However, there are cases where you may desire to have different values. Let us take an example to get a better understanding. -Let us consider the [C# SimplifyTypeNamesCodeFixProvider](https://github.com/dotnet/roslyn/blob/master/src/Features/CSharp/Portable/SimplifyTypeNames/SimplifyTypeNamesCodeFixProvider.cs) that registers multiple code actions and also has FixAll support. This code fixer offers fixes to simplify the following expressions: +Let us consider the [C# SimplifyTypeNamesCodeFixProvider](https://github.com/dotnet/roslyn/blob/main/src/Features/CSharp/Portable/SimplifyTypeNames/SimplifyTypeNamesCodeFixProvider.cs) that registers multiple code actions and also has FixAll support. This code fixer offers fixes to simplify the following expressions: - `this` expressions of the form 'this.x' to 'x'. - Qualified type names of the form 'A.B' to 'B'. - Member access expressions of the form 'A.M' to 'M'. @@ -69,7 +69,7 @@ It uses the below equivalence keys for its registered code actions to get the de - Qualified type name simplification: Formatted resource string "Simplify type name A.B", which explicitly includes the contents of the node being simplified. - Member access expressions: Formatted resource string "Simplify type name A.M", which explicitly includes the contents of the node being simplified. -Note that '`this` expression simplification' fix requires a different kind of an equivalence class from the other two simplifications. See method [GetCodeActionId](https://github.com/dotnet/roslyn/blob/master/src/Features/Core/Portable/ImplementAbstractClass/AbstractImplementAbstractClassCodeFixProvider.cs) for the actual implementation. +Note that '`this` expression simplification' fix requires a different kind of an equivalence class from the other two simplifications. See method [GetCodeActionId](https://github.com/dotnet/roslyn/blob/main/src/Features/Core/Portable/ImplementAbstractClass/AbstractImplementAbstractClassCodeFixProvider.cs) for the actual implementation. To summarize, use the equivalence key that best suits the category of fixes to be applied as part of a FixAll operation. @@ -117,4 +117,4 @@ Following guidelines should help in the implementation: - **GetSupportedFixAllScopes:** Virtual method to get all the supported FixAll scopes. By default, it returns all the three supported scopes: document, project and solution scopes. Generally, you need not override this method. However, you may do so if you wish to support a subset of these scopes. - **GetSupportedFixAllDiagnosticIds:** Virtual method to get all the fixable diagnostic ids. By default, it returns the underlying code fixer's `FixableDiagnosticIds`. Generally, you need not override this method. However, you may do so if you wish to support FixAll only for a subset of these ids. -See [DeclarePublicAPIFix](https://github.com/dotnet/roslyn-analyzers/blob/master/src/PublicApiAnalyzers/Core/CodeFixes/DeclarePublicApiFix.cs) for an example implementation of a custom FixAllProvider. +See [DeclarePublicAPIFix](https://github.com/dotnet/roslyn-analyzers/blob/main/src/PublicApiAnalyzers/Core/CodeFixes/DeclarePublicApiFix.cs) for an example implementation of a custom FixAllProvider. diff --git a/docs/compilers/API Notes/6-11-20.md b/docs/compilers/API Notes/6-11-20.md index c3dd3d10823e6..d572cd8ad0f3e 100644 --- a/docs/compilers/API Notes/6-11-20.md +++ b/docs/compilers/API Notes/6-11-20.md @@ -1,6 +1,6 @@ ### `BaseTypeSyntax` Design -In master, we currently have added an optional argument list to `SimpleBaseTypeSyntax` for record primary constructors. However, there is an argument to be made that we should add a new subtype of `BaseTypeSyntax`, something like `PrimaryConstructorTypeSyntax`, to represent these new base type clauses. This was an explicit extension point added in the original design for this very purpose. For either of these designs, GetSymbolInfo will behave consistently: if the `BaseTypeSyntax` has an argument list (either because it's a separate type or because it's a `PrimaryConstructorTypeSyntax`), it will return the constructor symbol or candidates as appropriate. If there are no arguments, then it will return nothing. +In main, we currently have added an optional argument list to `SimpleBaseTypeSyntax` for record primary constructors. However, there is an argument to be made that we should add a new subtype of `BaseTypeSyntax`, something like `PrimaryConstructorTypeSyntax`, to represent these new base type clauses. This was an explicit extension point added in the original design for this very purpose. For either of these designs, GetSymbolInfo will behave consistently: if the `BaseTypeSyntax` has an argument list (either because it's a separate type or because it's a `PrimaryConstructorTypeSyntax`), it will return the constructor symbol or candidates as appropriate. If there are no arguments, then it will return nothing. Pros for keeping the optional argument list on `SimpleBaseTypeSyntax`: * The primary constructor arguments feel like an extension to existing nodes, not a totally new node type diff --git a/docs/compilers/CSharp/CommandLine.md b/docs/compilers/CSharp/CommandLine.md index d4fbccf54894b..7a6ceaff28995 100644 --- a/docs/compilers/CSharp/CommandLine.md +++ b/docs/compilers/CSharp/CommandLine.md @@ -32,9 +32,9 @@ | `/debug`{`+`|`-`} | Emit (or do not Emit) debugging information | `/debug`:`full` | Emit debugging information to .pdb file using default format for the current platform: _Windows PDB_ on Windows, _Portable PDB_ on other systems | `/debug`:`pdbonly` | Same as `/debug:full`. For backward compatibility. -| `/debug`:`portable` | Emit debugging information to to .pdb file using cross-platform [Portable PDB format](https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md) -| `/debug`:`embedded` | Emit debugging information into the .dll/.exe itself (.pdb file is not produced) using [Portable PDB format](https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md). -| `/sourcelink`:*file* | [Source link](https://github.com/dotnet/core/blob/master/Documentation/diagnostics/source_link.md) info to embed into PDB. +| `/debug`:`portable` | Emit debugging information to to .pdb file using cross-platform [Portable PDB format](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/portable_pdb.md) +| `/debug`:`embedded` | Emit debugging information into the .dll/.exe itself (.pdb file is not produced) using [Portable PDB format](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/portable_pdb.md). +| `/sourcelink`:*file* | [Source link](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/source_link.md) info to embed into PDB. | `/optimize`{`+`|`-`} | Enable optimizations (Short form: `/o`) | `/deterministic` | Produce a deterministic assembly (including module version GUID and timestamp) | `/refonly` | Produce a reference assembly, instead of a full assembly, as the primary output diff --git a/docs/compilers/CSharp/Compiler Breaking Changes - post VS2017.md b/docs/compilers/CSharp/Compiler Breaking Changes - post VS2017.md index 013a093ad2370..ed167822f2a7d 100644 --- a/docs/compilers/CSharp/Compiler Breaking Changes - post VS2017.md +++ b/docs/compilers/CSharp/Compiler Breaking Changes - post VS2017.md @@ -133,7 +133,7 @@ Example: `error CS8313: A default literal 'default' is not valid as a case constant. Use another literal (e.g. '0' or 'null') as appropriate. If you intended to write the default label, use 'default:' without 'case'.` - Visual Studio 2017 version 15.7: https://github.com/dotnet/roslyn/issues/25399 C# compiler will now produce errors if partial methods parameters have different ref-kinds in implementation vs definition. - Visual Studio 2017 version 15.7: https://github.com/dotnet/roslyn/issues/23525 C# compiler will now produce errors if there was an invalid pdbpath supplied to an embedded pdb, instead of just writing it to the binary. -- Visutal Studio 2017 version 15.7: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/tuple-equality.md#compatibility The "tuple equality" features (in C# 7.3) introduces built-in operators `==` and `!=` on tuple types. Those built-in operators take precedence over user-defined comparison operators on a custom `ValueTuple` type. +- Visutal Studio 2017 version 15.7: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/tuple-equality.md#compatibility The "tuple equality" features (in C# 7.3) introduces built-in operators `==` and `!=` on tuple types. Those built-in operators take precedence over user-defined comparison operators on a custom `ValueTuple` type. - Visual Studio 2017 version 15.8: https://github.com/dotnet/roslyn/issues/22455 C# compiler will now produce errors if there was an "in" or an "out" argument to an "__arglist" call. "out" was always allowed, and "in" was introduced in 15.5. - Visual Studio 2017 version 15.8: https://github.com/dotnet/roslyn/pull/27882 C# compiler will now produce errors on ref assigning a local to a parameter with a wider escape scope if it was a ref-like type. diff --git a/docs/compilers/CSharp/Unicode Version.md b/docs/compilers/CSharp/Unicode Version.md index 1dcec22139863..168ab9069f3cb 100644 --- a/docs/compilers/CSharp/Unicode Version.md +++ b/docs/compilers/CSharp/Unicode Version.md @@ -6,4 +6,4 @@ The Roslyn compilers depend on the underlying platform for their Unicode behavio For example, the Unicode Katakana Middle Dot "・" (U+30FB) no longer works in identifiers in C# 6. Its Unicode class was Pc (Punctuation, Connector) in Unicode 5.1 or older, but it changed to Po (Punctuation, Other) in Unicode 6.0. -See also https://github.com/ufcpp/UfcppSample/blob/master/BreakingChanges/VS2015_CS6/KatakanaMiddleDot.cs \ No newline at end of file +See also https://github.com/ufcpp/UfcppSample/blob/main/BreakingChanges/VS2015_CS6/KatakanaMiddleDot.cs \ No newline at end of file diff --git a/docs/compilers/Dynamic Analysis/MetadataFormat.md b/docs/compilers/Dynamic Analysis/MetadataFormat.md index 4814d14c94002..74d44131ad629 100644 --- a/docs/compilers/Dynamic Analysis/MetadataFormat.md +++ b/docs/compilers/Dynamic Analysis/MetadataFormat.md @@ -1,7 +1,7 @@ # Dynamic Analysis Metadata Format Specification (v 0.2) ### Overview -The format is based on concepts defined in the ECMA-335 Partition II metadata standard and in [Portable PDB format](https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md). +The format is based on concepts defined in the ECMA-335 Partition II metadata standard and in [Portable PDB format](https://github.com/dotnet/corefx/blob/main/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md). ## Metadata Layout @@ -112,7 +112,7 @@ Each _span-record_ represents a single _Span_. When decoding the blob the _Docum The values of _Start Line_, _Start Column_, _End Line_ and _End Column_ of a Span are calculated based upon the values of the previous Span (if any) and the data stored in the record. - - - -**Note** This encoding is similar to encoding of [sequence points blob](https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#SequencePointsBlob) in Portable PDB format. +**Note** This encoding is similar to encoding of [sequence points blob](https://github.com/dotnet/corefx/blob/main/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#SequencePointsBlob) in Portable PDB format. - - - ### Document Name Blob @@ -129,7 +129,7 @@ where The document name is a concatenation of the _parts_ separated by the _separator_. - - - -**Note** This encoding is the same as the encoding of [document name blob](https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#DocumentNameBlob) in Portable PDB format. +**Note** This encoding is the same as the encoding of [document name blob](https://github.com/dotnet/corefx/blob/main/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#DocumentNameBlob) in Portable PDB format. - - - diff --git a/docs/compilers/Visual Basic/CommandLine.md b/docs/compilers/Visual Basic/CommandLine.md index c9ac6b34d0af1..1d8ad96271d49 100644 --- a/docs/compilers/Visual Basic/CommandLine.md +++ b/docs/compilers/Visual Basic/CommandLine.md @@ -31,9 +31,9 @@ | `/debug`{`+`|`-`} | Emit debugging information. | `/debug`:`full` | Emit debugging information to .pdb file using default format for the current platform: _Windows PDB_ on Windows, _Portable PDB_ on other systems | `/debug`:`pdbonly` | Same as `/debug:full`. For backward compatibility. -| `/debug`:`portable` | Emit debugging information to to .pdb file using cross-platform [Portable PDB format](https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md) -| `/debug`:`embedded` | Emit debugging information into the .dll/.exe itself (.pdb file is not produced) using [Portable PDB format](https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md). -| `/sourcelink`:*file* | [Source link](https://github.com/dotnet/core/blob/master/Documentation/diagnostics/source_link.md) info to embed into PDB. +| `/debug`:`portable` | Emit debugging information to to .pdb file using cross-platform [Portable PDB format](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/portable_pdb.md) +| `/debug`:`embedded` | Emit debugging information into the .dll/.exe itself (.pdb file is not produced) using [Portable PDB format](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/portable_pdb.md). +| `/sourcelink`:*file* | [Source link](https://github.com/dotnet/core/blob/main/Documentation/diagnostics/source_link.md) info to embed into PDB. | `/optimize`{`+`|`-`} | Enable optimizations. | `/removeintchecks`{`+`|`-`} | Remove integer checks. Default off. | `/debug:full` | Emit full debugging information (default). diff --git a/docs/contributing/Building, Debugging, and Testing on Unix.md b/docs/contributing/Building, Debugging, and Testing on Unix.md index 4a9ebe5c4467f..c5aa407b43044 100644 --- a/docs/contributing/Building, Debugging, and Testing on Unix.md +++ b/docs/contributing/Building, Debugging, and Testing on Unix.md @@ -12,7 +12,7 @@ Particularly for developers who aren't experienced with .NET Core development on 1. Install [VS Code](https://code.visualstudio.com/Download) - After you install VS Code, install the [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp) - Important tip: You can look up editor commands by name by hitting *Ctrl+Shift+P*, or by hitting *Ctrl+P* and typing a `>` character. This will help you get familiar with editor commands mentioned below. On a Mac, use *⌘* instead of *Ctrl*. -2. Install a recent preview [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core). At time of writing, Roslyn uses .NET 5 preview 8. The exact version in use is recorded in our [global.json](https://github.com/dotnet/roslyn/blob/master/global.json) file. +2. Install a recent preview [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core). At time of writing, Roslyn uses .NET 5 preview 8. The exact version in use is recorded in our [global.json](https://github.com/dotnet/roslyn/blob/main/global.json) file. 3. You can build from VS Code by running the *Run Build Task* command, then selecting an appropriate task such as *build* or *build current project* (the latter builds the containing project for the current file you're viewing in the editor). 4. You can run tests from VS Code by opening a test class in the editor, then using the *Run Tests in Context* and *Debug Tests in Context* editor commands. You may want to bind these commands to keyboard shortcuts that match their Visual Studio equivalents (**Ctrl+R, T** for *Run Tests in Context* and **Ctrl+R, Ctrl+T** for *Debug Tests in Context*). @@ -34,14 +34,14 @@ with it then lldb debugging will be pretty straight forward. The [dotnet/diagnostics](https://github.com/dotnet/diagnostics) repo has more information: -- [Getting LLDB](https://github.com/dotnet/diagnostics/blob/master/documentation/lldb/linux-instructions.md) -- [Installing SOS](https://github.com/dotnet/diagnostics/blob/master/documentation/installing-sos-instructions.md) -- [Using SOS](https://github.com/dotnet/diagnostics/blob/master/documentation/sos-debugging-extension.md) +- [Getting LLDB](https://github.com/dotnet/diagnostics/blob/main/documentation/lldb/linux-instructions.md) +- [Installing SOS](https://github.com/dotnet/diagnostics/blob/main/documentation/installing-sos-instructions.md) +- [Using SOS](https://github.com/dotnet/diagnostics/blob/main/documentation/sos-debugging-extension.md) CoreCLR also has some guidelines for specific Linux debugging scenarios: -- https://github.com/dotnet/coreclr/blob/master/Documentation/botr/xplat-minidump-generation.md -- https://github.com/dotnet/coreclr/blob/master/Documentation/building/debugging-instructions.md#debugging-core-dumps-with-lldb. +- https://github.com/dotnet/coreclr/blob/main/Documentation/botr/xplat-minidump-generation.md +- https://github.com/dotnet/coreclr/blob/main/Documentation/building/debugging-instructions.md#debugging-core-dumps-with-lldb. Corrections: - LLDB and createdump must be run as root @@ -58,7 +58,7 @@ environment variables that you want a core dump to be produced. The simplest set This will cause full memory dumps to be produced which can then be loaded into LLDB. -A preview of [dotnet-dump](https://github.com/dotnet/diagnostics/blob/master/documentation/dotnet-dump-instructions.md) is also available for interactively creating and analyzing dumps. +A preview of [dotnet-dump](https://github.com/dotnet/diagnostics/blob/main/documentation/dotnet-dump-instructions.md) is also available for interactively creating and analyzing dumps. ### GC stress failures When you suspect there is a GC failure related to your test then you can use the following environment variables diff --git a/docs/contributing/Building, Debugging, and Testing on Windows.md b/docs/contributing/Building, Debugging, and Testing on Windows.md index 8a1c95d0d9ffa..da05840c42b92 100644 --- a/docs/contributing/Building, Debugging, and Testing on Windows.md +++ b/docs/contributing/Building, Debugging, and Testing on Windows.md @@ -178,4 +178,4 @@ under `AppData`, not from `Program File`). ## Contributing -Please see [Contributing Code](https://github.com/dotnet/roslyn/blob/master/CONTRIBUTING.md) for details on contributing changes back to the code. +Please see [Contributing Code](https://github.com/dotnet/roslyn/blob/main/CONTRIBUTING.md) for details on contributing changes back to the code. diff --git a/docs/contributing/Compiler Test Plan.md b/docs/contributing/Compiler Test Plan.md index e95c920c667b3..f628a1d8e242b 100644 --- a/docs/contributing/Compiler Test Plan.md +++ b/docs/contributing/Compiler Test Plan.md @@ -117,7 +117,7 @@ Interaction with IDE, Debugger, and EnC should be worked out with relevant teams - "go to", Find All References, and renaming - cref comments - UpgradeProject code fixer - - More: [IDE Test Plan](https://github.com/dotnet/roslyn/blob/master/docs/contributing/IDE%20Test%20Plan.md) + - More: [IDE Test Plan](https://github.com/dotnet/roslyn/blob/main/docs/contributing/IDE%20Test%20Plan.md) - Debugger / EE - Stepping, setting breakpoints diff --git a/docs/contributing/Developing a Language Feature.md b/docs/contributing/Developing a Language Feature.md index baad8fa4f6a14..b5655df0440c8 100644 --- a/docs/contributing/Developing a Language Feature.md +++ b/docs/contributing/Developing a Language Feature.md @@ -60,13 +60,13 @@ The intent of this document is to codify the process used by the Language Team t Community members who wish to drive a particular feature can request so by commenting on an accepted feature speclet. Even when driven by a community member, a language prototype will occupy a non-trivial amount of time by the Language Team. Hence we will likely only grant this request to community members who have been actively contributing to the project in smaller areas. ## Frequently Asked Questions -- **Can feature branches be rebased?**: This is left to the discretion of the developer working on the feature. Once the feature is merged into a main branch (master, feature) then rebasing is no longer allowed. +- **Can feature branches be rebased?**: This is left to the discretion of the developer working on the feature. Once the feature is merged into a main branch (main, feature) then rebasing is no longer allowed. - **Why was my language feature PR closed?**: Language features will not be accepted as direct PRs to a main branch. Even simple features are too involved for senior Language Team members to complete in this fashion. Features need to follow the above process in order to be incorporated into the language. -- **Why are features disabled by default?**: Language features spend a considerable amount of time in the same branch as our shipping product which is often master. The master branch of Roslyn is kept in a ship ready state at all times. To facilitate this all features which haven't been fully accepted into the language must be disabled. +- **Why are features disabled by default?**: Language features spend a considerable amount of time in the same branch as our shipping product which is often main. The main branch of Roslyn is kept in a ship ready state at all times. To facilitate this all features which haven't been fully accepted into the language must be disabled. -- **What is the difference between the feature and master branches?**: The master branch represents code which will ship in updates to the current version of the compiler. The feature branches represents each feature which are still in progress, therefore not merged yet. +- **What is the difference between the feature and main branches?**: The main branch represents code which will ship in updates to the current version of the compiler. The feature branches represents each feature which are still in progress, therefore not merged yet. - **Why weren't speclets filed for early features?**: Features such as tuples and local functions were done before this process was fully developed. Their speclets were considered internally and eventually became the `docs/feature/` file. diff --git a/docs/contributing/Documentation for IDE CodeStyle analyzers.md b/docs/contributing/Documentation for IDE CodeStyle analyzers.md index 46e9397e27b73..a1c727b1a0ef6 100644 --- a/docs/contributing/Documentation for IDE CodeStyle analyzers.md +++ b/docs/contributing/Documentation for IDE CodeStyle analyzers.md @@ -2,7 +2,7 @@ ## Overview -1. Official documentation for all [IDE analyzer diagnostic IDs](../../src/Analyzers/Core/Analyzers/IDEDiagnosticIds.cs) is added to `dotnet/docs` repo at . +1. Official documentation for all [IDE analyzer diagnostic IDs](../../src/Analyzers/Core/Analyzers/IDEDiagnosticIds.cs) is added to `dotnet/docs` repo at . 2. Each IDE diagnostic ID has a dedicated documentation page. For example: 1. Diagnostic with code style option: diff --git a/docs/contributing/Nullable Annotations.md b/docs/contributing/Nullable Annotations.md index 2b49f2e810cce..48345fbeb7511 100644 --- a/docs/contributing/Nullable Annotations.md +++ b/docs/contributing/Nullable Annotations.md @@ -1,7 +1,7 @@ # Nullable Annotations This document describes how nullable annotations should be approached in the -Roslyn code base. The default is to simply follow [the same guidance](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/api-guidelines/nullability.md) +Roslyn code base. The default is to simply follow [the same guidance](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/api-guidelines/nullability.md) as the [dotnet/runtime](github.com/dotnet/runtime) repository. This document serves to detail the places where the guidance differs for Roslyn and re-emphasize rules that come up frequently. diff --git a/docs/features/DefaultInterfaceImplementation.md b/docs/features/DefaultInterfaceImplementation.md index c5eed78b6afcd..ef260d578eaca 100644 --- a/docs/features/DefaultInterfaceImplementation.md +++ b/docs/features/DefaultInterfaceImplementation.md @@ -3,7 +3,7 @@ Default Interface Implementation The *Default Interface Implementation* feature enables a default implementation of an interface member to be provided as part of the interface declaration. -Here is a link to the proposal https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/default-interface-methods.md. +Here is a link to the proposal https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/default-interface-methods.md. **What is supported:** - Supplying an implementation along with declaration of a regular interface method and recognizing that implementation as default implementation for the method when a type implements the interface. @@ -90,7 +90,7 @@ In metadata, methods representing re-abstraction have all three flags `abstract` - Declaring operators ```+ - ! ~ ++ -- true false * / % & | ^ << >> > < >= <=``` in interfaces. - Base access -The following forms of base-access are added (https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-11-14.md) +The following forms of base-access are added (https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-11-14.md) ``` base ( ) . identifier base ( ) [ argument-list ] diff --git a/docs/features/ExpressionVariables.md b/docs/features/ExpressionVariables.md index 9564f0eb6ee23..b8bdaba9d3e44 100644 --- a/docs/features/ExpressionVariables.md +++ b/docs/features/ExpressionVariables.md @@ -6,7 +6,7 @@ containing expression variables (out variable declarations and declaration patte initializers, property initializers, ctor-initializers, and query clauses. See https://github.com/dotnet/csharplang/issues/32 and -https://github.com/dotnet/csharplang/blob/master/proposals/expression-variables-in-initializers.md +https://github.com/dotnet/csharplang/blob/main/proposals/expression-variables-in-initializers.md for more information. Current state of the feature: diff --git a/docs/features/TopLevelStatements.md b/docs/features/TopLevelStatements.md index 9e87bd77602d7..d79b8d5040844 100644 --- a/docs/features/TopLevelStatements.md +++ b/docs/features/TopLevelStatements.md @@ -15,7 +15,7 @@ static class Program } ``` -Proposal: https://github.com/dotnet/csharplang/blob/master/proposals/top-level-statements.md +Proposal: https://github.com/dotnet/csharplang/blob/main/proposals/top-level-statements.md Open issues and TODOs are tracked at https://github.com/dotnet/roslyn/issues/41704. Test plan: https://github.com/dotnet/roslyn/issues/43563. See also https://github.com/dotnet/csharplang/issues/3117. diff --git a/docs/features/async-main.md b/docs/features/async-main.md index b98068cd8c603..8f4308fd12d1f 100644 --- a/docs/features/async-main.md +++ b/docs/features/async-main.md @@ -1,5 +1,5 @@ # Async Task Main -## [dotnet/csharplang proposal](https://github.com/dotnet/csharplang/blob/master/proposals/async-main.md) +## [dotnet/csharplang proposal](https://github.com/dotnet/csharplang/blob/main/proposals/async-main.md) ## Technical Details diff --git a/docs/features/deconstruction.md b/docs/features/deconstruction.md index 8c770966c5df4..3905afc6f48fb 100644 --- a/docs/features/deconstruction.md +++ b/docs/features/deconstruction.md @@ -188,15 +188,15 @@ foreach_variable_statement // new **References** -[C# Design Notes for Oct 25-26, 2016](https://github.com/dotnet/csharplang/blob/master/meetings/2016/LDM-2016-10-25-26.md) +[C# Design Notes for Oct 25-26, 2016](https://github.com/dotnet/csharplang/blob/main/meetings/2016/LDM-2016-10-25-26.md) -[C# Design Notes for Sep 6, 2016](https://github.com/dotnet/csharplang/blob/master/meetings/2016/LDM-2016-09-06.md) +[C# Design Notes for Sep 6, 2016](https://github.com/dotnet/csharplang/blob/main/meetings/2016/LDM-2016-09-06.md) -[C# Design Notes for July 13, 2016](https://github.com/dotnet/csharplang/blob/master/meetings/2016/LDM-2016-07-13.md) +[C# Design Notes for July 13, 2016](https://github.com/dotnet/csharplang/blob/main/meetings/2016/LDM-2016-07-13.md) -[C# Design Notes for May 3-4, 2016](https://github.com/dotnet/csharplang/blob/master/meetings/2016/LDM-2016-05-03-04.md) +[C# Design Notes for May 3-4, 2016](https://github.com/dotnet/csharplang/blob/main/meetings/2016/LDM-2016-05-03-04.md) -[C# Design Notes for Apr 12-22, 2016](https://github.com/dotnet/csharplang/blob/master/meetings/2016/LDM-2016-04-12-22.md) +[C# Design Notes for Apr 12-22, 2016](https://github.com/dotnet/csharplang/blob/main/meetings/2016/LDM-2016-04-12-22.md) [Design for declaration expressions](https://github.com/dotnet/csharplang/issues/365) diff --git a/docs/features/enhanced-using.md b/docs/features/enhanced-using.md index d332164da26ca..7310717410abc 100644 --- a/docs/features/enhanced-using.md +++ b/docs/features/enhanced-using.md @@ -8,7 +8,7 @@ Enhanced using consists of several related features that aim to make the disposa - _[Pattern-based disposal for ref structs](#Pattern-based-disposal-for-ref-structs)_ allows `ref struct`s to opt into disposal without needing to implement the `IDisposable` interface. -__See__: the [corresponding proposal](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/using.md) in CSharpLang. +__See__: the [corresponding proposal](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/using.md) in CSharpLang. ## Using Declarations diff --git a/docs/features/nullable-reference-types.md b/docs/features/nullable-reference-types.md index 4d1e7e087ae42..094b26eb4d5b1 100644 --- a/docs/features/nullable-reference-types.md +++ b/docs/features/nullable-reference-types.md @@ -92,7 +92,7 @@ Invocation of methods annotated with the following attributes will also affect f - `[DoesNotReturnIf(bool)]` (e.g. `[DoesNotReturnIf(false)]` for `Debug.Assert`) and `[DoesNotReturn]` - `[NotNullIfNotNull(string)]` - member post-conditions: `[MemberNotNull(params string[])]` and `[MemberNotNullWhen(bool, params string[])]` -See https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-05-15.md +See https://github.com/dotnet/csharplang/blob/main/meetings/2019/LDM-2019-05-15.md The `Interlocked.CompareExchange` methods have special handling in flow analysis instead of being annotated due to the complexity of their nullability semantics. The affected overloads include: - `static object? System.Threading.Interlocked.CompareExchange(ref object? location, object? value, object? comparand)` @@ -203,7 +203,7 @@ var z = (IEnumerable)x; // no warning ### Method type inference -We modify the spec rule for [Fixing](https://github.com/dotnet/csharplang/blob/master/spec/expressions.md#fixing "Fixing") to take account of types that may be equivalent (i.e. have an identity conversion) yet may not be identical in the set of bounds. The existing spec says (third bullet) +We modify the spec rule for [Fixing](https://github.com/dotnet/csharplang/blob/main/spec/expressions.md#fixing "Fixing") to take account of types that may be equivalent (i.e. have an identity conversion) yet may not be identical in the set of bounds. The existing spec says (third bullet) > If among the remaining candidate types `Uj` there is a unique type `V` from which there is an implicit conversion to all the other candidate types, then `Xi` is fixed to `V`. @@ -297,7 +297,7 @@ This is not yet reflected in the language specification for nullable reference t ## Type parameters A `class?` constraint is allowed, which, like class, requires the type argument to be a reference type, but allows it to be nullable. [Nullable strawman](https://github.com/dotnet/csharplang/issues/790) -[4/25/18](https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-04-25.md) +[4/25/18](https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-04-25.md) Explicit `object` (or `System.Object`) constraints of any nullability are disallowed. However, type substitution can lead to `object!` or `object~` constraints to appear among the constraint types, when their nullability is significant by comparison to @@ -307,16 +307,16 @@ An unconstrained (here it means - no type constraints, and no `class`, `struct`, equivalent to one constrained by `object?` when it is declared in a context where nullable annotations are enabled. If annotations are disabled, the type parameter is essentially equivalent to one constrained by `object~`. The context is determined at the identifier that declares the type parameter within a type parameter list. -[4/25/18](https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-04-25.md) +[4/25/18](https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-04-25.md) Note, the `object`/`System.Object` constraint is represented in metadata as any other type constraint, the type is System.Object. An explicit `notnull` constraint is allowed, which requires the type to be non-nullable (value or reference type). -[5/15/19](https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-05-15.md) +[5/15/19](https://github.com/dotnet/csharplang/blob/main/meetings/2019/LDM-2019-05-15.md) The rules to determine when it is a named type constraint or a special `notnull` constraint are similar to rules for `unmanaged`. Similarly, it is valid only at the first position in constraints list. A warning is reported for nullable type argument for type parameter with `class` constraint or non-nullable reference type or interface type constraint. -[4/25/18](https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-04-25.md) +[4/25/18](https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-04-25.md) ```c# static void F1() where T : class { } static void F2() where T : Stream { } @@ -326,7 +326,7 @@ F2(); // warning F3(); // warning ``` Type parameter constraints may include nullable reference type and interface types. -[4/25/18](https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-04-25.md) +[4/25/18](https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-04-25.md) ```c# static void F2 where T : Stream? { } static void F3() where T : IDisposable? { } @@ -334,7 +334,7 @@ F2(); // ok F3(); // ok ``` A warning is reported for inconsistent top-level nullability of constraint types. -[4/25/18](https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-04-25.md) +[4/25/18](https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-04-25.md) ```c# static void F4 where T : class, Stream? { } // warning static void F5 where T : Stream?, IDisposable { } // warning diff --git a/docs/features/pdb-compilation-options.md b/docs/features/pdb-compilation-options.md index 05aaee4996a01..28416d76f94f9 100644 --- a/docs/features/pdb-compilation-options.md +++ b/docs/features/pdb-compilation-options.md @@ -12,13 +12,13 @@ This document is restricted to the following assumptions: 3. Any storage capacity used for PDBs and source should not impact this feature, such as compression algorithm. 4. Only Portable PDB files will be included for this spec. This feature can be expanded past these once it is implemented and proven needed elsewhere. -This document will provide the expanded specification to the Portable PDB format. Any additions to that format will be ported to expand documentation provided in [dotnet-runtime](https://github.com/dotnet/runtime/blob/master/docs/design/specs/PortablePdb-Metadata.md). +This document will provide the expanded specification to the Portable PDB format. Any additions to that format will be ported to expand documentation provided in [dotnet-runtime](https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md). ## PDB Format Additions #### Compilation Metadata References custom debug information -Symbol server uses a [key](https://github.com/dotnet/symstore/blob/master/docs/specs/SSQP_Key_Conventions.md#pe-timestamp-filesize) computed from the COFF header in the PE image: +Symbol server uses a [key](https://github.com/dotnet/symstore/blob/main/docs/specs/SSQP_Key_Conventions.md#pe-timestamp-filesize) computed from the COFF header in the PE image: Timestamp: 4 byte integer Size of image: 4 byte integer diff --git a/docs/infrastructure/feature branches azure.md b/docs/infrastructure/feature branches azure.md index e2352eaa23818..7ea100ca99664 100644 --- a/docs/infrastructure/feature branches azure.md +++ b/docs/infrastructure/feature branches azure.md @@ -4,28 +4,28 @@ This document describes the process for setting up CI on a feature branch of ros ## Push the branch The first step is to create the branch seeded with the initial change on roslyn. This branch should have the name `features/`. For example: `features/mono` for working on mono work. -Assuming the branch should start with the contents of `master` the branch can be created by doing the following: +Assuming the branch should start with the contents of `main` the branch can be created by doing the following: Note: these steps assume the remote `origin` points to the official [roslyn repository](https://github.com/dotnet/roslyn). ``` cmd > git fetch origin -> git checkout -B init origin/master +> git checkout -B init origin/main > git push origin init:features/mono ``` ## Adding branch to Azure Pipelines The following files need to be edited in order for GitHub to trigger Azure Pipelines Test runs on PRs: -- [azure-pipelines.yml](https://github.com/dotnet/roslyn/blob/master/azure-pipelines.yml) -- [azure-pipelines-integration.yml](https://github.com/dotnet/roslyn/blob/master/azure-pipelines-integration.yml) +- [azure-pipelines.yml](https://github.com/dotnet/roslyn/blob/main/azure-pipelines.yml) +- [azure-pipelines-integration.yml](https://github.com/dotnet/roslyn/blob/main/azure-pipelines-integration.yml) Under the `pr` section in the file add your branch name. ``` yaml pr: -- master -- master-vs-deps +- main +- main-vs-deps - ... - features/mono ``` diff --git a/docs/specs/PortablePdb-Metadata.md b/docs/specs/PortablePdb-Metadata.md index 5b0740dbf047b..e4d139ba0a351 100644 --- a/docs/specs/PortablePdb-Metadata.md +++ b/docs/specs/PortablePdb-Metadata.md @@ -1,4 +1,4 @@ # Portable PDB v1.0: Format Specification Moved to -https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md +https://github.com/dotnet/corefx/blob/main/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md diff --git a/docs/wiki/API-Changes.md b/docs/wiki/API-Changes.md index d0c33589eb627..8ddd421814921 100644 --- a/docs/wiki/API-Changes.md +++ b/docs/wiki/API-Changes.md @@ -8,6 +8,6 @@ The following are links to PRs where introduced public APIs were promoted from ` * [API Changes Between VS2015 Update2 and VS2015 Update3](https://github.com/dotnet/roslyn/pull/12351/files) #Roslyn v1.0 (VS2015 RTM) -* [API Changes between VS2015 CTP6 and RC](https://github.com/dotnet/roslyn/blob/master/docs/wiki/VS-2015-RC-API-Changes.md) -* [API Changes between VS2015 CTP5 and CTP6](https://github.com/dotnet/roslyn/blob/master/docs/wiki/VS-2015-CTP-6-API-Changes.md) -* [API Changes between VS2015 Preview and CTP5](https://github.com/dotnet/roslyn/blob/master/docs/wiki/VS-2015-CTP-5-API-Changes.md) +* [API Changes between VS2015 CTP6 and RC](https://github.com/dotnet/roslyn/blob/main/docs/wiki/VS-2015-RC-API-Changes.md) +* [API Changes between VS2015 CTP5 and CTP6](https://github.com/dotnet/roslyn/blob/main/docs/wiki/VS-2015-CTP-6-API-Changes.md) +* [API Changes between VS2015 Preview and CTP5](https://github.com/dotnet/roslyn/blob/main/docs/wiki/VS-2015-CTP-5-API-Changes.md) diff --git a/docs/wiki/Building-Testing-and-Debugging.md b/docs/wiki/Building-Testing-and-Debugging.md index 72f70d080862e..8a1b2a9d5d844 100644 --- a/docs/wiki/Building-Testing-and-Debugging.md +++ b/docs/wiki/Building-Testing-and-Debugging.md @@ -5,7 +5,7 @@ Here are the main branches you should know about: | Branch | | | ------ | ----- | -| [**master**](https://github.com/dotnet/roslyn/tree/master) | Our primary branch. Changes here currently target Visual Studio 2019 16.4. If in doubt, this is where you should work, and submit pull requests.
[Instructions for Building on Windows](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building,%20Debugging,%20and%20Testing%20on%20Windows.md)
[Instructions for Building on Linux and Mac](https://github.com/dotnet/roslyn/blob/master/docs/infrastructure/cross-platform.md) | +| [**main**](https://github.com/dotnet/roslyn/tree/main) | Our primary branch. Changes here currently target Visual Studio 2019 16.4. If in doubt, this is where you should work, and submit pull requests.
[Instructions for Building on Windows](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building,%20Debugging,%20and%20Testing%20on%20Windows.md)
[Instructions for Building on Linux and Mac](https://github.com/dotnet/roslyn/blob/main/docs/infrastructure/cross-platform.md) | ## Known Issues Please see the [known contributor issues](https://github.com/dotnet/roslyn/labels/Contributor%20Pain) that you might encounter contributing to Roslyn. If you issue isn't listed, please file it. diff --git a/docs/wiki/C#-Interactive-Walkthrough.md b/docs/wiki/C#-Interactive-Walkthrough.md index 19764ededb339..9ff815871e380 100644 --- a/docs/wiki/C#-Interactive-Walkthrough.md +++ b/docs/wiki/C#-Interactive-Walkthrough.md @@ -1,4 +1,4 @@ -This walkthrough is a beginner's guide to learning basic interactive concepts and how to navigate the C# Interactive Window. To learn more about the Interactive window, watch [this video](channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/103) or check out [our documentation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Interactive-Window.md). +This walkthrough is a beginner's guide to learning basic interactive concepts and how to navigate the C# Interactive Window. To learn more about the Interactive window, watch [this video](channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/103) or check out [our documentation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Interactive-Window.md). *Note*: This walkthrough is adapted from [Bill Chiles](https://github.com/billchi-ms)' original. Thanks, Bill! @@ -173,4 +173,4 @@ foreach (var u in users) Console.WriteLine(u); ``` -You're done. Enjoy using the REPL and please provide feedback! If you are interested in learning more about the C# Interactive window, watch [this video](https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/103) or check out [our documentation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Interactive-Window.md). +You're done. Enjoy using the REPL and please provide feedback! If you are interested in learning more about the C# Interactive window, watch [this video](https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2015/103) or check out [our documentation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Interactive-Window.md). diff --git a/docs/wiki/Changelog-for-C#-and-VB-compilers.md b/docs/wiki/Changelog-for-C#-and-VB-compilers.md index 3d658d847296c..2b26137de2407 100644 --- a/docs/wiki/Changelog-for-C#-and-VB-compilers.md +++ b/docs/wiki/Changelog-for-C#-and-VB-compilers.md @@ -1,23 +1,23 @@ ## General information -* [Compiler and language feature status](https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md) -* [Log of breaking changes](https://github.com/dotnet/roslyn/blob/master/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20post%20VS2017.md) -* [NuGet packages](https://github.com/dotnet/roslyn/blob/master/docs/wiki/NuGet-packages.md) -* [C# language version history](https://github.com/dotnet/csharplang/blob/master/Language-Version-History.md) +* [Compiler and language feature status](https://github.com/dotnet/roslyn/blob/main/docs/Language%20Feature%20Status.md) +* [Log of breaking changes](https://github.com/dotnet/roslyn/blob/main/docs/compilers/CSharp/Compiler%20Breaking%20Changes%20-%20post%20VS2017.md) +* [NuGet packages](https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md) +* [C# language version history](https://github.com/dotnet/csharplang/blob/main/Language-Version-History.md) ## Visual Studio 2017 Version 15.7 The C# compiler now supports the 7.3 set of language features including: -- `System.Enum`, `System.Delegate` and [`unmanaged`](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/blittable.md) constraints. -- [Ref local re-assignment](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/ref-local-reassignment.md): Ref locals and ref parameters can now be reassigned with the ref assignment operator (`= ref`). -- [Stackalloc initializers](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/stackalloc-array-initializers.md): Stack-allocated arrays can now be initialized, e.g. `Span x = stackalloc[] { 1, 2, 3 };`. -- [Indexing movable fixed buffers](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/indexing-movable-fixed-fields.md): Fixed buffers can be indexed into without first being pinned. -- [Custom `fixed` statement](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/pattern-based-fixed.md): Types that implement a suitable `GetPinnableReference` can be used in a `fixed` statement. -- [Improved overload candidates](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/improved-overload-candidates.md): Some overload resolution candidates can be ruled out early, thus reducing ambiguities. -- [Expression variables in initializers and queries](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/expression-variables-in-initializers.md): Expression variables like `out var` and pattern variables are allowed in field initializers, constructor initializers and LINQ queries. -- [Tuple comparison](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/tuple-equality.md): Tuples can now be compared with `==` and `!=`. -- [Attributes on backing fields](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/auto-prop-field-attrs.md): Allows `[field: …]` attributes on an auto-implemented property to target its backing field. +- `System.Enum`, `System.Delegate` and [`unmanaged`](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/blittable.md) constraints. +- [Ref local re-assignment](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/ref-local-reassignment.md): Ref locals and ref parameters can now be reassigned with the ref assignment operator (`= ref`). +- [Stackalloc initializers](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/stackalloc-array-initializers.md): Stack-allocated arrays can now be initialized, e.g. `Span x = stackalloc[] { 1, 2, 3 };`. +- [Indexing movable fixed buffers](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/indexing-movable-fixed-fields.md): Fixed buffers can be indexed into without first being pinned. +- [Custom `fixed` statement](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/pattern-based-fixed.md): Types that implement a suitable `GetPinnableReference` can be used in a `fixed` statement. +- [Improved overload candidates](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/improved-overload-candidates.md): Some overload resolution candidates can be ruled out early, thus reducing ambiguities. +- [Expression variables in initializers and queries](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/expression-variables-in-initializers.md): Expression variables like `out var` and pattern variables are allowed in field initializers, constructor initializers and LINQ queries. +- [Tuple comparison](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/tuple-equality.md): Tuples can now be compared with `==` and `!=`. +- [Attributes on backing fields](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.3/auto-prop-field-attrs.md): Allows `[field: …]` attributes on an auto-implemented property to target its backing field. ## Visual Studio 2017 Version 15.6 @@ -47,12 +47,12 @@ The C# compiler now supports the 7.2 set of language features including: ## [Visual Studio 2017 Version 15.3](https://github.com/dotnet/roslyn/releases/tag/Visual-Studio-2017-Version-15.3) The C# compiler now supports the 7.1 set of language features, including: -- [Async Main methods](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/async-main.md) -- ["default" literals](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/target-typed-default.md) -- [Inferred tuple element names](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/infer-tuple-names.md) -- [Pattern-matching with generics](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.1/generics-pattern-match.md) +- [Async Main methods](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/async-main.md) +- ["default" literals](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/target-typed-default.md) +- [Inferred tuple element names](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/infer-tuple-names.md) +- [Pattern-matching with generics](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.1/generics-pattern-match.md) -The C# and VB compilers now can produce [reference assemblies](https://github.com/dotnet/roslyn/blob/master/docs/features/refout.md). +The C# and VB compilers now can produce [reference assemblies](https://github.com/dotnet/roslyn/blob/main/docs/features/refout.md). When you use C# 7.1 features in your project, lightbulb offers to upgrade your project’s language version, to “C# 7.1” or “latest”. @@ -60,15 +60,15 @@ When you use C# 7.1 features in your project, lightbulb offers to upgrade your p ## [Visual Studio 2017 Version 15.0](https://github.com/dotnet/roslyn/releases/tag/Visual-Studio-2017) The C# compiler now supports the [7.0](https://blogs.msdn.microsoft.com/dotnet/2017/03/09/new-features-in-c-7-0/) set of language features, including: -- [Out variables](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.0/out-var.md) -- [Pattern matching](https://github.com/dotnet/csharplang/blob/master/proposals/patterns.md) -- [Tuples](https://github.com/dotnet/roslyn/blob/master/docs/features/tuples.md) -- [Deconstruction](https://github.com/dotnet/roslyn/blob/master/docs/features/deconstruction.md) -- [Discards](https://github.com/dotnet/roslyn/blob/master/docs/features/discards.md) -- [Local Functions](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.0/local-functions.md) -- [Binary Literals](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.0/binary-literals.md) -- [Digit Separators](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.0/digit-separators.md) +- [Out variables](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.0/out-var.md) +- [Pattern matching](https://github.com/dotnet/csharplang/blob/main/proposals/patterns.md) +- [Tuples](https://github.com/dotnet/roslyn/blob/main/docs/features/tuples.md) +- [Deconstruction](https://github.com/dotnet/roslyn/blob/main/docs/features/deconstruction.md) +- [Discards](https://github.com/dotnet/roslyn/blob/main/docs/features/discards.md) +- [Local Functions](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.0/local-functions.md) +- [Binary Literals](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.0/binary-literals.md) +- [Digit Separators](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.0/digit-separators.md) - Ref returns and locals -- [Generalized async return types](https://github.com/dotnet/roslyn/blob/master/docs/features/task-types.md) +- [Generalized async return types](https://github.com/dotnet/roslyn/blob/main/docs/features/task-types.md) - More expression-bodied members -- [Throw expressions](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.0/throw-expression.md) +- [Throw expressions](https://github.com/dotnet/csharplang/blob/main/proposals/csharp-7.0/throw-expression.md) diff --git a/docs/wiki/Compiler-release-process.md b/docs/wiki/Compiler-release-process.md index 15a0bce474f05..bfeb42dd87131 100644 --- a/docs/wiki/Compiler-release-process.md +++ b/docs/wiki/Compiler-release-process.md @@ -8,18 +8,18 @@ For each release, some steps to check: - preview/RTM: notify documentation team of first preview and RTM timeline (to publish docs) - preview/RTM: update Visual Studio release notes - RTM: announce the new features on the team blog and in the Visual Studio Preview release notes -- RTM: record the [language history](https://github.com/dotnet/csharplang/blob/master/Language-Version-History.md) and move the [language proposals](https://github.com/dotnet/csharplang/tree/master/proposals) to the appropriate folder +- RTM: record the [language history](https://github.com/dotnet/csharplang/blob/main/Language-Version-History.md) and move the [language proposals](https://github.com/dotnet/csharplang/tree/main/proposals) to the appropriate folder - update the package description(s) For each language feature: - work with LDM to identify a champion and define the feature -- update the [Language Feature Status](https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md) page as we start working on features +- update the [Language Feature Status](https://github.com/dotnet/roslyn/blob/main/docs/Language%20Feature%20Status.md) page as we start working on features - identify a designated reviewer - notify Jared and Neal on PRs with public API changes -- breaking changes need to be approved by the compat council and [documented](https://github.com/dotnet/roslyn/tree/master/docs/compilers/CSharp) +- breaking changes need to be approved by the compat council and [documented](https://github.com/dotnet/roslyn/tree/main/docs/compilers/CSharp) - designated reviewer should document and validate a test plan -- blocking issues should be identified and resolved before merging feature back to `master` (that includes resolving `PROTOTYPE` comments) +- blocking issues should be identified and resolved before merging feature back to `main` (that includes resolving `PROTOTYPE` comments) - update the feature status when the feature is complete To add a language version: diff --git a/docs/wiki/Contributing-Code.md b/docs/wiki/Contributing-Code.md index e52da0c0bebc7..05f5ca2916e10 100644 --- a/docs/wiki/Contributing-Code.md +++ b/docs/wiki/Contributing-Code.md @@ -2,15 +2,15 @@ Before submitting a feature or substantial code contribution, please discuss it with the team and ensure it follows the product [roadmap](Roadmap.md). The team rigorously reviews and tests all code submissions. The submissions must meet an extremely high bar for quality, design, and roadmap appropriateness. -The Roslyn project is a member of the [.NET Foundation](https://github.com/orgs/dotnet) and follows the same [developer guide](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md). The team enforces this by regularly running the [.NET code formatter tool](https://github.com/dotnet/codeformatter) on the code base. Contributors should ensure they follow these guidelines when making submissions. +The Roslyn project is a member of the [.NET Foundation](https://github.com/orgs/dotnet) and follows the same [developer guide](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md). The team enforces this by regularly running the [.NET code formatter tool](https://github.com/dotnet/codeformatter) on the code base. Contributors should ensure they follow these guidelines when making submissions. For now, the team has set the following limits on pull requests: - Contributions beyond the level of a bug fix must be discussed with the team first, or they will likely be declined. As our process matures and our experience grows, the team expects to take larger contributions. -- Only contributions against the master branch will be accepted. Authors submitting pull requests that target experimental feature branches or release branches will likely be asked target their pull request at the master branch. -- Pull requests that do not merge easily with the tip of the master branch will be declined. The author will be asked to merge with tip and update the pull request. +- Only contributions against the main branch will be accepted. Authors submitting pull requests that target experimental feature branches or release branches will likely be asked target their pull request at the main branch. +- Pull requests that do not merge easily with the tip of the main branch will be declined. The author will be asked to merge with tip and update the pull request. - Submissions must meet functional and performance expectations, including scenarios for which the team doesn't yet have open source tests. This means you may be asked to fix and resubmit your pull request against a new open test case if it fails one of these tests. -- Submissions must follow the [.editorconfig](http://editorconfig.org/) settings for each directory. For the most part, these follow the rules stated in the [.NET Foundation Coding Guidelines](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md) with the exception that most Roslyn projects prefer to use 'var' everywhere. +- Submissions must follow the [.editorconfig](http://editorconfig.org/) settings for each directory. For the most part, these follow the rules stated in the [.NET Foundation Coding Guidelines](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md) with the exception that most Roslyn projects prefer to use 'var' everywhere. - Contributors must sign the [.NET CLA](https://cla.dotnetfoundation.org/) When you are ready to proceed with making a change, get set up to [build](Building-Testing-and-Debugging.md) the code and familiarize yourself with our workflow and our coding conventions. These two blogs posts on contributing code to open source projects are good too: Open Source Contribution Etiquette by Miguel de Icaza and Don’t “Push” Your Pull Requests by Ilya Grigorik. @@ -25,7 +25,7 @@ You must sign a [Contributor License Agreement (CLA)](http://cla.dotnetfoundatio ### Getting started coding in Visual Studio -See our getting started guide [here](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md). +See our getting started guide [here](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md). ### Creating New Issues @@ -42,7 +42,7 @@ Please follow these guidelines when creating new issues in the issue tracker: ### Coding Conventions -- Use the coding style outlined in the [.NET Foundation Coding Guidelines](https://github.com/dotnet/runtime/blob/master/docs/coding-guidelines/coding-style.md) +- Use the coding style outlined in the [.NET Foundation Coding Guidelines](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md) - Use plain code to validate parameters at public boundaries. Do not use Contracts or magic helpers. ```csharp diff --git a/docs/wiki/FAQ.md b/docs/wiki/FAQ.md index 9792c5fd838b2..167431c076429 100644 --- a/docs/wiki/FAQ.md +++ b/docs/wiki/FAQ.md @@ -106,7 +106,7 @@ We do want to make it super easy for customers who have given us feedback to log The main solution, Roslyn.sln, contains the entire codebase consisting of the compilers, workspaces, and Visual Studio layers. Building Roslyn.sln requires Visual Studio and a compatible version of the VS SDK. The Compilers.sln solution contains only the compiler layer and can therefore be built without Visual Studio or the VS SDK, but only on Windows. The CrossPlatform.sln solution contains the projects that currently support building on Linux. ### What components can I run locally in Visual Studio? -Starting with Visual Studio 2015 Update 1, all parts of Roslyn can be ran inside Visual Studio. Read our instructions for [Building on Windows](https://github.com/dotnet/roslyn/blob/master/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) for more information. +Starting with Visual Studio 2015 Update 1, all parts of Roslyn can be ran inside Visual Studio. Read our instructions for [Building on Windows](https://github.com/dotnet/roslyn/blob/main/docs/contributing/Building%2C%20Debugging%2C%20and%20Testing%20on%20Windows.md) for more information. ## Getting Information Questions diff --git a/docs/wiki/Getting-Started-C#-Semantic-Analysis.md b/docs/wiki/Getting-Started-C#-Semantic-Analysis.md index dbb2664d0f43e..1db41e1505549 100644 --- a/docs/wiki/Getting-Started-C#-Semantic-Analysis.md +++ b/docs/wiki/Getting-Started-C#-Semantic-Analysis.md @@ -1,7 +1,7 @@ ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) +* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) ## Introduction Today, the Visual Basic and C# compilers are black boxes - text goes in and bytes come out - with no transparency into the intermediate phases of the compilation pipeline. With the **.NET Compiler Platform** (formerly known as "Roslyn"), tools and developers can leverage the exact same data structures and algorithms the compiler uses to analyze and understand code with confidence that information is accurate and complete. diff --git a/docs/wiki/Getting-Started-C#-Syntax-Transformation.md b/docs/wiki/Getting-Started-C#-Syntax-Transformation.md index 04292efade83c..d2fe78ffd8aec 100644 --- a/docs/wiki/Getting-Started-C#-Syntax-Transformation.md +++ b/docs/wiki/Getting-Started-C#-Syntax-Transformation.md @@ -1,8 +1,8 @@ ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) -* [Getting Started C# Semantic Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md) +* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) +* [Getting Started C# Semantic Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md) ## Introduction This walkthrough builds on concepts and techniques explored in the **Getting Started: Syntax Analysis** and **Getting Started: Semantic Analysis** walkthroughs. If you haven't already, it's strongly advised that you complete those walkthroughs before beginning this one. diff --git a/docs/wiki/Getting-Started-VB-Semantic-Analysis.md b/docs/wiki/Getting-Started-VB-Semantic-Analysis.md index 71ef98f6533c4..b585b05bdc586 100644 --- a/docs/wiki/Getting-Started-VB-Semantic-Analysis.md +++ b/docs/wiki/Getting-Started-VB-Semantic-Analysis.md @@ -2,7 +2,7 @@ ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started VB Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) +* [Getting Started VB Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) ## Introduction Today, the Visual Basic and C# compilers are black boxes - text goes in and bytes come out - with no transparency into the intermediate phases of the compilation pipeline. With the **.NET Compiler Platform** (formerly known as "Roslyn"), tools and developers can leverage the exact same data structures and algorithms the compiler uses to analyze and understand code with confidence that that information is accurate and complete. diff --git a/docs/wiki/Getting-Started-VB-Syntax-Transformation.md b/docs/wiki/Getting-Started-VB-Syntax-Transformation.md index 6315a7103052c..523f60587ccdc 100644 --- a/docs/wiki/Getting-Started-VB-Syntax-Transformation.md +++ b/docs/wiki/Getting-Started-VB-Syntax-Transformation.md @@ -1,8 +1,8 @@ ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started VB Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) -* [Getting Started VB Semantic Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Semantic-Analysis.md) +* [Getting Started VB Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) +* [Getting Started VB Semantic Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Semantic-Analysis.md) ## Introduction This walkthrough builds on concepts and techniques explored in the **Getting Started: Syntax Analysis** and **Getting Started: Semantic Analysis** walkthroughs. If you haven't already, it's strongly advised that you complete those walkthroughs before beginning this one. diff --git a/docs/wiki/Getting-Started-Writing-a-Custom-Analyzer-&-Code-Fix.md b/docs/wiki/Getting-Started-Writing-a-Custom-Analyzer-&-Code-Fix.md index ffe30866779cd..ec7960f210d45 100644 --- a/docs/wiki/Getting-Started-Writing-a-Custom-Analyzer-&-Code-Fix.md +++ b/docs/wiki/Getting-Started-Writing-a-Custom-Analyzer-&-Code-Fix.md @@ -3,22 +3,22 @@ Before Visual Studio 2015, it was difficult to create custom warnings that targe ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) -* [Getting Started C# Semantic Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md) -* [Getting Started C# Syntax Transformation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md) +* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) +* [Getting Started C# Semantic Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md) +* [Getting Started C# Syntax Transformation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md) ## Resources ### Documentation & Tools -* [Documentation](https://github.com/dotnet/roslyn/tree/master/docs/analyzers) - repo with documentation. +* [Documentation](https://github.com/dotnet/roslyn/tree/main/docs/analyzers) - repo with documentation. * [API Source Code/Documentation](http://source.roslyn.io/) - allows you to browse the Roslyn source code online and easily navigate types. * [RoslynQuoter](http://roslynquoter.azurewebsites.net/) - a tool that for a given C# program shows syntax tree API calls to construct its syntax tree -* [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) - provides the [Syntax Visualizer](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md) which lets you inspect the syntax tree of any C# or VB code file that is open inside the Visual Studio IDE. +* [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) - provides the [Syntax Visualizer](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md) which lets you inspect the syntax tree of any C# or VB code file that is open inside the Visual Studio IDE. ### Articles * [C# and Visual Basic - Use Roslyn to Write a Live Code Analyzer for Your API](https://msdn.microsoft.com/en-us/magazine/dn879356.aspx?f=255&MSPPError=-2147217396) - MSDN article that walks you through how to write a custom analyzer. * [C# - Adding a Code Fix to Your Roslyn Analyzer](https://msdn.microsoft.com/magazine/dn904670.aspx) - MSDN article that walks you through how to write a custom code fix. -* How To Write an Analyzer and Code Fix ([VB](https://github.com/dotnet/roslyn/blob/master/docs/wiki/How-To-Write-a-Visual-Basic-Analyzer-and-Code-Fix.md) | [C#](https://github.com/dotnet/roslyn/blob/master/docs/wiki/How-To-Write-a-C%23-Analyzer-and-Code-Fix.md)) +* How To Write an Analyzer and Code Fix ([VB](https://github.com/dotnet/roslyn/blob/main/docs/wiki/How-To-Write-a-Visual-Basic-Analyzer-and-Code-Fix.md) | [C#](https://github.com/dotnet/roslyn/blob/main/docs/wiki/How-To-Write-a-C%23-Analyzer-and-Code-Fix.md)) * [Roslyn Diagnostic Analyzer Tutorial](https://blogs.msdn.microsoft.com/dotnet/2015/09/15/our-summer-internship-on-the-net-team/) - interns on the Roslyn team wrote an article about how they built a meta-analyzer to help you learn how to write an analyzer. ### Videos diff --git a/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-5.md b/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-5.md index b404767cec06e..fdeeec0aa578b 100644 --- a/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-5.md +++ b/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-5.md @@ -6,5 +6,5 @@ You'll need to do this even if you're using the Azure VM image. 3. Install the [SDK Templates VSIX package](https://visualstudiogallery.msdn.microsoft.com/ae1cf421-54bf-4406-b48c-76a182819fb7) to get the Visual Studio project templates. 4. Install the [Syntax Visualizer VSIX package](https://visualstudiogallery.msdn.microsoft.com/b5104545-29ed-46b2-beb0-351af9ca2d21) -to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md) +to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md) to help explore the syntax trees you'll be analyzing. diff --git a/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-6.md b/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-6.md index 825284195dda2..4e4c238909bc3 100644 --- a/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-6.md +++ b/docs/wiki/Getting-Started-on-Visual-Studio-2015-CTP-6.md @@ -6,5 +6,5 @@ You'll need to do this even if you're using the Azure VM image. 3. Install the [SDK Templates VSIX package](https://visualstudiogallery.msdn.microsoft.com/ecefb773-36a6-4316-98db-4a87ed8cf5dc) to get the Visual Studio project templates. 4. Install the [Syntax Visualizer VSIX package](https://visualstudiogallery.msdn.microsoft.com/0f18f8c3-ec79-468a-968f-a1a0ee65b388) -to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md) +to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md) to help explore the syntax trees you'll be analyzing. diff --git a/docs/wiki/Getting-Started-on-Visual-Studio-2015-Preview.md b/docs/wiki/Getting-Started-on-Visual-Studio-2015-Preview.md index 81fd171ab858b..7654fa61f747c 100644 --- a/docs/wiki/Getting-Started-on-Visual-Studio-2015-Preview.md +++ b/docs/wiki/Getting-Started-on-Visual-Studio-2015-Preview.md @@ -8,5 +8,5 @@ You'll need to do this even if you're using the Azure VM image. 3. Install the [SDK Templates VSIX package](http://visualstudiogallery.msdn.microsoft.com/849f3ab1-05cf-4682-b4af-ef995e2aa1a5) to get the Visual Studio project templates. 4. Install the [Syntax Visualizer VSIX package](http://visualstudiogallery.msdn.microsoft.com/70e184da-9b3a-402f-b210-d62a898e2887) -to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md) +to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md) to help explore the syntax trees you'll be analyzing. diff --git a/docs/wiki/Getting-Started-on-Visual-Studio-2015-RC.md b/docs/wiki/Getting-Started-on-Visual-Studio-2015-RC.md index 891530376ba69..039346f79ab21 100644 --- a/docs/wiki/Getting-Started-on-Visual-Studio-2015-RC.md +++ b/docs/wiki/Getting-Started-on-Visual-Studio-2015-RC.md @@ -6,5 +6,5 @@ You'll need to do this even if you're using the Azure VM image. 3. Install the [SDK Templates VSIX package](https://visualstudiogallery.msdn.microsoft.com/e2e07e91-9d0b-4944-ba40-e86bcbec1599) to get the Visual Studio project templates. 4. Install the [Syntax Visualizer VSIX package](https://visualstudiogallery.msdn.microsoft.com/32fe332c-51ad-411a-a74c-9fdbc2a03bb7) -to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md) +to get a [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md) to help explore the syntax trees you'll be analyzing diff --git a/docs/wiki/Getting-Started-on-Visual-Studio-2015.md b/docs/wiki/Getting-Started-on-Visual-Studio-2015.md index d00680adbd502..52359f243d14c 100644 --- a/docs/wiki/Getting-Started-on-Visual-Studio-2015.md +++ b/docs/wiki/Getting-Started-on-Visual-Studio-2015.md @@ -12,4 +12,4 @@ Install __Universal Windows App Development Tools -> Tools (1.1.1)__ and __Windo ![image](https://cloud.githubusercontent.com/assets/1103906/10530101/dd880dfc-7358-11e5-8380-dc41c1863538.png) ## Step 4: -Install the [.NET Compiler Platform SDK](https://visualstudiogallery.msdn.microsoft.com/2ddb7240-5249-4c8c-969e-5d05823bcb89) which gives you the Visual Studio project templates and the [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md). +Install the [.NET Compiler Platform SDK](https://visualstudiogallery.msdn.microsoft.com/2ddb7240-5249-4c8c-969e-5d05823bcb89) which gives you the Visual Studio project templates and the [Syntax Visualizer tool window](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md). diff --git a/docs/wiki/How-To-Write-a-C#-Analyzer-and-Code-Fix.md b/docs/wiki/How-To-Write-a-C#-Analyzer-and-Code-Fix.md index ac62522015d27..dcc33635d4b14 100644 --- a/docs/wiki/How-To-Write-a-C#-Analyzer-and-Code-Fix.md +++ b/docs/wiki/How-To-Write-a-C#-Analyzer-and-Code-Fix.md @@ -1,9 +1,9 @@ ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) -* [Getting Started C# Semantic Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md) -* [Getting Started C# Syntax Transformation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md) +* [Getting Started C# Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md) +* [Getting Started C# Semantic Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md) +* [Getting Started C# Syntax Transformation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md) ## Introduction In previous releases of Visual Studio, it has been difficult to create custom warnings that target C# or Visual Basic. With the Diagnostics API in the .NET Compiler Platform ("Roslyn"), this once difficult task has become easy! All that is needed is to perform a bit of analysis to identify an issue, and optionally provide a tree transformation as a code fix. The heavy lifting of running your analysis on a background thread, showing squiggly underlines in the editor, populating the Visual Studio Error List, creating "light bulb" suggestions and showing rich previews is all done for you automatically. diff --git a/docs/wiki/How-To-Write-a-Visual-Basic-Analyzer-and-Code-Fix.md b/docs/wiki/How-To-Write-a-Visual-Basic-Analyzer-and-Code-Fix.md index e56717fcb0db8..e60af713a772d 100644 --- a/docs/wiki/How-To-Write-a-Visual-Basic-Analyzer-and-Code-Fix.md +++ b/docs/wiki/How-To-Write-a-Visual-Basic-Analyzer-and-Code-Fix.md @@ -1,9 +1,9 @@ ## Prerequisites * [Visual Studio 2015](https://www.visualstudio.com/downloads) * [.NET Compiler Platform SDK](https://aka.ms/roslynsdktemplates) -* [Getting Started VB Syntax Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) -* [Getting Started VB Semantic Analysis](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Semantic-Analysis.md) -* [Getting Started VB Syntax Transformation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Transformation.md) +* [Getting Started VB Syntax Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) +* [Getting Started VB Semantic Analysis](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Semantic-Analysis.md) +* [Getting Started VB Syntax Transformation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Syntax-Transformation.md) ## Introduction In previous releases of Visual Studio, it has been difficult to create custom warnings that target C# or Visual Basic. With the Diagnostics API in the .NET Compiler Platform ("Roslyn"), this once difficult task has become easy! All that is needed is to perform a bit of analysis to identify an issue, and optionally provide a tree transformation as a code fix. The heavy lifting of running your analysis on a background thread, showing squiggly underlines in the editor, populating the Visual Studio Error List, creating "light bulb" suggestions and showing rich previews is all done for you automatically. diff --git a/docs/wiki/Languages-features-in-C#-6-and-VB-14.md b/docs/wiki/Languages-features-in-C#-6-and-VB-14.md index 37f3039fd520e..244fbb78eaec8 100644 --- a/docs/wiki/Languages-features-in-C#-6-and-VB-14.md +++ b/docs/wiki/Languages-features-in-C#-6-and-VB-14.md @@ -7,8 +7,8 @@ Please note that everything is still subject to change - this is a preview after all. However, we are reasonably confident about the overall feature set at this point. [Visual Studio 2015 RC](http://visualstudio.com/en-us/downloads/visual-studio-2015-ctp-vs) has the following features. For a description of each feature see: -* [New Language Features in C# 6](https://github.com/dotnet/roslyn/blob/master/docs/wiki/New-Language-Features-in-C%23-6.md) -* [New Language Features in VB 14](https://github.com/dotnet/roslyn/blob/master/docs/wiki/New-Language-Features-in-VB-14.md) +* [New Language Features in C# 6](https://github.com/dotnet/roslyn/blob/main/docs/wiki/New-Language-Features-in-C%23-6.md) +* [New Language Features in VB 14](https://github.com/dotnet/roslyn/blob/main/docs/wiki/New-Language-Features-in-VB-14.md) | Feature | Example | C# | VB | |:-----------|:------------|:------------:|:------------:| diff --git a/docs/wiki/Linux-Instructions.md b/docs/wiki/Linux-Instructions.md index 7be1448184b32..2c3561cad9b8c 100644 --- a/docs/wiki/Linux-Instructions.md +++ b/docs/wiki/Linux-Instructions.md @@ -1,3 +1,3 @@ These instructions have moved to a file checked into our source tree. -[cross-platform.md](https://github.com/dotnet/roslyn/blob/master/docs/infrastructure/cross-platform.md) +[cross-platform.md](https://github.com/dotnet/roslyn/blob/main/docs/infrastructure/cross-platform.md) diff --git a/docs/wiki/Measuring-Compiler-Performance.md b/docs/wiki/Measuring-Compiler-Performance.md index a31e311b84f7e..664486e3d639e 100644 --- a/docs/wiki/Measuring-Compiler-Performance.md +++ b/docs/wiki/Measuring-Compiler-Performance.md @@ -1,6 +1,6 @@ The C# compiler has a number of different benchmarks to measure regressions and test performance changes. -The tests are stored in the https://github.com/dotnet/performance repo. Roslyn compiler tests are https://github.com/dotnet/performance/tree/master/src/benchmarks/real-world/Roslyn. +The tests are stored in the https://github.com/dotnet/performance repo. Roslyn compiler tests are https://github.com/dotnet/performance/tree/main/src/benchmarks/real-world/Roslyn. To run the tests, you need an installation of the `dotnet` CLI, potentially with preview SDK, which are available at https://github.com/dotnet/core-sdk. diff --git a/docs/wiki/NuGet-packages.md b/docs/wiki/NuGet-packages.md index 45fbd9db6ecb6..d7e1a31b51f58 100644 --- a/docs/wiki/NuGet-packages.md +++ b/docs/wiki/NuGet-packages.md @@ -34,7 +34,7 @@ Below are the versions of the language available in the NuGet packages. Remember - ... - Version `3.8` includes C# 9.0 (Visual Studio 2019 version 16.8, .NET 5) -See the [history of C# language features](https://github.com/dotnet/csharplang/blob/master/Language-Version-History.md) for more details. +See the [history of C# language features](https://github.com/dotnet/csharplang/blob/main/Language-Version-History.md) for more details. ## Other packages diff --git a/docs/wiki/README.md b/docs/wiki/README.md index e744592ebdffc..441fbf7e9caa5 100644 --- a/docs/wiki/README.md +++ b/docs/wiki/README.md @@ -1,70 +1,70 @@ # Getting Started -* [Roslyn Overview](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roslyn-Overview.md) -* [Samples and Walkthroughs](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Samples-and-Walkthroughs.md) -* [Roadmap](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roadmap.md) -* [Labels used for issues](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Labels-used-for-issues.md) -* [Building, Testing, and Debugging](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Building-Testing-and-Debugging.md) -* [Contributing](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Contributing-Code.md) -* [FAQ](https://github.com/dotnet/roslyn/blob/master/docs/wiki/FAQ.md) -* [Documentation](https://github.com/dotnet/roslyn/blob/master/docs) +* [Roslyn Overview](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roslyn-Overview.md) +* [Samples and Walkthroughs](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Samples-and-Walkthroughs.md) +* [Roadmap](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roadmap.md) +* [Labels used for issues](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Labels-used-for-issues.md) +* [Building, Testing, and Debugging](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Building-Testing-and-Debugging.md) +* [Contributing](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Contributing-Code.md) +* [FAQ](https://github.com/dotnet/roslyn/blob/main/docs/wiki/FAQ.md) +* [Documentation](https://github.com/dotnet/roslyn/blob/main/docs) # Language Design * [C# Language Design repo](https://github.com/dotnet/csharplang) * [VB Language Design repo](https://github.com/dotnet/vblang) -* [Language Feature Status](https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md) -* [Language Feature Overview for C# 6 and Visual Basic 14](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Languages-features-in-C%23-6-and-VB-14.md) +* [Language Feature Status](https://github.com/dotnet/roslyn/blob/main/docs/Language%20Feature%20Status.md) +* [Language Feature Overview for C# 6 and Visual Basic 14](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Languages-features-in-C%23-6-and-VB-14.md) # Tools -* [Performance considerations for large solutions](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Performance-considerations-for-large-solutions.md) -* [Syntax Visualizer](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Syntax-Visualizer.md) +* [Performance considerations for large solutions](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Performance-considerations-for-large-solutions.md) +* [Syntax Visualizer](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Syntax-Visualizer.md) * [Syntax Quoter](http://roslynquoter.azurewebsites.net), [Source](https://github.com/KirillOsenkov/RoslynQuoter) * [Enhanced source view](http://sourceroslyn.io), powered by Roslyn # API Changelist -* [VS 2015 CTP5 Changelist](https://github.com/dotnet/roslyn/blob/master/docs/wiki/VS-2015-CTP-5-API-Changes.md) -* [VS 2015 CTP6 Changelist](https://github.com/dotnet/roslyn/blob/master/docs/wiki/VS-2015-CTP-6-API-Changes.md) -* [VS 2015 RC Changelist](https://github.com/dotnet/roslyn/blob/master/docs/wiki/VS-2015-RC-API-Changes.md) +* [VS 2015 CTP5 Changelist](https://github.com/dotnet/roslyn/blob/main/docs/wiki/VS-2015-CTP-5-API-Changes.md) +* [VS 2015 CTP6 Changelist](https://github.com/dotnet/roslyn/blob/main/docs/wiki/VS-2015-CTP-6-API-Changes.md) +* [VS 2015 RC Changelist](https://github.com/dotnet/roslyn/blob/main/docs/wiki/VS-2015-RC-API-Changes.md) # Other Topics -* [Project Overview](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roslyn-Overview.md) -* [Project Roadmap](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roadmap.md) -* [Labels used for Issues](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Labels-used-for-issues.md) -* [Performance considerations for large solutions](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Performance-considerations-for-large-solutions.md) -* [Other documentation in the repo](https://github.com/dotnet/roslyn/blob/master/docs/) +* [Project Overview](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roslyn-Overview.md) +* [Project Roadmap](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roadmap.md) +* [Labels used for Issues](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Labels-used-for-issues.md) +* [Performance considerations for large solutions](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Performance-considerations-for-large-solutions.md) +* [Other documentation in the repo](https://github.com/dotnet/roslyn/blob/main/docs/) ## Contributors -* [Building, Testing, and Debugging](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Building-Testing-and-Debugging.md) -* [Contributing Code](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Contributing-Code.md) +* [Building, Testing, and Debugging](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Building-Testing-and-Debugging.md) +* [Contributing Code](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Contributing-Code.md) ## Tool Authors -* [Getting Started](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-on-Visual-Studio-2015.md) -* [Samples and Walkthroughs](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Samples-and-Walkthroughs.md) -* [FAQ](https://github.com/dotnet/roslyn/blob/master/docs/wiki/FAQ.md) -* [API Changelist](https://github.com/dotnet/roslyn/blob/master/docs/wiki/API-Changes.md) +* [Getting Started](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-on-Visual-Studio-2015.md) +* [Samples and Walkthroughs](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Samples-and-Walkthroughs.md) +* [FAQ](https://github.com/dotnet/roslyn/blob/main/docs/wiki/FAQ.md) +* [API Changelist](https://github.com/dotnet/roslyn/blob/main/docs/wiki/API-Changes.md) ## Status -* [Language feature status](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Languages-features-in-C%23-6-and-VB-14.md) -* [Edit-and-Continue Supported Edits](https://github.com/dotnet/roslyn/blob/master/docs/wiki/EnC-Supported-Edits.md) +* [Language feature status](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Languages-features-in-C%23-6-and-VB-14.md) +* [Edit-and-Continue Supported Edits](https://github.com/dotnet/roslyn/blob/main/docs/wiki/EnC-Supported-Edits.md) ## .NET Core -* [Runtime Code Generation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Runtime-code-generation-using-Roslyn-compilations-in-.NET-Core-App.md) +* [Runtime Code Generation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Runtime-code-generation-using-Roslyn-compilations-in-.NET-Core-App.md) ## Interactive and Scripting -* [Interactive Window Documentation](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Interactive-Window.md) -* [Scripting API Samples](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Scripting-API-Samples.md) -* [C# Interactive Walkthrough](https://github.com/dotnet/roslyn/blob/master/docs/wiki/C%23-Interactive-Walkthrough.md) +* [Interactive Window Documentation](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Interactive-Window.md) +* [Scripting API Samples](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Scripting-API-Samples.md) +* [C# Interactive Walkthrough](https://github.com/dotnet/roslyn/blob/main/docs/wiki/C%23-Interactive-Walkthrough.md) ## Testing -* [Manual Testing](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Manual-Testing.md) -* [How to Investigate CI Test Failures](https://github.com/dotnet/roslyn/blob/master/docs/wiki/How-To-Investigate-CI-Test-Failures.md) \ No newline at end of file +* [Manual Testing](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Manual-Testing.md) +* [How to Investigate CI Test Failures](https://github.com/dotnet/roslyn/blob/main/docs/wiki/How-To-Investigate-CI-Test-Failures.md) \ No newline at end of file diff --git a/docs/wiki/Recording-performance-traces-with-PerfView.md b/docs/wiki/Recording-performance-traces-with-PerfView.md index f001d9c789e7d..1c7073357372d 100644 --- a/docs/wiki/Recording-performance-traces-with-PerfView.md +++ b/docs/wiki/Recording-performance-traces-with-PerfView.md @@ -1,6 +1,6 @@ This document describes practices for gathering performance traces for scenarios not covered by the user-friendly Report a Problem tool. -:bulb: This page is for advanced usage scenarios. For almost all users, the best way to report performance problems is following the instructions on [Reporting Visual Studio crashes and performance issues](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Reporting-Visual-Studio-crashes-and-performance-issues.md). +:bulb: This page is for advanced usage scenarios. For almost all users, the best way to report performance problems is following the instructions on [Reporting Visual Studio crashes and performance issues](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Reporting-Visual-Studio-crashes-and-performance-issues.md). # Audience diff --git a/docs/wiki/Reporting-Visual-Studio-crashes-and-performance-issues.md b/docs/wiki/Reporting-Visual-Studio-crashes-and-performance-issues.md index a576b94dde4f0..f746f4e5a56b4 100644 --- a/docs/wiki/Reporting-Visual-Studio-crashes-and-performance-issues.md +++ b/docs/wiki/Reporting-Visual-Studio-crashes-and-performance-issues.md @@ -102,4 +102,4 @@ For best results in capturing the performance, follow these steps: ## Advanced Performance Traces -Steps for manually recording performance traces using the PerfView tool can be found on the [Recording performance traces with PerfView](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Recording-performance-traces-with-PerfView.md) page. +Steps for manually recording performance traces using the PerfView tool can be found on the [Recording performance traces with PerfView](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Recording-performance-traces-with-PerfView.md) page. diff --git a/docs/wiki/Roadmap.md b/docs/wiki/Roadmap.md index 6a13676989e53..05eadf4e62d12 100644 --- a/docs/wiki/Roadmap.md +++ b/docs/wiki/Roadmap.md @@ -13,7 +13,7 @@ There are two major categories of work that will happen here: active feature dev # Language Features * Discuss proposed language features for [C#](CSharp Language Design Notes) and [Visual Basic](Visual Basic Design Notes) -* To see an overview of the features being discussed check out the [Language Feature Status](https://github.com/dotnet/roslyn/blob/master/docs/Language%20Feature%20Status.md) +* To see an overview of the features being discussed check out the [Language Feature Status](https://github.com/dotnet/roslyn/blob/main/docs/Language%20Feature%20Status.md) # Diagnostics * Refine the Diagnostics API, which provides live code analysis as you type. diff --git a/docs/wiki/Runtime-code-generation-using-Roslyn-compilations-in-.NET-Core-App.md b/docs/wiki/Runtime-code-generation-using-Roslyn-compilations-in-.NET-Core-App.md index c22dff8aa4d81..ea8fe960b43af 100644 --- a/docs/wiki/Runtime-code-generation-using-Roslyn-compilations-in-.NET-Core-App.md +++ b/docs/wiki/Runtime-code-generation-using-Roslyn-compilations-in-.NET-Core-App.md @@ -4,7 +4,7 @@ There are two approaches to runtime code generation: ### Compile against runtime (implementation) assemblies -This is what [C# Scripting API](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Scripting-API-Samples.md) currently does. There are a few gotchas with this approach: +This is what [C# Scripting API](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Scripting-API-Samples.md) currently does. There are a few gotchas with this approach: - in .NET Core 1.x the implementation assemblies currently contain some duplicate public types (fixed in 2.0, see https://github.com/dotnet/corefx/issues/5540). - the implementation assemblies change with releases, so code that compiles against one version of CoreCLR might not compile against newer version. The APIs are backward compatible, however compiler overload resolution might prefer an API added in the new version instead of the one that it used to pick before. diff --git a/docs/wiki/Samples-and-Walkthroughs.md b/docs/wiki/Samples-and-Walkthroughs.md index 0a36d02616912..cc78a1d93aa7e 100644 --- a/docs/wiki/Samples-and-Walkthroughs.md +++ b/docs/wiki/Samples-and-Walkthroughs.md @@ -1,7 +1,7 @@ # Samples -The samples below are available in the Git sources, under the [Samples folder](https://github.com/dotnet/roslyn-sdk/tree/master/samples/) in the `roslyn-sdk` repository: -* **APISampleUnitTests** - A collection of unit tests that show how various APIs can be used. Many of these methods are referenced in the [FAQ](https://github.com/dotnet/roslyn/blob/master/docs/wiki/FAQ.md). +The samples below are available in the Git sources, under the [Samples folder](https://github.com/dotnet/roslyn-sdk/tree/main/samples/) in the `roslyn-sdk` repository: +* **APISampleUnitTests** - A collection of unit tests that show how various APIs can be used. Many of these methods are referenced in the [FAQ](https://github.com/dotnet/roslyn/blob/main/docs/wiki/FAQ.md). * **AsyncPackage** - A set of diagnostics and code fixes that help you use the await/async keywords correctly. * **ConsoleClassifier** - A simple console application that prints colored source code to the console. * **ConvertToAutoProperty** - A code refactoring to change a simple property with a trivial getter and setter into an auto property. @@ -9,14 +9,14 @@ The samples below are available in the Git sources, under the [Samples folder](h * **ImplementNotifyPropertyChanged** - A code refactoring to make selected properties of a class support PropertyChanged events. Select the properties to be updated in the editor, press Alt+. to show the refactoring lightbulb menu, and choose "Apply INotifyPropertyChanged pattern." * **MakeConst** - A diagnostic (user defined compiler warning), that indicates when local variables can be made const, and a quick fix to make the variable into a const. The Diagnostic walkthrough below explores this sample in detail. -You can also explore the [source repository](https://github.com/dotnet/roslyn/tree/master/src) to see how the Compiler and Workspaces layers make use of the APIs: -* The [Diagnostics folder in the sources](https://github.com/dotnet/roslyn/tree/master/src/Diagnostics) has many examples of real-world Diagnostics (mostly re-implemented FxCop rules) and Code Fixes. Just drill down to the leaf-node code files in the CSharp or VisualBasic subfolders. +You can also explore the [source repository](https://github.com/dotnet/roslyn/tree/main/src) to see how the Compiler and Workspaces layers make use of the APIs: +* The [Diagnostics folder in the sources](https://github.com/dotnet/roslyn/tree/main/src/Diagnostics) has many examples of real-world Diagnostics (mostly re-implemented FxCop rules) and Code Fixes. Just drill down to the leaf-node code files in the CSharp or VisualBasic subfolders. # Walkthroughs -Before working through the walkthroughs below, you should first familiarize yourself with the [Roslyn Overview](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roslyn-Overview.md), which sets up some of the key concepts. +Before working through the walkthroughs below, you should first familiarize yourself with the [Roslyn Overview](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roslyn-Overview.md), which sets up some of the key concepts. ## Getting Started -* Getting Started - Syntax Analysis ([VB](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) | [C#](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md)) -* Getting Started - Semantic Analysis ([VB](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Semantic-Analysis.md) | [C#](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md)) -* Getting Started - Syntax Transformation ([VB](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-VB-Syntax-Transformation.md) | [C#](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md)) -* Getting Started - Writing Custom Analyzers and Code Fixes ([C# & VB](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-Writing-a-Custom-Analyzer-&-Code-Fix.md)) +* Getting Started - Syntax Analysis ([VB](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Syntax-Analysis.md) | [C#](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Analysis.md)) +* Getting Started - Semantic Analysis ([VB](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Semantic-Analysis.md) | [C#](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Semantic-Analysis.md)) +* Getting Started - Syntax Transformation ([VB](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-VB-Syntax-Transformation.md) | [C#](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-C%23-Syntax-Transformation.md)) +* Getting Started - Writing Custom Analyzers and Code Fixes ([C# & VB](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-Writing-a-Custom-Analyzer-&-Code-Fix.md)) diff --git a/docs/wiki/Syntax-Visualizer.md b/docs/wiki/Syntax-Visualizer.md index 7b15a59169906..a1cb8414a35f1 100644 --- a/docs/wiki/Syntax-Visualizer.md +++ b/docs/wiki/Syntax-Visualizer.md @@ -12,11 +12,11 @@ This document is an overview of the Syntax Visualizer tool that ships as part of the .NET Compiler Platform (“Roslyn”) SDK Preview. The Syntax Visualizer is a Visual Studio Extension that facilitates inspection and exploration of Roslyn syntax trees and can be used as a debugging aid when you develop your own applications atop the .NET Compiler Platform (“Roslyn”) APIs. ## Getting Started -Let’s begin by getting a box set up with [Visual Studio 2015](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Getting-Started-on-Visual-Studio-2015.md). +Let’s begin by getting a box set up with [Visual Studio 2015](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Getting-Started-on-Visual-Studio-2015.md). The Syntax Visualizer is installed as part of the [.NET Compiler Platform SDK](https://visualstudiogallery.msdn.microsoft.com/2ddb7240-5249-4c8c-969e-5d05823bcb89). -To understand the concepts presented in this document better, I would strongly recommend reading the [.NET Compiler Platform (“Roslyn”) Overview document](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roslyn-Overview.md). This document provides a very good overview of the .NET Compiler Platform (“Roslyn”) APIs including syntax trees, nodes, tokens, and trivia. +To understand the concepts presented in this document better, I would strongly recommend reading the [.NET Compiler Platform (“Roslyn”) Overview document](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roslyn-Overview.md). This document provides a very good overview of the .NET Compiler Platform (“Roslyn”) APIs including syntax trees, nodes, tokens, and trivia. ## Syntax Visualizer Once installed, the Syntax Visualizer enables inspection of the syntax tree for any C# or VB code file that is open inside the Visual Studio IDE. The visualizer can be launched by clicking on View –> Other Windows –> Roslyn Syntax Visualizer. @@ -43,7 +43,7 @@ Now, let’s create a new project by clicking on File –> New Project. You can As you can see in the above image, the visualizer tool window displays the syntax tree at the top and a property grid at the bottom. The property grid displays the properties of the item that is currently selected in the tree, including the .NET ‘Type’ and the ‘Kind’ (SyntaxKind) of the item. -Syntax trees comprise three types of items – nodes, tokens, and trivia. You can read more about these types in the [.NET Compiler Platform (“Roslyn”) Overview document](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roslyn-Overview.md). Items of each type are represented using a different color. Click on the button titled ‘Legend’ for an overview of the colors used. +Syntax trees comprise three types of items – nodes, tokens, and trivia. You can read more about these types in the [.NET Compiler Platform (“Roslyn”) Overview document](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roslyn-Overview.md). Items of each type are represented using a different color. Click on the button titled ‘Legend’ for an overview of the colors used. *Figure 5 Legend* @@ -92,7 +92,7 @@ Here is the docking layout that I normally use for the visualizer tool window an ![fig10.png](images/fig10.png) # Inspecting Semantics -The Syntax Visualizer also allows you to do some rudimentary inspection of symbols and semantic information. Let’s look at some examples. You can read more about APIs for performing semantic analysis in the [.NET Compiler Platform (“Roslyn”) Overview document](https://github.com/dotnet/roslyn/blob/master/docs/wiki/Roslyn-Overview.md). +The Syntax Visualizer also allows you to do some rudimentary inspection of symbols and semantic information. Let’s look at some examples. You can read more about APIs for performing semantic analysis in the [.NET Compiler Platform (“Roslyn”) Overview document](https://github.com/dotnet/roslyn/blob/main/docs/wiki/Roslyn-Overview.md). In the C# file above, type `double x = 1 + 1;` inside Main(). diff --git a/docs/wiki/Troubleshooting-tips.md b/docs/wiki/Troubleshooting-tips.md index 477d5577a77bc..20662a476261b 100644 --- a/docs/wiki/Troubleshooting-tips.md +++ b/docs/wiki/Troubleshooting-tips.md @@ -37,7 +37,7 @@ Those are scenarios where you need to compile the same code with different versi The latest native compiler (pre-Roslyn) is part of the .NET Framework, so you can run it from `c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe`. -For trying various Roslyn versions, you can create a new project with your code, and add a reference to [`Microsoft.Net.Compilers.Toolset`](../compilers/Compiler%20Toolset%20NuPkgs.md). By choosing the source (nuget.org or Azure DevOps) and the package version (see [versioning help](https://github.com/dotnet/roslyn/blob/master/docs/wiki/NuGet-packages.md#versioning)), you will be able to control what version of the compiler is used. Note that you need to _Build_ your project to compile the code with the desired compiler version (the IDE may show squiggles and use a different version). +For trying various Roslyn versions, you can create a new project with your code, and add a reference to [`Microsoft.Net.Compilers.Toolset`](../compilers/Compiler%20Toolset%20NuPkgs.md). By choosing the source (nuget.org or Azure DevOps) and the package version (see [versioning help](https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md#versioning)), you will be able to control what version of the compiler is used. Note that you need to _Build_ your project to compile the code with the desired compiler version (the IDE may show squiggles and use a different version). # Running and debugging a test on Core on Windows To run all Core tests on Windows, you can use `Build.cmd -testCoreClr`. diff --git a/docs/wiki/VS-2015-RC-API-Changes.md b/docs/wiki/VS-2015-RC-API-Changes.md index e3958d507f05f..93c2fe44f6919 100644 --- a/docs/wiki/VS-2015-RC-API-Changes.md +++ b/docs/wiki/VS-2015-RC-API-Changes.md @@ -5,7 +5,7 @@ - We've made a couple of changes to the core DiagnosticAnalyzer APIs: - An *EndAction (`CompilationEndAction` or `CodeBlockEndAction`) can now only be registered from within a *Start context. This eliminates the confusion around being able to register an end action without a start action. - Two new actions have been introduced - `CompilationAction` and `CodeBlockAction`. These are the "stateless" equivalents of the Start\End pair. One would register these actions when they simply need to inspect a compilation or a codeblock without needing any accumulated state. They would instead use the Start\End pair if they need to build up some computational state to report diagnostics after having looked at the entire compilation or codeblock. -- A complete description of the semantics of all the actions is available [here](https://github.com/dotnet/roslyn/tree/master/docs/analyzers/Analyzer%20Actions%20Semantics.md) +- A complete description of the semantics of all the actions is available [here](https://github.com/dotnet/roslyn/tree/main/docs/analyzers/Analyzer%20Actions%20Semantics.md) - There is now a property bag on the `Diagnostic` type that can be used to communicate information from an analyzer to some other consumer. For eg. a codefixer for that diagnostic might be able to reuse some compuation from the analysis phase to produce a fix. - Some miscellaneous tightening of the APIs like making types sealed, making the `LocalizableString` type exception-safe, ensuring context.ReportDiagnostic filters out diagnostics not reported by the analyzer as supported. diff --git a/eng/build-utils.ps1 b/eng/build-utils.ps1 index 3ba5c48b83003..02a535cd42c40 100644 --- a/eng/build-utils.ps1 +++ b/eng/build-utils.ps1 @@ -8,7 +8,7 @@ $ErrorActionPreference="Stop" $VSSetupDir = Join-Path $ArtifactsDir "VSSetup\$configuration" $PackagesDir = Join-Path $ArtifactsDir "packages\$configuration" -$PublishDataUrl = "https://raw.githubusercontent.com/dotnet/roslyn/master/eng/config/PublishData.json" +$PublishDataUrl = "https://raw.githubusercontent.com/dotnet/roslyn/main/eng/config/PublishData.json" $binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $false } $nodeReuse = if (Test-Path variable:nodeReuse) { $nodeReuse } else { $false } diff --git a/eng/common/SigningValidation.proj b/eng/common/SigningValidation.proj index 3d0ac80af3ff5..f011dd8bb168d 100644 --- a/eng/common/SigningValidation.proj +++ b/eng/common/SigningValidation.proj @@ -37,7 +37,7 @@ diff --git a/eng/common/generate-graph-files.ps1 b/eng/common/generate-graph-files.ps1 index b056e4c1ac2a3..b97a8930b25c9 100644 --- a/eng/common/generate-graph-files.ps1 +++ b/eng/common/generate-graph-files.ps1 @@ -6,7 +6,7 @@ Param( [string] $darcVersion = '1.1.0-beta.19175.6', # darc's version [string] $graphvizVersion = '2.38', # GraphViz version [switch] $includeToolset # Whether the graph should include toolset dependencies or not. i.e. arcade, optimization. For more about - # toolset dependencies see https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#toolset-vs-product-dependencies + # toolset dependencies see https://github.com/dotnet/arcade/blob/main/Documentation/Darc.md#toolset-vs-product-dependencies ) $ErrorActionPreference = "Stop" diff --git a/eng/common/internal-feed-operations.ps1 b/eng/common/internal-feed-operations.ps1 index 66a4b754d4d15..8ea0355dabfb7 100644 --- a/eng/common/internal-feed-operations.ps1 +++ b/eng/common/internal-feed-operations.ps1 @@ -24,7 +24,7 @@ function SetupCredProvider { Write-Host "Setting up Cred Provider NuGet plugin in the agent..." Write-Host "Getting 'installcredprovider.ps1' from 'https://github.com/microsoft/artifacts-credprovider'..." - $url = 'https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1' + $url = 'https://raw.githubusercontent.com/microsoft/artifacts-credprovider/main/helpers/installcredprovider.ps1' Write-Host "Writing the contents of 'installcredprovider.ps1' locally..." Invoke-WebRequest $url -OutFile installcredprovider.ps1 diff --git a/eng/common/internal-feed-operations.sh b/eng/common/internal-feed-operations.sh index 5eb546990dec8..6025ec23acc82 100755 --- a/eng/common/internal-feed-operations.sh +++ b/eng/common/internal-feed-operations.sh @@ -13,7 +13,7 @@ function SetupCredProvider { echo "Setting up Cred Provider NuGet plugin in the agent..."... echo "Getting 'installcredprovider.ps1' from 'https://github.com/microsoft/artifacts-credprovider'..." - local url="https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.sh" + local url="https://raw.githubusercontent.com/microsoft/artifacts-credprovider/main/helpers/installcredprovider.sh" echo "Writing the contents of 'installcredprovider.ps1' locally..." local installcredproviderPath="installcredprovider.sh" diff --git a/eng/common/native/CommonLibrary.psm1 b/eng/common/native/CommonLibrary.psm1 index 41416862d9132..2ec7f4e9c061b 100644 --- a/eng/common/native/CommonLibrary.psm1 +++ b/eng/common/native/CommonLibrary.psm1 @@ -225,7 +225,7 @@ function New-ScriptShim { # WinShimmer is a small .NET Framework program that creates .exe shims to bootstrapped programs # Many of the checks for installed programs expect a .exe extension for Windows tools, rather # than a .bat or .cmd file. - # Source: https://github.com/dotnet/arcade/tree/master/src/WinShimmer + # Source: https://github.com/dotnet/arcade/tree/main/src/WinShimmer if (-Not (Test-Path "$ShimDirectory\WinShimmer\winshimmer.exe")) { $InstallStatus = DownloadAndExtract -Uri "$BaseUri/windows/winshimmer/WinShimmer.zip" ` -InstallDirectory $ShimDirectory\WinShimmer ` diff --git a/eng/common/performance/performance-setup.ps1 b/eng/common/performance/performance-setup.ps1 index ec41965fc895d..c4eaaa54d7be3 100644 --- a/eng/common/performance/performance-setup.ps1 +++ b/eng/common/performance/performance-setup.ps1 @@ -58,7 +58,7 @@ if ($RunFromPerformanceRepo) { robocopy $SourceDirectory $PerformanceDirectory /E /XD $PayloadDirectory $SourceDirectory\artifacts $SourceDirectory\.git } else { - git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory + git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory } if ($UseCoreRun) { diff --git a/eng/common/performance/performance-setup.sh b/eng/common/performance/performance-setup.sh index 2f2092166e43f..fe40533f84aed 100755 --- a/eng/common/performance/performance-setup.sh +++ b/eng/common/performance/performance-setup.sh @@ -96,7 +96,7 @@ while (($# > 0)); do echo " --help Print help and exit" echo "" echo "Advanced settings:" - echo " --framework The framework to run, if not running in master" + echo " --framework The framework to run, if not running in main" echo " --compliationmode The compilation mode if not passing --configurations" echo " --sourcedirectory The directory of the sources. Defaults to env:BUILD_SOURCESDIRECTORY" echo " --repository The name of the repository in the / format. Defaults to env:BUILD_REPOSITORY_NAME" @@ -173,7 +173,7 @@ if [[ "$run_from_perf_repo" = true ]]; then performance_directory=$workitem_directory setup_arguments="--perf-hash $commit_sha $common_setup_arguments" else - git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $performance_directory + git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance $performance_directory docs_directory=$performance_directory/docs mv $docs_directory $workitem_directory diff --git a/eng/common/sdl/execute-all-sdl-tools.ps1 b/eng/common/sdl/execute-all-sdl-tools.ps1 index 01799d63ff365..27e54740681c4 100644 --- a/eng/common/sdl/execute-all-sdl-tools.ps1 +++ b/eng/common/sdl/execute-all-sdl-tools.ps1 @@ -3,7 +3,7 @@ Param( [string] $NugetPackageDirectory, # Required: directory where NuGet packages are installed (not needed if GuardianCliLocation is specified) [string] $GuardianCliLocation, # Optional: Direct location of Guardian CLI executable if GuardianPackageName & NugetPackageDirectory are not specified [string] $Repository=$env:BUILD_REPOSITORY_NAME, # Required: the name of the repository (e.g. dotnet/arcade) - [string] $BranchName=$env:BUILD_SOURCEBRANCH, # Optional: name of branch or version of gdn settings; defaults to master + [string] $BranchName=$env:BUILD_SOURCEBRANCH, # Optional: name of branch or version of gdn settings; defaults to main [string] $SourceDirectory=$env:BUILD_SOURCESDIRECTORY, # Required: the directory where source files are located [string] $ArtifactsDirectory = (Join-Path $env:BUILD_SOURCESDIRECTORY ("artifacts")), # Required: the directory where build artifacts are located [string] $AzureDevOpsAccessToken, # Required: access token for dnceng; should be provided via KeyVault diff --git a/eng/common/sdl/init-sdl.ps1 b/eng/common/sdl/init-sdl.ps1 index d34d252875461..ea7b0382e59c2 100644 --- a/eng/common/sdl/init-sdl.ps1 +++ b/eng/common/sdl/init-sdl.ps1 @@ -1,7 +1,7 @@ Param( [string] $GuardianCliLocation, [string] $Repository, - [string] $BranchName="master", + [string] $BranchName="main", [string] $WorkingDirectory, [string] $AzureDevOpsAccessToken, [string] $GuardianLoggerLevel="Standard" diff --git a/eng/common/sdl/push-gdn.ps1 b/eng/common/sdl/push-gdn.ps1 index 79c707d6d8a03..faffee0bdbbb9 100644 --- a/eng/common/sdl/push-gdn.ps1 +++ b/eng/common/sdl/push-gdn.ps1 @@ -1,6 +1,6 @@ Param( [string] $Repository, - [string] $BranchName="master", + [string] $BranchName="main", [string] $GdnFolder, [string] $AzureDevOpsAccessToken, [string] $PushReason diff --git a/eng/common/templates/post-build/post-build.yml b/eng/common/templates/post-build/post-build.yml index 079375af4671c..91888d522a634 100644 --- a/eng/common/templates/post-build/post-build.yml +++ b/eng/common/templates/post-build/post-build.yml @@ -396,8 +396,8 @@ stages: artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }} publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }} symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }} - stageName: 'VS_Master_Publishing' - channelName: 'VS Master' + stageName: 'VS_Main_Publishing' + channelName: 'VS Main' channelId: 1012 transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-transport/nuget/v3/index.json' shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' diff --git a/eng/common/templates/steps/perf-send-to-helix.yml b/eng/common/templates/steps/perf-send-to-helix.yml index b3ea9acf1f160..1f1334d91451a 100644 --- a/eng/common/templates/steps/perf-send-to-helix.yml +++ b/eng/common/templates/steps/perf-send-to-helix.yml @@ -10,8 +10,8 @@ parameters: WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion - DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json - DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json + DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json + DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget." Creator: '' # optional -- if the build is external, use this to specify who is sending the job diff --git a/eng/common/templates/steps/send-to-helix.yml b/eng/common/templates/steps/send-to-helix.yml index 05df886f55f74..df48eab933bd0 100644 --- a/eng/common/templates/steps/send-to-helix.yml +++ b/eng/common/templates/steps/send-to-helix.yml @@ -18,8 +18,8 @@ parameters: XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion - DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json - DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json + DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json + DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget." IsExternal: false # [DEPRECATED] -- doesn't do anything, jobs are external if HelixAccessToken is empty and Creator is set diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index 84651fea050ed..7e74cda61f3eb 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -12,7 +12,7 @@ [bool]$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $ci } # Set to true to use the pipelines logger which will enable Azure logging output. -# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md +# https://github.com/Microsoft/azure-pipelines-tasks/blob/main/docs/authoring/commands.md # This flag is meant as a temporary opt-opt for the feature while validate it across # our consumers. It will be deleted in the future. [bool]$pipelinesLog = if (Test-Path variable:pipelinesLog) { $pipelinesLog } else { $ci } diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 4df7e60e884e9..952f6e8e95351 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -6,7 +6,7 @@ ci=${ci:-false} # Set to true to use the pipelines logger which will enable Azure logging output. -# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md +# https://github.com/Microsoft/azure-pipelines-tasks/blob/main/docs/authoring/commands.md # This flag is meant as a temporary opt-opt for the feature while validate it across # our consumers. It will be deleted in the future. if [[ "$ci" == true ]]; then diff --git a/eng/config/PublishData.json b/eng/config/PublishData.json index d65cb53975a6c..2c20240497af8 100644 --- a/eng/config/PublishData.json +++ b/eng/config/PublishData.json @@ -222,7 +222,7 @@ "vsBranch": "rel/d16.10", "vsMajorVersion": 16 }, - "master-vs-deps": { + "main-vs-deps": { "nugetKind": ["Shipping", "NonShipping"], "version": "3.10.*", "packageFeeds": "default", @@ -230,7 +230,7 @@ "vsBranch": "main", "vsMajorVersion": 16 }, - "master": { + "main": { "nugetKind": ["Shipping", "NonShipping"], "version": "3.10.*", "packageFeeds": "arcade", diff --git a/eng/config/globalconfigs/Common.globalconfig b/eng/config/globalconfigs/Common.globalconfig index 073bdb851d2e3..51441f5c46ad5 100644 --- a/eng/config/globalconfigs/Common.globalconfig +++ b/eng/config/globalconfigs/Common.globalconfig @@ -64,7 +64,7 @@ dotnet_diagnostic.xUnit2013.severity = none # xUnit2017: "do not use Contains() to check if a value exists in a collection" is a valid assert, but very noisy right now dotnet_diagnostic.xUnit2017.severity = none -# https://github.com/Microsoft/VSSDK-Analyzers/blob/master/doc/index.md +# https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/index.md # VSSDK001: Derive from AsyncPackage dotnet_diagnostic.VSSDK001.severity = warning # VSSDK003: Support async tool windows diff --git a/eng/test-build-correctness.ps1 b/eng/test-build-correctness.ps1 index e57f1907a6816..50488146d99ab 100644 --- a/eng/test-build-correctness.ps1 +++ b/eng/test-build-correctness.ps1 @@ -33,8 +33,8 @@ try { . (Join-Path $PSScriptRoot "build-utils.ps1") Push-Location $RepoRoot - # Verify no PROTOTYPE marker left in master - if ($env:SYSTEM_PULLREQUEST_TARGETBRANCH -eq "master") { + # Verify no PROTOTYPE marker left in main + if ($env:SYSTEM_PULLREQUEST_TARGETBRANCH -eq "main") { Write-Host "Checking no PROTOTYPE markers in compiler source" $prototypes = Get-ChildItem -Path src/Compilers/*.cs, src/Compilers/*.vb,src/Compilers/*.xml -Recurse | Select-String -Pattern 'PROTOTYPE' -CaseSensitive -SimpleMatch if ($prototypes) { diff --git a/scripts/UploadAzureZip/CreateAndUploadNugetZip.ps1 b/scripts/UploadAzureZip/CreateAndUploadNugetZip.ps1 index 6c3c19fc55c95..98b6762c13201 100644 --- a/scripts/UploadAzureZip/CreateAndUploadNugetZip.ps1 +++ b/scripts/UploadAzureZip/CreateAndUploadNugetZip.ps1 @@ -7,7 +7,7 @@ If (-Not (Test-Path $AzCopyLoc)) { exit 1 } -$Branch = Read-Host 'which branch is this for? [Master|Future]' +$Branch = Read-Host 'which branch is this for? [Main|Future]' $Version = Read-Host 'which version of the zip file is this?' $AzureKey = Read-Host 'what is the azure key?' diff --git a/scripts/generate-badges.ps1 b/scripts/generate-badges.ps1 index f86c979c24023..563e20ab48499 100644 --- a/scripts/generate-badges.ps1 +++ b/scripts/generate-badges.ps1 @@ -4,8 +4,8 @@ param () $branchNames = @( - 'master', - 'master-vs-deps') + 'main', + 'main-vs-deps') function Get-AzureBadge($branchName, $jobName, $configName, [switch]$integration = $false) { $name = if ($integration) { "roslyn-integration-CI" } else { "roslyn-CI" } diff --git a/scripts/merge-vs-deps.ps1 b/scripts/merge-vs-deps.ps1 index 435599ef66c77..292cb41837ba4 100644 --- a/scripts/merge-vs-deps.ps1 +++ b/scripts/merge-vs-deps.ps1 @@ -6,15 +6,15 @@ git config user.name "RoslynValidation" git config user.email "validation@roslyn.net" if ($accessToken -eq "") { - git pull origin master-vs-deps + git pull origin main-vs-deps } else { $base64Pat = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":$accessToken")) - git -c http.extraheader="AUTHORIZATION: Basic $base64Pat" pull origin master-vs-deps + git -c http.extraheader="AUTHORIZATION: Basic $base64Pat" pull origin main-vs-deps } if (-not $?) { - Write-Host "##vso[task.logissue type=error]Failed to merge master-vs-deps into source branch" + Write-Host "##vso[task.logissue type=error]Failed to merge main-vs-deps into source branch" exit 1 } \ No newline at end of file diff --git a/scripts/report-ci-times.ps1 b/scripts/report-ci-times.ps1 index c54a6014ddba8..b9f22aad8eb53 100644 --- a/scripts/report-ci-times.ps1 +++ b/scripts/report-ci-times.ps1 @@ -122,8 +122,8 @@ function initialPass() { # use builds from any branch $false - # distrust all PR/feature/release branch builds and only get master CI builds - # $refName -ne "refs/heads/master" + # distrust all PR/feature/release branch builds and only get main CI builds + # $refName -ne "refs/heads/main" # ignore specific PRs which modify infra and thus don't measure the "production" behavior # $refName -eq "refs/pulls/50046/merge" -or $refName -eq "refs/pulls/49626/merge" diff --git a/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs b/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs index 82b0efb942dcc..01f88c61966b3 100644 --- a/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs +++ b/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs @@ -71,7 +71,7 @@ private MemberInfo ComputeMemberInfo(IMethodSymbol method) // type itself has a System.Index-based indexer, or because the language just // allows types to implicitly seem like they support this through: // - // https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md#implicit-index-support + // https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md#implicit-index-support return new MemberInfo(lengthLikeProperty, overloadedMethodOpt: null); } else diff --git a/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs b/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs index ed6cc8d668fa3..3e6fee925bc19 100644 --- a/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs +++ b/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs @@ -127,7 +127,7 @@ private MemberInfo ComputeMemberInfo(IMethodSymbol sliceLikeMethod, bool require // A Slice method can either be paired with an Range-taking indexer on the type, or // an Range-taking overload, or an explicit method called .Slice that takes two ints: // - // https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md#implicit-range-support + // https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md#implicit-range-support if (sliceLikeMethod.ReturnType.Equals(containingType)) { // it's a method like: MyType MyType.Get(int start, int length). Look for an diff --git a/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/Helpers.cs b/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/Helpers.cs index 9d83a0f1102e5..29874294a75ed 100644 --- a/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/Helpers.cs +++ b/src/Analyzers/CSharp/Analyzers/UseIndexOrRangeOperator/Helpers.cs @@ -71,7 +71,7 @@ public static bool IsIntIndexingMethod(IMethodSymbol method) (method.MethodKind == MethodKind.PropertyGet || method.MethodKind == MethodKind.Ordinary) && IsPublicInstance(method) && method.Parameters.Length == 1 && - // From: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md#decisions-made-during-implementation + // From: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md#decisions-made-during-implementation // // When looking for the pattern members, we look for original definitions, not // constructed members @@ -84,7 +84,7 @@ public static bool IsIntIndexingMethod(IMethodSymbol method) /// public static bool IsTwoArgumentSliceLikeMethod(IMethodSymbol method) { - // From: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md#decisions-made-during-implementation + // From: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md#decisions-made-during-implementation // // When looking for the pattern members, we look for original definitions, not // constructed members @@ -102,7 +102,7 @@ public static bool IsTwoArgumentSliceLikeMethod(IMethodSymbol method) /// public static bool IsOneArgumentSliceLikeMethod(IMethodSymbol method) { - // From: https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md#decisions-made-during-implementation + // From: https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md#decisions-made-during-implementation // // When looking for the pattern members, we look for original definitions, not // constructed members diff --git a/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/BinaryOperatorOverloadResolution.cs b/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/BinaryOperatorOverloadResolution.cs index 76b2da83cae70..81ba41a7dbe20 100644 --- a/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/BinaryOperatorOverloadResolution.cs +++ b/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/BinaryOperatorOverloadResolution.cs @@ -74,7 +74,7 @@ internal void BinaryOperatorOverloadResolution_NoEasyOut(BinaryOperatorKind kind // provided by the type of x (if any) and the candidate operators provided by the type of y (if any), // each determined using the rules of 7.3.5. Candidate operators only occur in the combined set once. - // From https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-06-27.md: + // From https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-06-27.md: // - We only even look for operator implementations in interfaces if one of the operands has a type that is // an interface or a type parameter with a non-empty effective base interface list. // - We should look at operators from classes first, in order to avoid breaking changes. @@ -111,7 +111,7 @@ internal void BinaryOperatorOverloadResolution_NoEasyOut(BinaryOperatorKind kind Debug.Assert((result.Results.Count == 0) != hadApplicableCandidates); // If there are no applicable candidates in classes / stuctures, try with interface sources. - // From https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-06-27.md: + // From https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-06-27.md: // We do not allow == and != and. Otherwise, there'd be no way to override Equals and GetHashCode, // so you couldn't do == and != in a recommended way. if (!hadApplicableCandidates && diff --git a/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/UnaryOperatorOverloadResolution.cs b/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/UnaryOperatorOverloadResolution.cs index 11aa8cf28ce35..e4341aa2b59b7 100644 --- a/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/UnaryOperatorOverloadResolution.cs +++ b/src/Compilers/CSharp/Portable/Binder/Semantics/Operators/UnaryOperatorOverloadResolution.cs @@ -366,7 +366,7 @@ private bool GetUserDefinedOperators(UnaryOperatorKind kind, BoundExpression ope // SPEC: base class of T0 if T0 is a type parameter. // https://github.com/dotnet/roslyn/issues/34451: The spec quote should be adjusted to cover operators from interfaces as well. - // From https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-06-27.md: + // From https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-06-27.md: // - We only even look for operator implementations in interfaces if one of the operands has a type that is an interface or // a type parameter with a non-empty effective base interface list. // - The applicable operators from classes / structs shadow those in interfaces.This matters for constrained type parameters: diff --git a/src/Compilers/CSharp/Portable/Symbols/Source/SourceTypeParameterSymbol.cs b/src/Compilers/CSharp/Portable/Symbols/Source/SourceTypeParameterSymbol.cs index 43987ab16725d..0364e5248e383 100644 --- a/src/Compilers/CSharp/Portable/Symbols/Source/SourceTypeParameterSymbol.cs +++ b/src/Compilers/CSharp/Portable/Symbols/Source/SourceTypeParameterSymbol.cs @@ -309,7 +309,7 @@ private void EnsureAttributesFromConstraints(BindingDiagnosticBag diagnostics) Location getLocation() => this.GetNonNullSyntaxNode().Location; } - // See https://github.com/dotnet/roslyn/blob/master/docs/features/nullable-metadata.md + // See https://github.com/dotnet/roslyn/blob/main/docs/features/nullable-metadata.md internal bool ConstraintsNeedNullableAttribute() { if (!DeclaringCompilation.ShouldEmitNullableAttributes(this)) diff --git a/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenDeconstructTests.cs b/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenDeconstructTests.cs index 0b9d11f7976fd..d47cd7fb86dc5 100644 --- a/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenDeconstructTests.cs +++ b/src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenDeconstructTests.cs @@ -2436,7 +2436,7 @@ public static void Deconstruct(this C value, out int a, out string b) [Fact] public void DeconstructRefExtensionMethod() { - // https://github.com/dotnet/csharplang/blob/master/meetings/2018/LDM-2018-01-24.md + // https://github.com/dotnet/csharplang/blob/main/meetings/2018/LDM-2018-01-24.md string source = @" struct C { diff --git a/src/Compilers/CSharp/Test/Emit/PDB/PDBTests.cs b/src/Compilers/CSharp/Test/Emit/PDB/PDBTests.cs index d98c3cd9a3460..4626deb25162b 100644 --- a/src/Compilers/CSharp/Test/Emit/PDB/PDBTests.cs +++ b/src/Compilers/CSharp/Test/Emit/PDB/PDBTests.cs @@ -613,7 +613,7 @@ class C {{ public static void Main() => System.Console.WriteLine(@""{verbatim}"" ", format: DebugInformationFormat.PortablePdb); // Native PDBs only support spans with line delta <= 127 (7 bit) - // https://github.com/Microsoft/microsoft-pdb/blob/master/include/cvinfo.h#L4621 + // https://github.com/Microsoft/microsoft-pdb/blob/main/include/cvinfo.h#L4621 c.VerifyPdb("C.Main", @" diff --git a/src/Compilers/CSharp/Test/Semantic/Semantics/InitOnlyMemberTests.cs b/src/Compilers/CSharp/Test/Semantic/Semantics/InitOnlyMemberTests.cs index 3fb86eb020310..961067e32f085 100644 --- a/src/Compilers/CSharp/Test/Semantic/Semantics/InitOnlyMemberTests.cs +++ b/src/Compilers/CSharp/Test/Semantic/Semantics/InitOnlyMemberTests.cs @@ -19,7 +19,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Semantics [CompilerTrait(CompilerFeature.InitOnlySetters)] public class InitOnlyMemberTests : CompilingTestBase { - // Spec: https://github.com/dotnet/csharplang/blob/master/proposals/init.md + // Spec: https://github.com/dotnet/csharplang/blob/main/proposals/init.md // https://github.com/dotnet/roslyn/issues/44685 // test dynamic scenario diff --git a/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs b/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs index e7dcc8b1a5108..6f34267e3b54e 100644 --- a/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs +++ b/src/Compilers/CSharp/Test/Semantic/Semantics/NullableReferenceTypesTests.cs @@ -74924,7 +74924,7 @@ void F(C x) ); } - // https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-12-18.md + // https://github.com/dotnet/csharplang/blob/main/meetings/2019/LDM-2019-12-18.md [Fact] public void OtherComparisonsAsPureNullTests_01() { @@ -75022,7 +75022,7 @@ static void F4(object o) comp.VerifyDiagnostics(); } - // https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-12-18.md + // https://github.com/dotnet/csharplang/blob/main/meetings/2019/LDM-2019-12-18.md [Fact] public void OtherComparisonsAsPureNullTests_03() { diff --git a/src/Compilers/CSharp/Test/Semantic/Semantics/OverloadResolutionTests.cs b/src/Compilers/CSharp/Test/Semantic/Semantics/OverloadResolutionTests.cs index ae0beed092660..f22749e458c2c 100644 --- a/src/Compilers/CSharp/Test/Semantic/Semantics/OverloadResolutionTests.cs +++ b/src/Compilers/CSharp/Test/Semantic/Semantics/OverloadResolutionTests.cs @@ -8986,7 +8986,7 @@ public interface IDetail } -public interface IMaster +public interface IMain { } @@ -9017,15 +9017,15 @@ public class Permission : IDetail } -public class Principal : IMaster +public class Principal : IMain { } public static class Class { - public static void RemoveDetail(this TMaster master, TChild child) - where TMaster : class, IMaster - where TChild : class, IDetail + public static void RemoveDetail(this TMain main, TChild child) + where TMain : class, IMain + where TChild : class, IDetail { System.Console.WriteLine(""RemoveDetail""); } diff --git a/src/Compilers/CSharp/Test/Symbol/Symbols/DefaultInterfaceImplementationTests.cs b/src/Compilers/CSharp/Test/Symbol/Symbols/DefaultInterfaceImplementationTests.cs index a16eeeaeb8423..c34381dcd8780 100644 --- a/src/Compilers/CSharp/Test/Symbol/Symbols/DefaultInterfaceImplementationTests.cs +++ b/src/Compilers/CSharp/Test/Symbol/Symbols/DefaultInterfaceImplementationTests.cs @@ -2273,7 +2273,7 @@ class Test1 : I1 targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation1.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-04-18.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-04-18.md, // we don't want to allow only one accessor to have an implementation. compilation1.VerifyDiagnostics( // (11,9): error CS0501: 'I1.P1.set' must declare a body because it is not marked abstract, extern, or partial @@ -2326,7 +2326,7 @@ class Test1 : I1 targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation1.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-04-18.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-04-18.md, // we don't want to allow only one accessor to have an implementation. compilation1.VerifyDiagnostics( // (6,9): error CS0501: 'I1.P1.get' must declare a body because it is not marked abstract, extern, or partial @@ -3636,7 +3636,7 @@ class Test1 : I1 targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation1.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-04-18.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-04-18.md, // we don't want to allow only one accessor to have an implementation. compilation1.VerifyDiagnostics( // (11,9): error CS0501: 'I1.this[int].set' must declare a body because it is not marked abstract, extern, or partial @@ -3689,7 +3689,7 @@ class Test1 : I1 targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation1.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-04-18.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-04-18.md, // we don't want to allow only one accessor to have an implementation. compilation1.VerifyDiagnostics( // (6,9): error CS0501: 'I1.this[int].get' must declare a body because it is not marked abstract, extern, or partial @@ -30669,7 +30669,7 @@ public virtual void M1() targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation2.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-06-14.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-06-14.md, // we do not require interfaces to have a most specific implementation of all members. Therefore, there are no // errors in this compilation. compilation2.VerifyDiagnostics(); @@ -33931,7 +33931,7 @@ class Test5 : I8 targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation2.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-06-14.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-06-14.md, // we do not require interfaces to have a most specific implementation of all members. Therefore, there are no // errors in this compilation. compilation2.VerifyDiagnostics(); @@ -35953,7 +35953,7 @@ public virtual event System.Action M1 targetFramework: TargetFramework.NetCoreApp); Assert.True(compilation2.Assembly.RuntimeSupportsDefaultInterfaceImplementation); - // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-06-14.md, + // According to LDM decision captured at https://github.com/dotnet/csharplang/blob/main/meetings/2017/LDM-2017-06-14.md, // we do not require interfaces to have a most specific implementation of all members. Therefore, there are no // errors in this compilation. compilation2.VerifyDiagnostics(); diff --git a/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets b/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets index a037c28140848..8c0cb50d0ad5d 100644 --- a/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets +++ b/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets @@ -61,7 +61,7 @@ If 'RunAnalyzers' is not set, then fallback to user facing property 'RunAnalyzersDuringBuild'. Latter property allows users to disable analyzers only for non-design time builds. Design time builds are background builds inside Visual Studio, - see details here: https://github.com/dotnet/project-system/blob/master/docs/design-time-builds.md. + see details here: https://github.com/dotnet/project-system/blob/main/docs/design-time-builds.md. Setting 'RunAnalyzersDuringBuild' to false, without setting 'RunAnalyzers', allows users to continue running analyzers in the background in Visual Studio while typing (i.e. intellisense), while disabling analyzer execution on explicitly invoked non-design time builds. diff --git a/src/Compilers/Core/Portable/CommandLine/CommonCompiler.cs b/src/Compilers/Core/Portable/CommandLine/CommonCompiler.cs index 9918ee8ac0da0..13dc3cbcf553d 100644 --- a/src/Compilers/Core/Portable/CommandLine/CommonCompiler.cs +++ b/src/Compilers/Core/Portable/CommandLine/CommonCompiler.cs @@ -1610,7 +1610,7 @@ private static void EmitDeterminismKey(CommandLineArguments args, string[] rawAr /// The string returned from this function represents the inputs to the compiler which impact determinism. It is /// meant to be inline with the specification here: /// - /// - https://github.com/dotnet/roslyn/blob/master/docs/compilers/Deterministic%20Inputs.md + /// - https://github.com/dotnet/roslyn/blob/main/docs/compilers/Deterministic%20Inputs.md /// /// Issue #8193 tracks filling this out to the full specification. /// diff --git a/src/Compilers/Core/Portable/CommandLine/SarifV1ErrorLogger.cs b/src/Compilers/Core/Portable/CommandLine/SarifV1ErrorLogger.cs index e9bfd6f25cf1e..e2dbca5ccf0c4 100644 --- a/src/Compilers/Core/Portable/CommandLine/SarifV1ErrorLogger.cs +++ b/src/Compilers/Core/Portable/CommandLine/SarifV1ErrorLogger.cs @@ -19,7 +19,7 @@ namespace Microsoft.CodeAnalysis /// Used for logging compiler diagnostics to a stream in the unstandardized SARIF /// (Static Analysis Results Interchange Format) v1.0.0 format. /// https://github.com/sarif-standard/sarif-spec - /// https://rawgit.com/sarif-standard/sarif-spec/master/Static%20Analysis%20Results%20Interchange%20Format%20(SARIF).html + /// https://rawgit.com/sarif-standard/sarif-spec/main/Static%20Analysis%20Results%20Interchange%20Format%20(SARIF).html /// /// /// To log diagnostics in the standardized SARIF v2.1.0 format, use the SarifV2ErrorLogger. diff --git a/src/Compilers/Core/Portable/DiaSymReader/Readme.md b/src/Compilers/Core/Portable/DiaSymReader/Readme.md index d3609d8262408..7e11b1d591d87 100644 --- a/src/Compilers/Core/Portable/DiaSymReader/Readme.md +++ b/src/Compilers/Core/Portable/DiaSymReader/Readme.md @@ -1,2 +1,2 @@ -The content of this directory is a copy of a subset of https://github.com/dotnet/symreader/tree/master/src/Microsoft.DiaSymReader. +The content of this directory is a copy of a subset of https://github.com/dotnet/symreader/tree/main/src/Microsoft.DiaSymReader. The only difference is in top-level class visibility (public in DiaSymReader, internal here). \ No newline at end of file diff --git a/src/Compilers/Core/Portable/InternalUtilities/JsonWriter.cs b/src/Compilers/Core/Portable/InternalUtilities/JsonWriter.cs index 1ba0835c8e488..d857dfaf9a0f9 100644 --- a/src/Compilers/Core/Portable/InternalUtilities/JsonWriter.cs +++ b/src/Compilers/Core/Portable/InternalUtilities/JsonWriter.cs @@ -163,7 +163,7 @@ public void Dispose() // String escaping implementation forked from System.Runtime.Serialization.Json to // avoid a large dependency graph for this small amount of code: // - // https://github.com/dotnet/corefx/blob/master/src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JavaScriptString.cs + // https://github.com/dotnet/corefx/blob/main/src/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Json/JavaScriptString.cs // private static string EscapeString(string? value) { diff --git a/src/Compilers/Core/Portable/MetadataReader/MetadataDecoder.cs b/src/Compilers/Core/Portable/MetadataReader/MetadataDecoder.cs index 6ab53d5fc5ea2..e2508b69b4f03 100644 --- a/src/Compilers/Core/Portable/MetadataReader/MetadataDecoder.cs +++ b/src/Compilers/Core/Portable/MetadataReader/MetadataDecoder.cs @@ -977,7 +977,7 @@ internal void DecodeLocalConstantBlobOrThrow(ref BlobReader sigReader, out TypeS if (typeCode == SignatureTypeCode.TypeHandle) { // TypeDefOrRefOrSpec encoded - // From the PortablePDB spec: https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localconstant-table-0x34 + // From the PortablePDB spec: https://github.com/dotnet/runtime/blob/main/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localconstant-table-0x34 // The encoding of the GeneralValue is determined based upon the type expressed by TypeDefOrRefOrSpecEncoded // specified in GeneralConstant. GeneralValue for special types listed in the table below has to be present // and is encoded as specified. diff --git a/src/Compilers/Core/Portable/SpecialType.cs b/src/Compilers/Core/Portable/SpecialType.cs index 3b16c67da6d5b..c1695c57132da 100644 --- a/src/Compilers/Core/Portable/SpecialType.cs +++ b/src/Compilers/Core/Portable/SpecialType.cs @@ -14,7 +14,7 @@ namespace Microsoft.CodeAnalysis /// /// /// Only types explicitly mentioned in "Co-located core types" spec - /// (https://github.com/dotnet/roslyn/blob/master/docs/compilers/Co-located%20core%20types.md) + /// (https://github.com/dotnet/roslyn/blob/main/docs/compilers/Co-located%20core%20types.md) /// can be in this enum. /// The following things should be in sync: /// 1) SpecialType enum diff --git a/src/Dependencies/CodeAnalysis.Debugging/CustomDebugInfoKind.cs b/src/Dependencies/CodeAnalysis.Debugging/CustomDebugInfoKind.cs index 3ed9159f47b46..afaf08923233f 100644 --- a/src/Dependencies/CodeAnalysis.Debugging/CustomDebugInfoKind.cs +++ b/src/Dependencies/CodeAnalysis.Debugging/CustomDebugInfoKind.cs @@ -48,13 +48,13 @@ internal enum CustomDebugInfoKind : byte /// /// C# and VB. Encodes EnC local variable slot map. - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#EditAndContinueLocalSlotMap. + /// See https://github.com/dotnet/corefx/blob/main/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#EditAndContinueLocalSlotMap. /// EditAndContinueLocalSlotMap = 6, /// /// C# and VB. Encodes EnC lambda map. - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#EditAndContinueLambdaAndClosureMap. + /// See https://github.com/dotnet/corefx/blob/main/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#EditAndContinueLambdaAndClosureMap. /// EditAndContinueLambdaMap = 7, diff --git a/src/EditorFeatures/CSharpTest/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs b/src/EditorFeatures/CSharpTest/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs index 90b4ed351ea7c..fc36b08505968 100644 --- a/src/EditorFeatures/CSharpTest/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs +++ b/src/EditorFeatures/CSharpTest/EmbeddedLanguages/RegularExpressions/CSharpRegexParserTests_DotnetNegativeTests.cs @@ -10,7 +10,7 @@ namespace Microsoft.CodeAnalysis.CSharp.UnitTests.EmbeddedLanguages.RegularExpressions { // These tests came from tests found at: - // https://github.com/dotnet/corefx/blob/master/src/System.Text.RegularExpressions/tests/ + // https://github.com/dotnet/corefx/blob/main/src/System.Text.RegularExpressions/tests/ public partial class CSharpRegexParserTests { [Fact] diff --git a/src/EditorFeatures/Core/Shared/Utilities/ThreadingContext.cs b/src/EditorFeatures/Core/Shared/Utilities/ThreadingContext.cs index 45942a5b5f827..d24bf9003f360 100644 --- a/src/EditorFeatures/Core/Shared/Utilities/ThreadingContext.cs +++ b/src/EditorFeatures/Core/Shared/Utilities/ThreadingContext.cs @@ -73,7 +73,7 @@ public JoinableTask RunWithShutdownBlockAsync(Func func public void Dispose() { - // https://github.com/Microsoft/vs-threading/blob/master/doc/cookbook_vs.md#how-to-write-a-fire-and-forget-method-responsibly + // https://github.com/Microsoft/vs-threading/blob/main/doc/cookbook_vs.md#how-to-write-a-fire-and-forget-method-responsibly _disposalTokenSource.Cancel(); try diff --git a/src/Features/CSharp/Portable/Completion/CompletionProviders/FunctionPointerUnmanagedCallingConventionCompletionProvider.cs b/src/Features/CSharp/Portable/Completion/CompletionProviders/FunctionPointerUnmanagedCallingConventionCompletionProvider.cs index e846e2cdae2be..484457e65da01 100644 --- a/src/Features/CSharp/Portable/Completion/CompletionProviders/FunctionPointerUnmanagedCallingConventionCompletionProvider.cs +++ b/src/Features/CSharp/Portable/Completion/CompletionProviders/FunctionPointerUnmanagedCallingConventionCompletionProvider.cs @@ -91,7 +91,7 @@ public override async Task ProvideCompletionsAsync(CompletionContext context) private static void AddTypes(HashSet completionItems, int contextPosition, SemanticModel semanticModel, CancellationToken cancellationToken) { // We have to find the set of types that meet the criteria listed in - // https://github.com/dotnet/csharplang/blob/master/proposals/csharp-9.0/function-pointers.md#mapping-the-calling_convention_specifier-to-a-callkind + // https://github.com/dotnet/csharplang/blob/main/proposals/csharp-9.0/function-pointers.md#mapping-the-calling_convention_specifier-to-a-callkind // We skip the check of an type being in the core assembly since that's not really necessary for our work. var compilerServicesNamespace = semanticModel.Compilation.GlobalNamespace.GetQualifiedNamespace("System.Runtime.CompilerServices"); if (compilerServicesNamespace == null) diff --git a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexCharClass.cs b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexCharClass.cs index c17da3a85458f..14169f502c4bd 100644 --- a/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexCharClass.cs +++ b/src/Features/Core/Portable/EmbeddedLanguages/RegularExpressions/RegexCharClass.cs @@ -18,7 +18,7 @@ namespace Microsoft.CodeAnalysis.EmbeddedLanguages.RegularExpressions using static FeaturesResources; /// - /// Minimal copy of https://github.com/dotnet/corefx/blob/master/src/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCharClass.cs + /// Minimal copy of https://github.com/dotnet/corefx/blob/main/src/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCharClass.cs /// Used to accurately determine if something is a WordChar according to the .NET regex engine. /// internal static class RegexCharClass diff --git a/src/Features/Lsif/Generator/Graph/DefinitionResult.cs b/src/Features/Lsif/Generator/Graph/DefinitionResult.cs index 6705ebefa2d86..43278d41c18f2 100644 --- a/src/Features/Lsif/Generator/Graph/DefinitionResult.cs +++ b/src/Features/Lsif/Generator/Graph/DefinitionResult.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a definitionResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentdefinition for further details. + /// Represents a definitionResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentdefinition for further details. /// internal sealed class DefinitionResult : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/Event.cs b/src/Features/Lsif/Generator/Graph/Event.cs index afff1c0c61c4b..2752742326b3a 100644 --- a/src/Features/Lsif/Generator/Graph/Event.cs +++ b/src/Features/Lsif/Generator/Graph/Event.cs @@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents an event vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#events for further details. + /// Represents an event vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#events for further details. /// internal sealed class Event : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs b/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs index cde2cdaca3597..81acb8ff7f723 100644 --- a/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs +++ b/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a foldingRangeResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentfoldingrange for further details. + /// Represents a foldingRangeResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentfoldingrange for further details. /// internal sealed class FoldingRangeResult : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/Item.cs b/src/Features/Lsif/Generator/Graph/Item.cs index 6f9e95e51583d..fe5ddd13d405c 100644 --- a/src/Features/Lsif/Generator/Graph/Item.cs +++ b/src/Features/Lsif/Generator/Graph/Item.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a single item that points to a range from a result. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentreferences + /// Represents a single item that points to a range from a result. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentreferences /// for an example of item edges. /// internal sealed class Item : Edge diff --git a/src/Features/Lsif/Generator/Graph/LsifDocument.cs b/src/Features/Lsif/Generator/Graph/LsifDocument.cs index a8f9b8b76bd26..19f113a9e7f4e 100644 --- a/src/Features/Lsif/Generator/Graph/LsifDocument.cs +++ b/src/Features/Lsif/Generator/Graph/LsifDocument.cs @@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents the document vertex that contains all the s. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#ranges for examples. + /// Represents the document vertex that contains all the s. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#ranges for examples. /// internal sealed class LsifDocument : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/LsifProject.cs b/src/Features/Lsif/Generator/Graph/LsifProject.cs index 14bd71e4e368f..899ba4f4d4dc9 100644 --- a/src/Features/Lsif/Generator/Graph/LsifProject.cs +++ b/src/Features/Lsif/Generator/Graph/LsifProject.cs @@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a top-level project. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#the-project-vertex for further details. + /// Represents a top-level project. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#the-project-vertex for further details. /// internal sealed class LsifProject : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/Range.cs b/src/Features/Lsif/Generator/Graph/Range.cs index a6b752616f7f4..094822f03addc 100644 --- a/src/Features/Lsif/Generator/Graph/Range.cs +++ b/src/Features/Lsif/Generator/Graph/Range.cs @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a Range for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#ranges for further details. + /// Represents a Range for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#ranges for further details. /// internal sealed class Range : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/ReferenceResult.cs b/src/Features/Lsif/Generator/Graph/ReferenceResult.cs index 4ae5c85f070e3..b447270b96a52 100644 --- a/src/Features/Lsif/Generator/Graph/ReferenceResult.cs +++ b/src/Features/Lsif/Generator/Graph/ReferenceResult.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a referenceResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentreferences for further details. + /// Represents a referenceResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentreferences for further details. /// internal sealed class ReferenceResult : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/ResultSet.cs b/src/Features/Lsif/Generator/Graph/ResultSet.cs index 2f6ccb01df7b6..0991a2c227426 100644 --- a/src/Features/Lsif/Generator/Graph/ResultSet.cs +++ b/src/Features/Lsif/Generator/Graph/ResultSet.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a single ResultSet for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#result-set for further details. + /// Represents a single ResultSet for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#result-set for further details. /// internal sealed class ResultSet : Vertex { diff --git a/src/Features/Lsif/Generator/README.md b/src/Features/Lsif/Generator/README.md index 27f9b6ab715e4..a5576f2398268 100644 --- a/src/Features/Lsif/Generator/README.md +++ b/src/Features/Lsif/Generator/README.md @@ -1,5 +1,5 @@ This tool consumes a project or solution and generates a Language Server Index Format file per the -[LSIF specification](https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md). +[LSIF specification](https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md). # Command Line Switches ## Specifying the Project to Process diff --git a/src/Tools/BuildBoss/README.md b/src/Tools/BuildBoss/README.md index 0c1504e0a3d54..7bea1ca910e33 100644 --- a/src/Tools/BuildBoss/README.md +++ b/src/Tools/BuildBoss/README.md @@ -6,7 +6,7 @@ This is a tool to validate the state of our solutions, project files and other b > BuildBoss.exe ``` -This tool is run on every CI job against our important solution files: [Roslyn.sln](https://github.com/dotnet/roslyn/blob/master/Roslyn.sln), and [CrossPlatform.sln](https://github.com/dotnet/roslyn/blob/master/CrossPlatform.sln). +This tool is run on every CI job against our important solution files: [Roslyn.sln](https://github.com/dotnet/roslyn/blob/main/Roslyn.sln), and [CrossPlatform.sln](https://github.com/dotnet/roslyn/blob/main/CrossPlatform.sln). Violations reported are important to fix as they represent correctness issues in our build. Many of the properties verified represent problems that otherwise won't be verified at check in time. diff --git a/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs b/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs index 7ceecc61c4baa..b5b867955289e 100644 --- a/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs +++ b/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs @@ -14,7 +14,7 @@ namespace BuildBoss /// /// This type invokes the analyzer here: /// - /// https://github.com/KirillOsenkov/MSBuildStructuredLog/blob/master/src/StructuredLogger/Analyzers/DoubleWritesAnalyzer.cs + /// https://github.com/KirillOsenkov/MSBuildStructuredLog/blob/main/src/StructuredLogger/Analyzers/DoubleWritesAnalyzer.cs /// /// internal sealed class StructuredLoggerCheckerUtil : ICheckerUtil diff --git a/src/Tools/BuildValidator/CompilationOptionsReader.cs b/src/Tools/BuildValidator/CompilationOptionsReader.cs index 61d9ec0535406..b24aa793d8154 100644 --- a/src/Tools/BuildValidator/CompilationOptionsReader.cs +++ b/src/Tools/BuildValidator/CompilationOptionsReader.cs @@ -47,20 +47,20 @@ internal SourceFileInfo( internal class CompilationOptionsReader { - // GUIDs specified in https://github.com/dotnet/runtime/blob/master/docs/design/specs/PortablePdb-Metadata.md#document-table-0x30 + // GUIDs specified in https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#document-table-0x30 public static readonly Guid HashAlgorithmSha1 = unchecked(new Guid((int)0xff1816ec, (short)0xaa5e, 0x4d10, 0x87, 0xf7, 0x6f, 0x49, 0x63, 0x83, 0x34, 0x60)); public static readonly Guid HashAlgorithmSha256 = unchecked(new Guid((int)0x8829d00f, 0x11b8, 0x4213, 0x87, 0x8b, 0x77, 0x0e, 0x85, 0x97, 0xac, 0x16)); - // https://github.com/dotnet/runtime/blob/master/docs/design/specs/PortablePdb-Metadata.md#compilation-metadata-references-c-and-vb-compilers + // https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#compilation-metadata-references-c-and-vb-compilers public static readonly Guid MetadataReferenceInfoGuid = new Guid("7E4D4708-096E-4C5C-AEDA-CB10BA6A740D"); - // https://github.com/dotnet/runtime/blob/master/docs/design/specs/PortablePdb-Metadata.md#compilation-options-c-and-vb-compilers + // https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#compilation-options-c-and-vb-compilers public static readonly Guid CompilationOptionsGuid = new Guid("B5FEEC05-8CD0-4A83-96DA-466284BB4BD8"); - // https://github.com/dotnet/runtime/blob/master/docs/design/specs/PortablePdb-Metadata.md#embedded-source-c-and-vb-compilers + // https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#embedded-source-c-and-vb-compilers public static readonly Guid EmbeddedSourceGuid = new Guid("0E8A571B-6926-466E-B4AD-8AB04611F5FE"); - // https://github.com/dotnet/runtime/blob/master/docs/design/specs/PortablePdb-Metadata.md#source-link-c-and-vb-compilers + // https://github.com/dotnet/runtime/blob/main/docs/design/specs/PortablePdb-Metadata.md#source-link-c-and-vb-compilers public static readonly Guid SourceLinkGuid = new Guid("CC110556-A091-4D38-9FEC-25AB9A351A6A"); public MetadataReader PdbReader { get; } diff --git a/src/Tools/Source/RunTests/TestRunner.cs b/src/Tools/Source/RunTests/TestRunner.cs index 886399270665e..1d4ebb4f74fdf 100644 --- a/src/Tools/Source/RunTests/TestRunner.cs +++ b/src/Tools/Source/RunTests/TestRunner.cs @@ -70,7 +70,7 @@ internal async Task RunAllOnHelixAsync(IEnumerable a var correlationPayload = $@""; // https://github.com/dotnet/roslyn/issues/50661 - // it's possible we should be using the BUILD_SOURCEVERSIONAUTHOR instead here a la https://github.com/dotnet/arcade/blob/master/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/Readme.md#how-to-use + // it's possible we should be using the BUILD_SOURCEVERSIONAUTHOR instead here a la https://github.com/dotnet/arcade/blob/main/src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/Readme.md#how-to-use // however that variable isn't documented at https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml var queuedBy = Environment.GetEnvironmentVariable("BUILD_QUEUEDBY"); if (queuedBy is null) diff --git a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/AdditionalPropertyNames.cs b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/AdditionalPropertyNames.cs index 082a62712f8a9..d83322289e318 100644 --- a/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/AdditionalPropertyNames.cs +++ b/src/VisualStudio/Core/Def/Implementation/ProjectSystem/CPS/AdditionalPropertyNames.cs @@ -12,7 +12,7 @@ namespace Microsoft.VisualStudio.LanguageServices.ProjectSystem internal static class AdditionalPropertyNames { // All supported properties can be found in dotnet/project-system repo - // https://github.com/dotnet/project-system/blob/master/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Rules/LanguageService.xaml + // https://github.com/dotnet/project-system/blob/main/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Rules/LanguageService.xaml public const string RootNamespace = nameof(RootNamespace); public const string MaxSupportedLangVersion = nameof(MaxSupportedLangVersion); diff --git a/src/VisualStudio/Core/Def/Implementation/VisualStudioWorkspaceContextService.cs b/src/VisualStudio/Core/Def/Implementation/VisualStudioWorkspaceContextService.cs index c1d65481e5d66..0fd1bd31eef01 100644 --- a/src/VisualStudio/Core/Def/Implementation/VisualStudioWorkspaceContextService.cs +++ b/src/VisualStudio/Core/Def/Implementation/VisualStudioWorkspaceContextService.cs @@ -22,7 +22,7 @@ internal class VisualStudioWorkspaceContextService : IWorkspaceContextService public const string LspEditorFeatureFlagName = "Roslyn.LSP.Editor"; // UI context defined by Live Share when connected as a guest in a Live Share session - // https://devdiv.visualstudio.com/DevDiv/_git/Cascade?path=%2Fsrc%2FVS%2FContracts%2FGuidList.cs&version=GBmaster&line=32&lineEnd=33&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents + // https://devdiv.visualstudio.com/DevDiv/_git/Cascade?path=%2Fsrc%2FVS%2FContracts%2FGuidList.cs&version=GBmain&line=32&lineEnd=33&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents private static readonly Guid LiveShareGuestUIContextGuid = Guid.Parse("fd93f3eb-60da-49cd-af15-acda729e357e"); private readonly Workspace _workspace; diff --git a/src/VisualStudio/Razor/RazorLanguageServiceClient.cs b/src/VisualStudio/Razor/RazorLanguageServiceClient.cs index 41bf7047d2568..57e3f27d9627d 100644 --- a/src/VisualStudio/Razor/RazorLanguageServiceClient.cs +++ b/src/VisualStudio/Razor/RazorLanguageServiceClient.cs @@ -14,7 +14,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Razor { - // Used in https://github.com/aspnet/AspNetCore-Tooling/tree/master/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/OOPTagHelperResolver.cs + // Used in https://github.com/aspnet/AspNetCore-Tooling/tree/main/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/OOPTagHelperResolver.cs [Obsolete("Use Microsoft.CodeAnalysis.ExternalAccess.Razor.RazorRemoteHostClient instead")] internal sealed class RazorLanguageServiceClient { diff --git a/src/Workspaces/CSharp/Portable/CodeGeneration/AttributeGenerator.cs b/src/Workspaces/CSharp/Portable/CodeGeneration/AttributeGenerator.cs index 078a5c777ca98..bab862fbbd1c7 100644 --- a/src/Workspaces/CSharp/Portable/CodeGeneration/AttributeGenerator.cs +++ b/src/Workspaces/CSharp/Portable/CodeGeneration/AttributeGenerator.cs @@ -83,7 +83,7 @@ public static SyntaxList GenerateAttributeLists( private static bool IsCompilerInternalAttribute(AttributeData attribute) { - // from https://github.com/dotnet/roslyn/blob/master/docs/features/nullable-metadata.md + // from https://github.com/dotnet/roslyn/blob/main/docs/features/nullable-metadata.md var attrClass = attribute.AttributeClass; if (attrClass == null) return false; diff --git a/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs b/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs index 58503f5754401..33f7f2ca79872 100644 --- a/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs +++ b/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs @@ -171,7 +171,7 @@ public void EditDistance12() "lady","lake","land","language","large","last","late","laugh","law","lay","lead","learn","least","leave", "led","left","leg","length","less","let","letter","level","lie","life","lift","light","like","line","liquid", "list","listen","little","live","locate","log","lone","long","look","lost","lot","loud","love","low", - "machine","made","magnet","main","major","make","man","many","map","mark","market","mass","master","match", + "machine","made","magnet","main","major","make","man","many","map","mark","market","mass","main","match", "material","matter","may","me","mean","meant","measure","meat","meet","melody","men","metal","method", "middle","might","mile","milk","million","mind","mine","minute","miss","mix","modern","molecule","moment", "money","month","moon","more","morning","most","mother","motion","mount","mountain","mouth","move","much", diff --git a/src/Workspaces/Remote/Razor/ServiceHubServiceBase.cs b/src/Workspaces/Remote/Razor/ServiceHubServiceBase.cs index 34af6b6aec6f5..d63d085ed531c 100644 --- a/src/Workspaces/Remote/Razor/ServiceHubServiceBase.cs +++ b/src/Workspaces/Remote/Razor/ServiceHubServiceBase.cs @@ -17,7 +17,7 @@ namespace Microsoft.CodeAnalysis.Remote { - // Used by Razor: https://github.com/aspnet/AspNetCore-Tooling/blob/master/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/RazorServiceBase.cs + // Used by Razor: https://github.com/aspnet/AspNetCore-Tooling/blob/main/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/RazorServiceBase.cs internal abstract class ServiceHubServiceBase : ServiceBase { private PinnedSolutionInfo? _solutionInfo; diff --git a/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Extensions/ExpressionSyntaxExtensions.cs b/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Extensions/ExpressionSyntaxExtensions.cs index b5801f94e2dd2..430e349662eef 100644 --- a/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Extensions/ExpressionSyntaxExtensions.cs +++ b/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Extensions/ExpressionSyntaxExtensions.cs @@ -703,7 +703,7 @@ public static OperatorPrecedence GetOperatorPrecedence(this ExpressionSyntax exp return OperatorPrecedence.Unary; case SyntaxKind.RangeExpression: - // From C# spec, https://github.com/dotnet/csharplang/blob/master/proposals/csharp-8.0/ranges.md#systemrange + // From C# spec, https://github.com/dotnet/csharplang/blob/main/proposals/csharp-8.0/ranges.md#systemrange // Range: .. return OperatorPrecedence.Range; From cac71f483679a73e6f518d2cd89aedf39362f10f Mon Sep 17 00:00:00 2001 From: Allison Chou Date: Wed, 3 Mar 2021 16:23:07 -0800 Subject: [PATCH 2/4] Edits --- .vscode/launch.json | 2 +- eng/common/tools.ps1 | 2 +- eng/common/tools.sh | 2 +- src/Features/Lsif/Generator/Graph/DefinitionResult.cs | 2 +- src/Features/Lsif/Generator/Graph/Event.cs | 2 +- src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs | 2 +- src/Features/Lsif/Generator/Graph/Item.cs | 2 +- src/Features/Lsif/Generator/Graph/LsifDocument.cs | 2 +- src/Features/Lsif/Generator/Graph/LsifProject.cs | 2 +- src/Features/Lsif/Generator/Graph/Range.cs | 2 +- src/Features/Lsif/Generator/Graph/ReferenceResult.cs | 2 +- src/Features/Lsif/Generator/Graph/ResultSet.cs | 2 +- src/Features/Lsif/Generator/README.md | 2 +- src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs | 2 +- src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d7d14f82f8116..5c446623b4d14 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,7 @@ { // Use IntelliSense to find out which attributes exist for C# debugging // Use hover for the description of the existing attributes - // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/main/debugger-launchjson.md + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md "version": "0.2.0", "configurations": [ { diff --git a/eng/common/tools.ps1 b/eng/common/tools.ps1 index 7e74cda61f3eb..84651fea050ed 100644 --- a/eng/common/tools.ps1 +++ b/eng/common/tools.ps1 @@ -12,7 +12,7 @@ [bool]$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $ci } # Set to true to use the pipelines logger which will enable Azure logging output. -# https://github.com/Microsoft/azure-pipelines-tasks/blob/main/docs/authoring/commands.md +# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md # This flag is meant as a temporary opt-opt for the feature while validate it across # our consumers. It will be deleted in the future. [bool]$pipelinesLog = if (Test-Path variable:pipelinesLog) { $pipelinesLog } else { $ci } diff --git a/eng/common/tools.sh b/eng/common/tools.sh index 952f6e8e95351..4df7e60e884e9 100755 --- a/eng/common/tools.sh +++ b/eng/common/tools.sh @@ -6,7 +6,7 @@ ci=${ci:-false} # Set to true to use the pipelines logger which will enable Azure logging output. -# https://github.com/Microsoft/azure-pipelines-tasks/blob/main/docs/authoring/commands.md +# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md # This flag is meant as a temporary opt-opt for the feature while validate it across # our consumers. It will be deleted in the future. if [[ "$ci" == true ]]; then diff --git a/src/Features/Lsif/Generator/Graph/DefinitionResult.cs b/src/Features/Lsif/Generator/Graph/DefinitionResult.cs index 43278d41c18f2..6705ebefa2d86 100644 --- a/src/Features/Lsif/Generator/Graph/DefinitionResult.cs +++ b/src/Features/Lsif/Generator/Graph/DefinitionResult.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a definitionResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentdefinition for further details. + /// Represents a definitionResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentdefinition for further details. /// internal sealed class DefinitionResult : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/Event.cs b/src/Features/Lsif/Generator/Graph/Event.cs index 2752742326b3a..afff1c0c61c4b 100644 --- a/src/Features/Lsif/Generator/Graph/Event.cs +++ b/src/Features/Lsif/Generator/Graph/Event.cs @@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents an event vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#events for further details. + /// Represents an event vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#events for further details. /// internal sealed class Event : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs b/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs index 81acb8ff7f723..cde2cdaca3597 100644 --- a/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs +++ b/src/Features/Lsif/Generator/Graph/FoldingRangeResult.cs @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a foldingRangeResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentfoldingrange for further details. + /// Represents a foldingRangeResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentfoldingrange for further details. /// internal sealed class FoldingRangeResult : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/Item.cs b/src/Features/Lsif/Generator/Graph/Item.cs index fe5ddd13d405c..6f9e95e51583d 100644 --- a/src/Features/Lsif/Generator/Graph/Item.cs +++ b/src/Features/Lsif/Generator/Graph/Item.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a single item that points to a range from a result. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentreferences + /// Represents a single item that points to a range from a result. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentreferences /// for an example of item edges. /// internal sealed class Item : Edge diff --git a/src/Features/Lsif/Generator/Graph/LsifDocument.cs b/src/Features/Lsif/Generator/Graph/LsifDocument.cs index 19f113a9e7f4e..a8f9b8b76bd26 100644 --- a/src/Features/Lsif/Generator/Graph/LsifDocument.cs +++ b/src/Features/Lsif/Generator/Graph/LsifDocument.cs @@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents the document vertex that contains all the s. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#ranges for examples. + /// Represents the document vertex that contains all the s. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#ranges for examples. /// internal sealed class LsifDocument : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/LsifProject.cs b/src/Features/Lsif/Generator/Graph/LsifProject.cs index 899ba4f4d4dc9..14bd71e4e368f 100644 --- a/src/Features/Lsif/Generator/Graph/LsifProject.cs +++ b/src/Features/Lsif/Generator/Graph/LsifProject.cs @@ -7,7 +7,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a top-level project. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#the-project-vertex for further details. + /// Represents a top-level project. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#the-project-vertex for further details. /// internal sealed class LsifProject : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/Range.cs b/src/Features/Lsif/Generator/Graph/Range.cs index 094822f03addc..a6b752616f7f4 100644 --- a/src/Features/Lsif/Generator/Graph/Range.cs +++ b/src/Features/Lsif/Generator/Graph/Range.cs @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a Range for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#ranges for further details. + /// Represents a Range for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#ranges for further details. /// internal sealed class Range : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/ReferenceResult.cs b/src/Features/Lsif/Generator/Graph/ReferenceResult.cs index b447270b96a52..4ae5c85f070e3 100644 --- a/src/Features/Lsif/Generator/Graph/ReferenceResult.cs +++ b/src/Features/Lsif/Generator/Graph/ReferenceResult.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a referenceResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#request-textdocumentreferences for further details. + /// Represents a referenceResult vertex for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#request-textdocumentreferences for further details. /// internal sealed class ReferenceResult : Vertex { diff --git a/src/Features/Lsif/Generator/Graph/ResultSet.cs b/src/Features/Lsif/Generator/Graph/ResultSet.cs index 0991a2c227426..2f6ccb01df7b6 100644 --- a/src/Features/Lsif/Generator/Graph/ResultSet.cs +++ b/src/Features/Lsif/Generator/Graph/ResultSet.cs @@ -5,7 +5,7 @@ namespace Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.Graph { /// - /// Represents a single ResultSet for serialization. See https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md#result-set for further details. + /// Represents a single ResultSet for serialization. See https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md#result-set for further details. /// internal sealed class ResultSet : Vertex { diff --git a/src/Features/Lsif/Generator/README.md b/src/Features/Lsif/Generator/README.md index a5576f2398268..27f9b6ab715e4 100644 --- a/src/Features/Lsif/Generator/README.md +++ b/src/Features/Lsif/Generator/README.md @@ -1,5 +1,5 @@ This tool consumes a project or solution and generates a Language Server Index Format file per the -[LSIF specification](https://github.com/Microsoft/language-server-protocol/blob/main/indexFormat/specification.md). +[LSIF specification](https://github.com/Microsoft/language-server-protocol/blob/master/indexFormat/specification.md). # Command Line Switches ## Specifying the Project to Process diff --git a/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs b/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs index b5b867955289e..7ceecc61c4baa 100644 --- a/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs +++ b/src/Tools/BuildBoss/StructuredLoggerCheckerUtil.cs @@ -14,7 +14,7 @@ namespace BuildBoss /// /// This type invokes the analyzer here: /// - /// https://github.com/KirillOsenkov/MSBuildStructuredLog/blob/main/src/StructuredLogger/Analyzers/DoubleWritesAnalyzer.cs + /// https://github.com/KirillOsenkov/MSBuildStructuredLog/blob/master/src/StructuredLogger/Analyzers/DoubleWritesAnalyzer.cs /// /// internal sealed class StructuredLoggerCheckerUtil : ICheckerUtil diff --git a/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs b/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs index 33f7f2ca79872..58503f5754401 100644 --- a/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs +++ b/src/Workspaces/CoreTest/UtilityTest/EditDistanceTests.cs @@ -171,7 +171,7 @@ public void EditDistance12() "lady","lake","land","language","large","last","late","laugh","law","lay","lead","learn","least","leave", "led","left","leg","length","less","let","letter","level","lie","life","lift","light","like","line","liquid", "list","listen","little","live","locate","log","lone","long","look","lost","lot","loud","love","low", - "machine","made","magnet","main","major","make","man","many","map","mark","market","mass","main","match", + "machine","made","magnet","main","major","make","man","many","map","mark","market","mass","master","match", "material","matter","may","me","mean","meant","measure","meat","meet","melody","men","metal","method", "middle","might","mile","milk","million","mind","mine","minute","miss","mix","modern","molecule","moment", "money","month","moon","more","morning","most","mother","motion","mount","mountain","mouth","move","much", From 97fff03cb1cfb208eec80980a5877f672a26e9ec Mon Sep 17 00:00:00 2001 From: Allison Chou Date: Wed, 3 Mar 2021 17:03:35 -0800 Subject: [PATCH 3/4] Remove all changes to eng/common --- eng/common/SigningValidation.proj | 2 +- eng/common/generate-graph-files.ps1 | 2 +- eng/common/internal-feed-operations.ps1 | 2 +- eng/common/internal-feed-operations.sh | 2 +- eng/common/native/CommonLibrary.psm1 | 2 +- eng/common/performance/performance-setup.ps1 | 2 +- eng/common/performance/performance-setup.sh | 4 ++-- eng/common/sdl/execute-all-sdl-tools.ps1 | 2 +- eng/common/sdl/push-gdn.ps1 | 2 +- eng/common/templates/post-build/post-build.yml | 4 ++-- eng/common/templates/steps/perf-send-to-helix.yml | 4 ++-- eng/common/templates/steps/send-to-helix.yml | 4 ++-- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/eng/common/SigningValidation.proj b/eng/common/SigningValidation.proj index f011dd8bb168d..3d0ac80af3ff5 100644 --- a/eng/common/SigningValidation.proj +++ b/eng/common/SigningValidation.proj @@ -37,7 +37,7 @@ diff --git a/eng/common/generate-graph-files.ps1 b/eng/common/generate-graph-files.ps1 index b97a8930b25c9..b056e4c1ac2a3 100644 --- a/eng/common/generate-graph-files.ps1 +++ b/eng/common/generate-graph-files.ps1 @@ -6,7 +6,7 @@ Param( [string] $darcVersion = '1.1.0-beta.19175.6', # darc's version [string] $graphvizVersion = '2.38', # GraphViz version [switch] $includeToolset # Whether the graph should include toolset dependencies or not. i.e. arcade, optimization. For more about - # toolset dependencies see https://github.com/dotnet/arcade/blob/main/Documentation/Darc.md#toolset-vs-product-dependencies + # toolset dependencies see https://github.com/dotnet/arcade/blob/master/Documentation/Darc.md#toolset-vs-product-dependencies ) $ErrorActionPreference = "Stop" diff --git a/eng/common/internal-feed-operations.ps1 b/eng/common/internal-feed-operations.ps1 index 8ea0355dabfb7..66a4b754d4d15 100644 --- a/eng/common/internal-feed-operations.ps1 +++ b/eng/common/internal-feed-operations.ps1 @@ -24,7 +24,7 @@ function SetupCredProvider { Write-Host "Setting up Cred Provider NuGet plugin in the agent..." Write-Host "Getting 'installcredprovider.ps1' from 'https://github.com/microsoft/artifacts-credprovider'..." - $url = 'https://raw.githubusercontent.com/microsoft/artifacts-credprovider/main/helpers/installcredprovider.ps1' + $url = 'https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.ps1' Write-Host "Writing the contents of 'installcredprovider.ps1' locally..." Invoke-WebRequest $url -OutFile installcredprovider.ps1 diff --git a/eng/common/internal-feed-operations.sh b/eng/common/internal-feed-operations.sh index 6025ec23acc82..5eb546990dec8 100755 --- a/eng/common/internal-feed-operations.sh +++ b/eng/common/internal-feed-operations.sh @@ -13,7 +13,7 @@ function SetupCredProvider { echo "Setting up Cred Provider NuGet plugin in the agent..."... echo "Getting 'installcredprovider.ps1' from 'https://github.com/microsoft/artifacts-credprovider'..." - local url="https://raw.githubusercontent.com/microsoft/artifacts-credprovider/main/helpers/installcredprovider.sh" + local url="https://raw.githubusercontent.com/microsoft/artifacts-credprovider/master/helpers/installcredprovider.sh" echo "Writing the contents of 'installcredprovider.ps1' locally..." local installcredproviderPath="installcredprovider.sh" diff --git a/eng/common/native/CommonLibrary.psm1 b/eng/common/native/CommonLibrary.psm1 index 2ec7f4e9c061b..41416862d9132 100644 --- a/eng/common/native/CommonLibrary.psm1 +++ b/eng/common/native/CommonLibrary.psm1 @@ -225,7 +225,7 @@ function New-ScriptShim { # WinShimmer is a small .NET Framework program that creates .exe shims to bootstrapped programs # Many of the checks for installed programs expect a .exe extension for Windows tools, rather # than a .bat or .cmd file. - # Source: https://github.com/dotnet/arcade/tree/main/src/WinShimmer + # Source: https://github.com/dotnet/arcade/tree/master/src/WinShimmer if (-Not (Test-Path "$ShimDirectory\WinShimmer\winshimmer.exe")) { $InstallStatus = DownloadAndExtract -Uri "$BaseUri/windows/winshimmer/WinShimmer.zip" ` -InstallDirectory $ShimDirectory\WinShimmer ` diff --git a/eng/common/performance/performance-setup.ps1 b/eng/common/performance/performance-setup.ps1 index c4eaaa54d7be3..ec41965fc895d 100644 --- a/eng/common/performance/performance-setup.ps1 +++ b/eng/common/performance/performance-setup.ps1 @@ -58,7 +58,7 @@ if ($RunFromPerformanceRepo) { robocopy $SourceDirectory $PerformanceDirectory /E /XD $PayloadDirectory $SourceDirectory\artifacts $SourceDirectory\.git } else { - git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory + git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $PerformanceDirectory } if ($UseCoreRun) { diff --git a/eng/common/performance/performance-setup.sh b/eng/common/performance/performance-setup.sh index fe40533f84aed..2f2092166e43f 100755 --- a/eng/common/performance/performance-setup.sh +++ b/eng/common/performance/performance-setup.sh @@ -96,7 +96,7 @@ while (($# > 0)); do echo " --help Print help and exit" echo "" echo "Advanced settings:" - echo " --framework The framework to run, if not running in main" + echo " --framework The framework to run, if not running in master" echo " --compliationmode The compilation mode if not passing --configurations" echo " --sourcedirectory The directory of the sources. Defaults to env:BUILD_SOURCESDIRECTORY" echo " --repository The name of the repository in the / format. Defaults to env:BUILD_REPOSITORY_NAME" @@ -173,7 +173,7 @@ if [[ "$run_from_perf_repo" = true ]]; then performance_directory=$workitem_directory setup_arguments="--perf-hash $commit_sha $common_setup_arguments" else - git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance $performance_directory + git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $performance_directory docs_directory=$performance_directory/docs mv $docs_directory $workitem_directory diff --git a/eng/common/sdl/execute-all-sdl-tools.ps1 b/eng/common/sdl/execute-all-sdl-tools.ps1 index 27e54740681c4..01799d63ff365 100644 --- a/eng/common/sdl/execute-all-sdl-tools.ps1 +++ b/eng/common/sdl/execute-all-sdl-tools.ps1 @@ -3,7 +3,7 @@ Param( [string] $NugetPackageDirectory, # Required: directory where NuGet packages are installed (not needed if GuardianCliLocation is specified) [string] $GuardianCliLocation, # Optional: Direct location of Guardian CLI executable if GuardianPackageName & NugetPackageDirectory are not specified [string] $Repository=$env:BUILD_REPOSITORY_NAME, # Required: the name of the repository (e.g. dotnet/arcade) - [string] $BranchName=$env:BUILD_SOURCEBRANCH, # Optional: name of branch or version of gdn settings; defaults to main + [string] $BranchName=$env:BUILD_SOURCEBRANCH, # Optional: name of branch or version of gdn settings; defaults to master [string] $SourceDirectory=$env:BUILD_SOURCESDIRECTORY, # Required: the directory where source files are located [string] $ArtifactsDirectory = (Join-Path $env:BUILD_SOURCESDIRECTORY ("artifacts")), # Required: the directory where build artifacts are located [string] $AzureDevOpsAccessToken, # Required: access token for dnceng; should be provided via KeyVault diff --git a/eng/common/sdl/push-gdn.ps1 b/eng/common/sdl/push-gdn.ps1 index faffee0bdbbb9..79c707d6d8a03 100644 --- a/eng/common/sdl/push-gdn.ps1 +++ b/eng/common/sdl/push-gdn.ps1 @@ -1,6 +1,6 @@ Param( [string] $Repository, - [string] $BranchName="main", + [string] $BranchName="master", [string] $GdnFolder, [string] $AzureDevOpsAccessToken, [string] $PushReason diff --git a/eng/common/templates/post-build/post-build.yml b/eng/common/templates/post-build/post-build.yml index 91888d522a634..079375af4671c 100644 --- a/eng/common/templates/post-build/post-build.yml +++ b/eng/common/templates/post-build/post-build.yml @@ -396,8 +396,8 @@ stages: artifactsPublishingAdditionalParameters: ${{ parameters.artifactsPublishingAdditionalParameters }} publishInstallersAndChecksums: ${{ parameters.publishInstallersAndChecksums }} symbolPublishingAdditionalParameters: ${{ parameters.symbolPublishingAdditionalParameters }} - stageName: 'VS_Main_Publishing' - channelName: 'VS Main' + stageName: 'VS_Master_Publishing' + channelName: 'VS Master' channelId: 1012 transportFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools-transport/nuget/v3/index.json' shippingFeed: 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json' diff --git a/eng/common/templates/steps/perf-send-to-helix.yml b/eng/common/templates/steps/perf-send-to-helix.yml index 1f1334d91451a..b3ea9acf1f160 100644 --- a/eng/common/templates/steps/perf-send-to-helix.yml +++ b/eng/common/templates/steps/perf-send-to-helix.yml @@ -10,8 +10,8 @@ parameters: WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion - DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json - DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json + DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json + DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget." Creator: '' # optional -- if the build is external, use this to specify who is sending the job diff --git a/eng/common/templates/steps/send-to-helix.yml b/eng/common/templates/steps/send-to-helix.yml index df48eab933bd0..05df886f55f74 100644 --- a/eng/common/templates/steps/send-to-helix.yml +++ b/eng/common/templates/steps/send-to-helix.yml @@ -18,8 +18,8 @@ parameters: XUnitRuntimeTargetFramework: '' # optional -- framework to use for the xUnit console runner XUnitRunnerVersion: '' # optional -- version of the xUnit nuget package you wish to use on Helix; required for XUnitProjects IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion - DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json - DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json + DotNetCliPackageType: '' # optional -- either 'sdk' or 'runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json + DotNetCliVersion: '' # optional -- version of the CLI to send to Helix; based on this: https://raw.githubusercontent.com/dotnet/core/master/release-notes/releases.json EnableXUnitReporter: false # optional -- true enables XUnit result reporting to Mission Control WaitForWorkItemCompletion: true # optional -- true will make the task wait until work items have been completed and fail the build if work items fail. False is "fire and forget." IsExternal: false # [DEPRECATED] -- doesn't do anything, jobs are external if HelixAccessToken is empty and Creator is set From 5d8ffc08a1582c21151d6fdfec46360ace37c235 Mon Sep 17 00:00:00 2001 From: Allison Chou Date: Wed, 3 Mar 2021 17:05:05 -0800 Subject: [PATCH 4/4] Remove all changes to eng/common --- eng/common/sdl/init-sdl.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/sdl/init-sdl.ps1 b/eng/common/sdl/init-sdl.ps1 index ea7b0382e59c2..d34d252875461 100644 --- a/eng/common/sdl/init-sdl.ps1 +++ b/eng/common/sdl/init-sdl.ps1 @@ -1,7 +1,7 @@ Param( [string] $GuardianCliLocation, [string] $Repository, - [string] $BranchName="main", + [string] $BranchName="master", [string] $WorkingDirectory, [string] $AzureDevOpsAccessToken, [string] $GuardianLoggerLevel="Standard"