Skip to content

Commit

Permalink
Merge tag '6.4.0.123' into develop
Browse files Browse the repository at this point in the history
Insert 6.4.0-rc.123 into rel/d17.4 on 11/07/2022 23:47:12

* tag '6.4.0.123': (60 commits)
  fix a logic error that caused AbandonedMutexException while executing migrations (release-6.4.x) (NuGet#4895)
  unblock source build failing due to fatal: transport 'file' not allowed error (NuGet#4867) (NuGet#4874)
  Signing:  update to August 2022 CTL (NuGet#4791) (NuGet#4850)
  Merged PR 422933: Prefer BCL Directory create API over helper class (7.0.1xx-rc2)
  Fix empty combobox when package is not present in project file (NuGet#4844) (NuGet#4848)
  Fix component detection alert for microsoft.owin package (NuGet#4841) (NuGet#4845)
  Make release label RC, move to escrow mode
  Adds special case to include transitive origins in GetInstalledAndTransitivePackagesAsync API (NuGet#4824)
  Add longPathAware manifest to NuGet.Build.Tasks.Console (NuGet#4830)
  VsPackageInstallerServices should not post ProjectNotNominatedException faults (NuGet#4814)
  Skip test GetOrCreateAsync_WithUnhandledExceptionInPlugin_Throws (NuGet#4831)
  Improve OptProf pipeline job run names (NuGet#4825)
  Increase HttpClientHandler.MaxConnectionsPerServer to 64 to improve PM UI performance in Visual Studio (NuGet#4798)
  Suppress CA2213 warnings to unblock dev branch (NuGet#4823)
  Ensure IsVsOfflineFeed is calculated correctly on 64-bit machines (NuGet#4817)
  Add better handling of AggregateExceptions in static graph-based restore (NuGet#4809)
  Add Component Detection task into each pipeline (NuGet#4813)
  Localizes nuget.exe with default, embedded resource assembly lookup (NuGet#4773)
  Removes BrowseObjectBase class in NuGet Solution Explorer (NuGet#4807)
  Improve TryCreateContext  (NuGet#4762)
  ...
  • Loading branch information
AdmiringWorm committed Dec 19, 2022
2 parents 40302c8 + da5b9fa commit 6ab0442
Show file tree
Hide file tree
Showing 444 changed files with 24,024 additions and 49,327 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ project.json text
*.vcxproj text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.gif binary
*.jpg binary
*.pem binary
*.png binary
*.gif binary
*.zip binary
16 changes: 2 additions & 14 deletions .github/fabricbot.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,9 @@
{
"name": "isOpen",
"parameters": {}
},
{
"name": "isDraftPr",
"parameters": {
"value": "false"
}
}
],
"taskName": "[stale non-community PR] [5-1] Search for PRs with no activity over 7 days and warn. (except community PRs and draft PRs)",
"taskName": "[stale non-community PR] [5-1] Search for PRs with no activity over 7 days and warn. (except community PRs)",
"actions": [
{
"name": "addLabel",
Expand Down Expand Up @@ -604,20 +598,14 @@
"name": "isOpen",
"parameters": {}
},
{
"name": "isDraftPr",
"parameters": {
"value": "false"
}
},
{
"name": "noLabel",
"parameters": {
"label": "Status:No recent activity"
}
}
],
"taskName": "[stale community PR] [5-1] Search for community PRs with no activity over 30 days and warn. (except draft PRs)",
"taskName": "[stale community PR] [5-1] Search for community PRs with no activity over 30 days and warn.",
"actions": [
{
"name": "addLabel",
Expand Down
1 change: 1 addition & 0 deletions build/BannedSymbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ M:Microsoft.VisualStudio.Shell.VsTaskLibraryHelper.FileAndForget(Microsoft.Visua
M:Microsoft.VisualStudio.Shell.IAsyncServiceProvider.GetServiceAsync(System.Type); Do not use this method. Use the Microsoft.VisualStudio.Shell.ServiceExtensions.GetServiceAsync for services that have UI thread affinity or that you don't know about their affinity, and use NuGet.VisualStudio.ServiceProviderExtensions.GetFreeThreadedServiceAsync<TService, TInterface> for free threaded services.
M:Microsoft.VisualStudio.Shell.AsyncPackage.GetServiceAsync(System.Type); Do not retrieve services from AsyncPackage, use the Async Service provider instead, which that class implements. Use the Microsoft.VisualStudio.Shell.ServiceExtensions.GetServiceAsync for services that have UI thread affinity or that you don't know about their affinity, and use NuGet.VisualStudio.ServiceProviderExtensions.GetFreeThreadedServiceAsync<TService, TInterface> for free threaded services.

M:System.IO.Path.GetTempPath(); Use NuGetEnvironment.GetFolderPath(NuGetFolderPath.Temp)
3 changes: 1 addition & 2 deletions build/Shared/HashCodeCombiner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ internal void AddSequence<T>(IList<T> list)
}
}

#if !NET40
internal void AddSequence<T>(IReadOnlyList<T> list)
{
if (list != null)
Expand All @@ -140,7 +139,7 @@ internal void AddSequence<T>(IReadOnlyList<T> list)
}
}
}
#endif

internal void AddDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> dictionary)
{
if (dictionary != null)
Expand Down
6 changes: 3 additions & 3 deletions build/common.project.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
<NETFXTargetFrameworkVersion>v4.7.2</NETFXTargetFrameworkVersion>
<NETFXTargetFramework>net472</NETFXTargetFramework>
<NETCoreTargetFramework>netcoreapp3.1</NETCoreTargetFramework>
<NETCoreTargetFramework Condition="'$(DotNetBuildFromSource)' == 'true'">net6.0</NETCoreTargetFramework>
<NETCoreTargetFramework Condition="'$(DotNetBuildFromSource)' == 'true'">net7.0</NETCoreTargetFramework>
<NETCoreTestTargetFramework>net6.0</NETCoreTestTargetFramework>
<NetStandardVersion>netstandard2.0</NetStandardVersion>
<TargetFrameworksExe>$(NETFXTargetFramework);$(NETCoreTargetFramework)</TargetFrameworksExe>
<TargetFrameworksExe Condition="'$(IsXPlat)' == 'true'">$(NETCoreTargetFramework)</TargetFrameworksExe>
<TargetFrameworksExeForSigning>$(TargetFrameworksExe);netcoreapp5.0</TargetFrameworksExeForSigning>
<TargetFrameworksExeForSigning Condition=" '$(IsXPlat)' == 'true' ">$(NETCoreTargetFramework);netcoreapp5.0</TargetFrameworksExeForSigning>
<TargetFrameworksExeForSigning Condition="'$(DotNetBuildFromSource)' == 'true'">$(TargetFrameworksExe);net6.0</TargetFrameworksExeForSigning>
<TargetFrameworksExeForSigning Condition="'$(DotNetBuildFromSource)' == 'true'">$(TargetFrameworksExe);net7.0</TargetFrameworksExeForSigning>
<TargetFrameworksLibrary>$(NETFXTargetFramework);$(NetStandardVersion)</TargetFrameworksLibrary>
<TargetFrameworksLibrary Condition="'$(DotNetBuildFromSource)' == 'true'">$(NETCoreTargetFramework);$(NETFXTargetFramework);$(NetStandardVersion)</TargetFrameworksLibrary>
<TargetFrameworksLibraryForSigning>$(TargetFrameworksLibrary);netcoreapp5.0</TargetFrameworksLibraryForSigning>
<TargetFrameworksLibraryForSigning Condition="'$(DotNetBuildFromSource)' == 'true'">$(TargetFrameworksLibrary);net6.0</TargetFrameworksLibraryForSigning>
<TargetFrameworksLibraryForSigning Condition="'$(DotNetBuildFromSource)' == 'true'">$(TargetFrameworksLibrary);net7.0</TargetFrameworksLibraryForSigning>
<TargetFrameworksLibraryForCrossVerificationTests>$(NETFXTargetFramework);net6.0</TargetFrameworksLibraryForCrossVerificationTests>
<RepositoryRootDirectory>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\</RepositoryRootDirectory>
<BuildCommonDirectory>$(RepositoryRootDirectory)build\</BuildCommonDirectory>
Expand Down
18 changes: 5 additions & 13 deletions build/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,9 @@ Function Install-DotnetCLI {
$arch = "x86";
}

# The Quality option:
# Daily links are those from daily builds
# Signed have been post-build signed (in the case of 6.0+, pre-6.0 is signed even in daily builds)
# Validated have gone through CTI testing and other validation
# Preview are released bits that are preview versions
# GA are released servicing and GA builds
Trace-Log "$DotNetInstall -Channel $($cli.Channel) -Quality signed -InstallDir $($cli.Root) -Version $($cli.Version) -Architecture $arch -NoPath"

# dotnet-install might make http requests that fail, but it handles those errors internally
# However, Invoke-BuildStep checks if any error happened, ever. Hence we need to run dotnet-install
# in a different process, to avoid treating their handled errors as build errors.
& powershell $DotNetInstall -Channel $cli.Channel -Quality signed -InstallDir $cli.Root -Version $cli.Version -Architecture $arch -NoPath
Trace-Log "$DotNetInstall -Channel $($cli.Channel) -InstallDir $($cli.Root) -Version $($cli.Version) -Architecture $arch -NoPath"

& powershell $DotNetInstall -Channel $cli.Channel -InstallDir $cli.Root -Version $cli.Version -Architecture $arch -NoPath
if ($LASTEXITCODE -ne 0)
{
throw "dotnet-install.ps1 exited with non-zero exit code"
Expand All @@ -230,12 +221,13 @@ Function Install-DotnetCLI {
}
}

# Install the 2.x runtime because our tests target netcoreapp2x
# Install the 3.x runtime because our tests target netcoreapp2x
Trace-Log "$DotNetInstall -Runtime dotnet -Channel 3.1 -InstallDir $CLIRoot -NoPath"
# dotnet-install might make http requests that fail, but it handles those errors internally
# However, Invoke-BuildStep checks if any error happened, ever. Hence we need to run dotnet-install
# in a different process, to avoid treating their handled errors as build errors.
& powershell $DotNetInstall -Runtime dotnet -Channel 3.1 -InstallDir $CLIRoot -NoPath

if ($LASTEXITCODE -ne 0)
{
throw "dotnet-install.ps1 exited with non-zero exit code"
Expand Down
2 changes: 1 addition & 1 deletion build/common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<IsDesktop>true</IsDesktop>
</PropertyGroup>

<PropertyGroup Condition=" $(TargetFramework.StartsWith('netcoreapp')) OR $(TargetFramework.StartsWith('netstandard')) OR $(TargetFramework.StartsWith('net6')) ">
<PropertyGroup Condition=" $(TargetFramework.StartsWith('netcoreapp')) OR $(TargetFramework.StartsWith('netstandard')) OR $(TargetFramework.StartsWith('net6')) OR $(TargetFramework.StartsWith('net7')) ">
<DefineConstants>$(DefineConstants);IS_CORECLR</DefineConstants>
<IsCore>true</IsCore>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions build/config.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

<!-- ** Change for each new preview/rc -->
<!-- Check the VS schedule and manually enter a preview number here that makes sense. -->
<ReleaseLabel Condition=" '$(ReleaseLabel)' == '' ">preview.1</ReleaseLabel>
<ReleaseLabel Condition=" '$(ReleaseLabel)' == '' ">rc</ReleaseLabel>

<IsEscrowMode>false</IsEscrowMode>
<IsEscrowMode>true</IsEscrowMode>

<!-- Visual Studio Insertion Logic -->
<VsTargetMajorVersion>$([MSBuild]::Add(11, $(MajorNuGetVersion)))</VsTargetMajorVersion>
Expand All @@ -43,7 +43,7 @@
6.0:6.0.100-preview.7.21379.14 means install the preview version 6.0.100-preview.7.21379.14.
Refer to https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script#options for more details.
-->
<CliBranchForTesting Condition="'$(CliBranchForTesting)' == ''">6.0.4xx</CliBranchForTesting>
<CliBranchForTesting Condition="'$(CliBranchForTesting)' == ''">7.0:7.0.100-rtm.22510.17</CliBranchForTesting>
</PropertyGroup>

<!-- Config -->
Expand Down
3 changes: 2 additions & 1 deletion build/packages.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<MicrosoftWebXdtPackageVersion Condition="'$(MicrosoftWebXdtPackageVersion)' == ''">3.0.0</MicrosoftWebXdtPackageVersion>
<SystemComponentModelCompositionPackageVersion Condition="'$(SystemComponentModelCompositionPackageVersion)' == ''">4.5.0</SystemComponentModelCompositionPackageVersion>
<SystemPackagesVersion>4.3.0</SystemPackagesVersion>
<VSFrameworkVersion>17.1.0-preview-2-31918-073</VSFrameworkVersion>
<VSFrameworkVersion>17.2.0-preview-2-32304-091</VSFrameworkVersion>
<VSServicesVersion>16.153.0</VSServicesVersion>
<CryptographyPackagesVersion>5.0.0</CryptographyPackagesVersion>
<NuGetCoreV2Version>2.14.0-rtm-832</NuGetCoreV2Version>
Expand Down Expand Up @@ -107,6 +107,7 @@
<PackageReference Update="Portable.BouncyCastle" Version="1.8.10" />
<PackageReference Update="System.Collections" Version="$(SystemPackagesVersion)" />
<PackageReference Update="System.IO.FileSystem.Primitives" Version="$(SystemPackagesVersion)" />
<PackageReference Update="System.Memory" Version="4.5.5" />
<PackageReference Update="System.Resources.ResourceManager" Version="$(SystemPackagesVersion)" />
<PackageReference Update="System.Runtime.Extensions" Version="$(SystemPackagesVersion)" />
<PackageReference Update="System.Runtime.InteropServices" Version="$(SystemPackagesVersion)" />
Expand Down
5 changes: 4 additions & 1 deletion docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ If you want to test dotnet.exe explicitly, so you don't have to worry about whet
### Debugging NuGet Command Xplat Functionality (add-package/remove-package/list package)

Functionality such as `dotnet.exe add package` or `dotnet list package`, is implemented in [NuGet.CommandLine.XPlat](../src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj).
There are 2 ways to debug this:

To debug with `MSBuildLocator`, you need to un-comment the `PackageReference` for `Microsoft.Build.Locator` in `NuGet.CommandLine.XPlat.csproj`. Additionally, un-comment the code utilizing `MSBuildLocator` in that project's `Program.cs`.

There are 2 ways to debug this project:

* Given that [NuGet.CommandLine.XPlat](../src/NuGet.Core/NuGet.CommandLine.XPlat/NuGet.CommandLine.XPlat.csproj) is an exe, you can set it as the startup project and run it as you would any other command line project in Visual Studio. Note that some commands list arguments in a different order to the dotnet cli.

Expand Down
3 changes: 2 additions & 1 deletion docs/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ In general a PR should be approved by the Subject Matter Expert (SME) of that co

To commit the PR to the repo use the GitHub `Squash and Merge` button. We can't stress this enough. Always use `Squash and Merge` unless an exception is explicitly stated in this document.

This repo has bots that manage all stale PRs. Stale PRs will be autoclosed.

- *Do* favor having more than 1 reviewer.
- *Do not* merge too quickly. Wait for at least 24h after the last significant changes before merging unless the change is urgent.
- *Do* address all feedback. Not necessarily by accepting it, but by reaching a resolution with the reviewer. All comments need to be marked as resolved before merging.
Expand All @@ -31,7 +33,6 @@ GitHub merges have 2 means to specify a commit message when squash merging. Insp
#### Draft Pull Requests

Draft pull requests are allowed, but should have a clear plan for transition to a review ready pull request.
Draft pull requests will be closed within 30 days.

### Branching strategy

Expand Down
Loading

0 comments on commit 6ab0442

Please sign in to comment.