Skip to content

Commit 1ce4716

Browse files
[VMR] Codeflow 6abcc15-6abcc15
[[ commit created by automation ]]
1 parent 6abcc15 commit 1ce4716

File tree

6 files changed

+27
-13
lines changed

6 files changed

+27
-13
lines changed

src/BuiltInTools/DotNetDeltaApplier/Microsoft.Extensions.DotNetDeltaApplier.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<Import Project="..\HotReloadAgent\Microsoft.DotNet.HotReload.Agent.projitems" Label="Shared" />
34
<Import Project="..\HotReloadAgent.Data\Microsoft.DotNet.HotReload.Agent.Data.projitems" Label="Shared" />
45
<Import Project="..\HotReloadAgent.PipeRpc\Microsoft.DotNet.HotReload.Agent.PipeRpc.projitems" Label="Shared" />
6+
57
<PropertyGroup>
68
<!--
79
dotnet-watch may inject this assembly to .NET 6.0+ app.
@@ -15,11 +17,15 @@
1517
<!-- NuGet -->
1618
<IsPackable>true</IsPackable>
1719
<PackageId>Microsoft.DotNet.HotReload.Agent.Host</PackageId>
18-
<PackageDescription>
19-
Package containing Hot Reload agent host.
20-
</PackageDescription>
20+
<PackageDescription>Package containing Hot Reload agent host.</PackageDescription>
21+
<DisableTransitiveFrameworkReferenceDownloads Condition="'$(DotNetBuildSourceOnly)' == 'true'">true</DisableTransitiveFrameworkReferenceDownloads>
2122
</PropertyGroup>
2223

24+
<!-- Reference 6.0.0 targeting packs in Source Build -->
25+
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true' and '$(TargetFramework)' == 'net6.0'">
26+
<FrameworkReference Update="Microsoft.NETCore.App" TargetingPackVersion="6.0.0" />
27+
</ItemGroup>
28+
2329
<ItemGroup>
2430
<InternalsVisibleTo Include="Microsoft.Extensions.DotNetDeltaApplier.Tests" />
2531
</ItemGroup>

src/BuiltInTools/HotReloadAgent/Microsoft.DotNet.HotReload.Agent.Package.csproj

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<!--
45
Intentionally pinned. This feature is supported in projects targeting 6.0 or newer.
@@ -14,16 +15,22 @@
1415
<IsSourcePackage>true</IsSourcePackage>
1516
<PackageId>Microsoft.DotNet.HotReload.Agent</PackageId>
1617
<IncludeBuildOutput>false</IncludeBuildOutput>
17-
<PackageDescription>
18-
Package containing sources of Hot Reload agent.
19-
</PackageDescription>
18+
<PackageDescription>Package containing sources of Hot Reload agent.</PackageDescription>
2019
<!-- Remove once https://github.com/NuGet/Home/issues/8583 is fixed -->
2120
<NoWarn>$(NoWarn);NU5128</NoWarn>
21+
<DisableTransitiveFrameworkReferenceDownloads Condition="'$(DotNetBuildSourceOnly)' == 'true'">true</DisableTransitiveFrameworkReferenceDownloads>
2222
</PropertyGroup>
2323

24+
<!-- Reference 6.0.0 targeting packs in Source Build -->
25+
<ItemGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'">
26+
<FrameworkReference Update="Microsoft.NETCore.App" TargetingPackVersion="6.0.0" />
27+
</ItemGroup>
28+
2429
<!-- Make sure the shared source files do not require any global usings -->
2530
<ItemGroup>
2631
<Using Remove="@(Using)" />
2732
</ItemGroup>
33+
2834
<Import Project="..\HotReloadAgent.Data\Microsoft.DotNet.HotReload.Agent.Data.projitems" Label="Shared" />
35+
2936
</Project>

