File tree Expand file tree Collapse file tree 6 files changed +27
-13
lines changed
Cli/dotnet/Commands/Workload Expand file tree Collapse file tree 6 files changed +27
-13
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
+
2
3
<Import Project =" ..\HotReloadAgent\Microsoft.DotNet.HotReload.Agent.projitems" Label =" Shared" />
3
4
<Import Project =" ..\HotReloadAgent.Data\Microsoft.DotNet.HotReload.Agent.Data.projitems" Label =" Shared" />
4
5
<Import Project =" ..\HotReloadAgent.PipeRpc\Microsoft.DotNet.HotReload.Agent.PipeRpc.projitems" Label =" Shared" />
6
+
5
7
<PropertyGroup >
6
8
<!--
7
9
dotnet-watch may inject this assembly to .NET 6.0+ app.
15
17
<!-- NuGet -->
16
18
<IsPackable >true</IsPackable >
17
19
<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 >
21
22
</PropertyGroup >
22
23
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
+
23
29
<ItemGroup >
24
30
<InternalsVisibleTo Include =" Microsoft.Extensions.DotNetDeltaApplier.Tests" />
25
31
</ItemGroup >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
+
2
3
<PropertyGroup >
3
4
<!--
4
5
Intentionally pinned. This feature is supported in projects targeting 6.0 or newer.
14
15
<IsSourcePackage >true</IsSourcePackage >
15
16
<PackageId >Microsoft.DotNet.HotReload.Agent</PackageId >
16
17
<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 >
20
19
<!-- Remove once https://github.com/NuGet/Home/issues/8583 is fixed -->
21
20
<NoWarn >$(NoWarn);NU5128</NoWarn >
21
+ <DisableTransitiveFrameworkReferenceDownloads Condition =" '$(DotNetBuildSourceOnly)' == 'true'" >true</DisableTransitiveFrameworkReferenceDownloads >
22
22
</PropertyGroup >
23
23
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
+
24
29
<!-- Make sure the shared source files do not require any global usings -->
25
30
<ItemGroup >
26
31
<Using Remove =" @(Using)" />
27
32
</ItemGroup >
33
+
28
34
<Import Project =" ..\HotReloadAgent.Data\Microsoft.DotNet.HotReload.Agent.Data.projitems" Label =" Shared" />
35
+
29
36
</Project >
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ internal static class WorkloadCommandParser
28
28
{
29
29
public static readonly string DocsLink = "https://aka.ms/dotnet-workload" ;
30
30
31
- private static readonly Command Command = ConstructCommand ( ) ;
32
-
33
31
public static readonly Option < bool > InfoOption = new ( "--info" )
34
32
{
35
33
Description = CliCommandStrings . WorkloadInfoDescription ,
@@ -44,11 +42,11 @@ internal static class WorkloadCommandParser
44
42
45
43
public static Command GetCommand ( )
46
44
{
47
- Command . Options . Add ( InfoOption ) ;
48
- Command . Options . Add ( VersionOption ) ;
49
45
return Command ;
50
46
}
51
47
48
+ private static readonly Command Command = ConstructCommand ( ) ;
49
+
52
50
internal static string GetWorkloadsVersion ( WorkloadInfoHelper workloadInfoHelper = null )
53
51
{
54
52
workloadInfoHelper ??= new WorkloadInfoHelper ( false ) ;
@@ -169,6 +167,9 @@ private static Command ConstructCommand()
169
167
command . Subcommands . Add ( WorkloadConfigCommandParser . GetCommand ( ) ) ;
170
168
command . Subcommands . Add ( WorkloadHistoryCommandParser . GetCommand ( ) ) ;
171
169
170
+ command . Options . Add ( InfoOption ) ;
171
+ command . Options . Add ( VersionOption ) ;
172
+
172
173
command . Validators . Add ( commandResult =>
173
174
{
174
175
if ( commandResult . GetResult ( InfoOption ) is null && commandResult . GetResult ( VersionOption ) is null && ! commandResult . Children . Any ( child => child is System . CommandLine . Parsing . CommandResult ) )
Original file line number Diff line number Diff line change 8
8
<GenerateInstallers Condition =" '$(DotNetBuildSourceOnly)' != 'true'" >true</GenerateInstallers >
9
9
<BuildDebPackage Condition =" '$(BuildSdkDeb)' == 'true'" >true</BuildDebPackage >
10
10
<BuildRpmPackage Condition =" '$(BuildSdkRpm)' == 'true'" >true</BuildRpmPackage >
11
+ <UseArcadeRpmTooling >true</UseArcadeRpmTooling >
11
12
<ProductBrandPrefix >Microsoft .NET</ProductBrandPrefix >
12
13
<LicenseFile >$(RepoRoot)LICENSE.TXT</LicenseFile >
13
14
<InstallerName >dotnet-sdk</InstallerName >
98
99
</Target >
99
100
100
101
<Target Name =" AddLinuxPackageInformation"
101
- BeforeTargets =" GetAdditionalLinuxInstallerProperties "
102
+ BeforeTargets =" GetDebInstallerJsonProperties;GetRpmInstallerJsonProperties "
102
103
DependsOnTargets =" CalculateLinuxNativeInstallerDependencyVersions" >
103
104
104
105
<PropertyGroup >
Original file line number Diff line number Diff line change 103
103
DestinationPath =" %(BundledManifests.FeatureBand)/$([MSBuild]::ValueOrDefault('%(Identity)', '').ToLower())/%(BundledManifests.Version)/localize" />
104
104
</ItemGroup >
105
105
106
- <Error Text =" No workload manifest content found." Condition =" '@(ManifestContent->Count()) ' == '0 '" />
106
+ <Error Text =" No workload manifest content found." Condition =" '@(BundledManifests)' != '' and '@(ManifestContent) ' == ''" />
107
107
108
108
<Copy SourceFiles =" @(ManifestContent)"
109
109
DestinationFolder =" $(RedistInstallerLayoutPath)sdk-manifests/%(DestinationPath)" />
Original file line number Diff line number Diff line change 2
2
3
3
<Target Name =" GenerateArchives"
4
4
DependsOnTargets =" GenerateInstallerLayout"
5
- Condition =" '$(SkipBuildingInstallers)' != 'true'"
6
5
AfterTargets =" AfterBuild" >
7
6
<!-- 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.
8
7
So this flag allows that to be ignored. -->
You can’t perform that action at this time.
0 commit comments