Change name of DotNetBuildWithOnlineSources to DotNetBuildWithOnlineF… (#18426)

This commit is contained in:
Matt Mitchell 2024-01-26 13:38:54 -08:00 committed by GitHub
parent 051de02367
commit af3c100f01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View file

@ -119,7 +119,7 @@
<!-- It's not unusual to build with a preview SDK -->
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<!-- By default, the VMR builds with online sources when not building source-only. -->
<DotNetBuildWithOnlineSources Condition="'$(DotNetBuildWithOnlineSources)' == '' and '$(DotNetBuildSourceOnly)' != 'true'">true</DotNetBuildWithOnlineSources>
<DotNetBuildWithOnlineFeeds Condition="'$(DotNetBuildWithOnlineFeeds)' == '' and '$(DotNetBuildSourceOnly)' != 'true'">true</DotNetBuildWithOnlineFeeds>
<!-- By default, skip building tests when building the VMR. -->
<DotNetBuildSkipTests Condition="'$(DotNetBuildSkipTests)' == ''">true</DotNetBuildSkipTests>
</PropertyGroup>

View file

@ -122,7 +122,7 @@ while [[ $# > 0 ]]; do
properties="$properties /p:DotNetBuildSourceOnly=true"
;;
-online)
properties="$properties /p:DotNetBuildWithOnlineSources=true"
properties="$properties /p:DotNetBuildWithOnlineFeeds=true"
;;
-poison)
properties="$properties /p:EnablePoison=true"

View file

@ -26,7 +26,7 @@ namespace Microsoft.DotNet.Build.Tasks
/// <summary>
/// Whether to work in offline mode (remove all internet sources) or online mode (remove only authenticated sources)
/// </summary>
public bool BuildWithOnlineSources { get; set; }
public bool BuildWithOnlineFeeds { get; set; }
/// <summary>
/// A list of prefix strings that make the task keep a package source unconditionally. For
@ -56,7 +56,7 @@ namespace Microsoft.DotNet.Build.Tasks
}
string feedUrl = e.Attribute("value").Value;
if (BuildWithOnlineSources)
if (BuildWithOnlineFeeds)
{
return !( feedUrl.StartsWith("https://pkgs.dev.azure.com/dnceng/_packaging", StringComparison.OrdinalIgnoreCase) ||
feedUrl.StartsWith("https://pkgs.dev.azure.com/dnceng/internal/_packaging", StringComparison.OrdinalIgnoreCase) );

View file

@ -27,7 +27,7 @@ namespace Microsoft.DotNet.Build.Tasks
/// <summary>
/// Whether to work in offline mode (remove all internet sources) or online mode (remove only authenticated sources)
/// </summary>
public bool BuildWithOnlineSources { get; set; }
public bool BuildWithOnlineFeeds { get; set; }
/// <summary>
/// A list of all source-build specific NuGet sources.
@ -54,7 +54,7 @@ namespace Microsoft.DotNet.Build.Tasks
.Distinct()
.ToArray();
if (!BuildWithOnlineSources)
if (!BuildWithOnlineFeeds)
{
// When building offline remove all packageSourceMappings.
pkgSrcMappingElement?.ReplaceNodes(new XElement("clear"));

View file

@ -98,7 +98,7 @@
<RemoveInternetSourcesFromNuGetConfig
NuGetConfigFile="%(NuGetConfigFiles.Identity)"
BuildWithOnlineSources="$(DotNetBuildWithOnlineSources)"
BuildWithOnlineFeeds="$(DotNetBuildWithOnlineFeeds)"
KeepFeedPrefixes="@(KeepFeedPrefixes)"
Condition="'$(DotNetBuildSourceOnly)' == 'true'" />
@ -134,7 +134,7 @@
<UpdateNuGetConfigPackageSourcesMappings
NuGetConfigFile="%(NuGetConfigFiles.Identity)"
BuildWithOnlineSources="$(DotNetBuildWithOnlineSources)"
BuildWithOnlineFeeds="$(DotNetBuildWithOnlineFeeds)"
SourceBuildSources="$(SourceBuildSources)" />
<MakeDir Directories="$(BaseIntermediateOutputPath)" />