src/Cli/dotnet/Commands/Workload/WorkloadCommandParser.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ internal static class WorkloadCommandParser
2828
{
2929
public static readonly string DocsLink = "https://aka.ms/dotnet-workload";
3030

31-
private static readonly Command Command = ConstructCommand();
32-
3331
public static readonly Option<bool> InfoOption = new("--info")
3432
{
3533
Description = CliCommandStrings.WorkloadInfoDescription,
@@ -44,11 +42,11 @@ internal static class WorkloadCommandParser
4442

4543
public static Command GetCommand()
4644
{
47-
Command.Options.Add(InfoOption);
48-
Command.Options.Add(VersionOption);
4945
return Command;
5046
}
5147

48+
private static readonly Command Command = ConstructCommand();
49+
5250
internal static string GetWorkloadsVersion(WorkloadInfoHelper workloadInfoHelper = null)
5351
{
5452
workloadInfoHelper ??= new WorkloadInfoHelper(false);
@@ -169,6 +167,9 @@ private static Command ConstructCommand()
169167
command.Subcommands.Add(WorkloadConfigCommandParser.GetCommand());
170168
command.Subcommands.Add(WorkloadHistoryCommandParser.GetCommand());
171169

170+
command.Options.Add(InfoOption);
171+
command.Options.Add(VersionOption);
172+
172173
command.Validators.Add(commandResult =>
173174
{
174175
if (commandResult.GetResult(InfoOption) is null && commandResult.GetResult(VersionOption) is null && !commandResult.Children.Any(child => child is System.CommandLine.Parsing.CommandResult))

src/Layout/pkg/dotnet-sdk.proj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<GenerateInstallers Condition="'$(DotNetBuildSourceOnly)' != 'true'">true</GenerateInstallers>
99
<BuildDebPackage Condition="'$(BuildSdkDeb)' == 'true'">true</BuildDebPackage>
1010
<BuildRpmPackage Condition="'$(BuildSdkRpm)' == 'true'">true</BuildRpmPackage>
11+
<UseArcadeRpmTooling>true</UseArcadeRpmTooling>
1112
<ProductBrandPrefix>Microsoft .NET</ProductBrandPrefix>
1213
<LicenseFile>$(RepoRoot)LICENSE.TXT</LicenseFile>
1314
<InstallerName>dotnet-sdk</InstallerName>
@@ -98,7 +99,7 @@
9899
</Target>
99100

100101
<Target Name="AddLinuxPackageInformation"
101-
BeforeTargets="GetAdditionalLinuxInstallerProperties"
102+
BeforeTargets="GetDebInstallerJsonProperties;GetRpmInstallerJsonProperties"
102103
DependsOnTargets="CalculateLinuxNativeInstallerDependencyVersions">
103104

104105
<PropertyGroup>

src/Layout/redist/targets/BundledManifests.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
DestinationPath="%(BundledManifests.FeatureBand)/$([MSBuild]::ValueOrDefault('%(Identity)', '').ToLower())/%(BundledManifests.Version)/localize" />
104104
</ItemGroup>
105105

106-
<Error Text="No workload manifest content found." Condition="'@(ManifestContent->Count())' == '0'" />
106+
<Error Text="No workload manifest content found." Condition="'@(BundledManifests)' != '' and '@(ManifestContent)' == ''" />
107107

108108
<Copy SourceFiles="@(ManifestContent)"
109109
DestinationFolder="$(RedistInstallerLayoutPath)sdk-manifests/%(DestinationPath)" />

src/Layout/redist/targets/GenerateArchives.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<Target Name="GenerateArchives"
44
DependsOnTargets="GenerateInstallerLayout"
5-
Condition="'$(SkipBuildingInstallers)' != 'true'"
65
AfterTargets="AfterBuild">
76
<!-- When running in Docker under a Windows host, tar is warning "file changed as we read it" for several files and returning exit code 1.
87
So this flag allows that to be ignored. -->

0 commit comments

Comments
 (0)