File tree Expand file tree Collapse file tree 9 files changed +28
-21
lines changed
VS.Redist.Common.Net.Core.SDK.RuntimeAnalyzers Expand file tree Collapse file tree 9 files changed +28
-21
lines changed Original file line number Diff line number Diff line change 24
24
</PropertyGroup >
25
25
26
26
<ItemGroup >
27
- <RuntimeAnalyzersContent Include =" $(ArtifactsBinDir)Microsoft.Net.Sdk.AnalyzerRedirecting\$(Configuration)\net472\**\*.*" DeploymentSubpath =" AnalyzerRedirecting" />
28
- <RuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)packs\Microsoft.NetCore.App.Ref\*\analyzers\**\*.*" DeploymentSubpath =" NetCoreAnalyzers" />
29
- <RuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)packs\Microsoft.WindowsDesktop.App.Ref\*\analyzers\**\*.*" DeploymentSubpath =" WindowsDesktopAnalyzers" />
30
- <RuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)packs\Microsoft.AspNetCore.App.Ref\*\analyzers\**\*.*" DeploymentSubpath =" AspNetCoreAnalyzers" />
31
- <RuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)sdk\*\Sdks\Microsoft.NET.Sdk\analyzers\**\*.*" DeploymentSubpath =" SDKAnalyzers" />
32
- <RuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)sdk\*\Sdks\Microsoft.NET.Sdk.Web\analyzers\**\*.*" DeploymentSubpath =" WebSDKAnalyzers" />
27
+ <RedistRuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)packs\Microsoft.NetCore.App.Ref\*\analyzers\**\*.*" DeploymentSubpath =" NetCoreAnalyzers" />
28
+ <RedistRuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)packs\Microsoft.WindowsDesktop.App.Ref\*\analyzers\**\*.*" DeploymentSubpath =" WindowsDesktopAnalyzers" />
29
+ <RedistRuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)packs\Microsoft.AspNetCore.App.Ref\*\analyzers\**\*.*" DeploymentSubpath =" AspNetCoreAnalyzers" />
30
+ <RedistRuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)sdk\*\Sdks\Microsoft.NET.Sdk\analyzers\**\*.*" DeploymentSubpath =" SDKAnalyzers" />
31
+ <RedistRuntimeAnalyzersContent Include =" $(RedistInstallerLayoutPath)sdk\*\Sdks\Microsoft.NET.Sdk.Web\analyzers\**\*.*" DeploymentSubpath =" WebSDKAnalyzers" />
32
+ <RedirectingRuntimeAnalyzersContent Include =" $(ArtifactsBinDir)Microsoft.Net.Sdk.AnalyzerRedirecting\$(Configuration)\net472\**\*.*" DeploymentSubpath =" AnalyzerRedirecting" />
33
+ </ItemGroup >
34
+
35
+ <Error Condition =" '@(RedistRuntimeAnalyzersContent)' == ''" Text =" The 'RedistRuntimeAnalyzersContent' items are empty. This shouldn't happen!" />
36
+ <Error Condition =" '@(RedirectingRuntimeAnalyzersContent)' == ''" Text =" The 'RedirectingRuntimeAnalyzersContent' items are empty. This shouldn't happen!" />
37
+
38
+ <ItemGroup >
39
+ <RuntimeAnalyzersContent Include =" @(RedistRuntimeAnalyzersContent);@(RedirectingRuntimeAnalyzersContent)" />
33
40
</ItemGroup >
34
41
35
42
<Copy SourceFiles =" @(RuntimeAnalyzersContent)"
Original file line number Diff line number Diff line change 29
29
</PropertyGroup >
30
30
31
31
<ItemGroup >
32
- <ProjectReference Include =" ..\redist\redist.csproj" ReferenceOutputAssembly =" false" />
32
+ <!-- The PublishToDisk target which depends on ResolveProjectReferences is invoked with OutputPath as an global property
33
+ which would flow to redist.csproj. -->
34
+ <ProjectReference Include =" ..\redist\redist.csproj" ReferenceOutputAssembly =" false" GlobalPropertiesToRemove =" OutputPath" />
33
35
</ItemGroup >
34
36
35
37
<ItemGroup >
42
44
<ManpagesDirectory >$(RepoRoot)documentation/manpages/sdk</ManpagesDirectory >
43
45
</PropertyGroup >
44
46
45
- <Target Name =" PublishToDisk" >
47
+ <Target Name =" PublishToDisk" DependsOnTargets = " ResolveProjectReferences " >
46
48
<Error Condition =" '$(OutputPath)' == ''" Text =" Publishing to disk requires the OutputPath to be set to the root of the path to write to." />
47
49
48
50
<ItemGroup >
52
54
</ItemGroup >
53
55
54
56
<!-- Create layout: Binaries -->
57
+ <Error Condition =" '@(CLISdkFiles)' == ''" Text =" The 'CLISdkFiles' items are empty. This shouldn't happen!" />
55
58
<Copy
56
59
DestinationFiles =" @(CLISdkFiles->'$(OutputPath)/sdk/%(RecursiveDir)%(Filename)%(Extension)')"
57
60
SourceFiles =" @(CLISdkFiles)"
60
63
UseHardlinksIfPossible =" False" />
61
64
62
65
<!-- Create layout: Templates -->
66
+ <Error Condition =" '@(TemplatesFiles)' == ''" Text =" The 'TemplatesFiles' items are empty. This shouldn't happen!" />
63
67
<Copy
64
68
DestinationFiles =" @(TemplatesFiles->'$(OutputPath)/templates/%(RecursiveDir)%(Filename)%(Extension)')"
65
69
SourceFiles =" @(TemplatesFiles)"
68
72
UseHardlinksIfPossible =" False" />
69
73
70
74
<!-- Create layout: Workload Manifests -->
75
+ <Error Condition =" '@(ManifestFiles)' == ''" Text =" The 'ManifestFiles' items are empty. This shouldn't happen!" />
71
76
<Copy
72
77
DestinationFiles =" @(ManifestFiles->'$(OutputPath)/sdk-manifests/%(RecursiveDir)%(Filename)%(Extension)')"
73
78
SourceFiles =" @(ManifestFiles)"
Original file line number Diff line number Diff line change 194
194
<!-- Move symbols to separate folder, they are not included in the layout but are published separately -->
195
195
<Move SourceFiles =" @(PdbsToMove)"
196
196
DestinationFiles =" @(PdbsToMove->'$(ArtifactsSymStoreDirectory)/sdk/$(Version)/%(RecursiveDir)%(Filename)%(Extension)')" />
197
- </Target >
198
-
199
- <Target Name =" ChmodLayout"
200
- AfterTargets =" CrossgenLayout"
201
- Condition =" '$(OSName)' != 'win' " >
202
197
203
- <Exec Command =" find $(InstallerOutputDirectory) -type d -exec chmod 755 {} \;" />
204
- <Exec Command =" find $(InstallerOutputDirectory) -type f -exec chmod 644 {} \;" />
198
+ <Exec Command =" find $(InstallerOutputDirectory) -type d -exec chmod 755 {} \;" Condition = " '$(OSName)' != 'win' " />
199
+ <Exec Command =" find $(InstallerOutputDirectory) -type f -exec chmod 644 {} \;" Condition = " '$(OSName)' != 'win' " />
205
200
</Target >
206
201
207
202
</Project >
Original file line number Diff line number Diff line change 2
2
3
3
<Target Name =" GenerateArchives"
4
4
DependsOnTargets =" GenerateInstallerLayout"
5
- AfterTargets =" Build " >
5
+ AfterTargets =" AfterBuild " >
6
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.
7
7
So this flag allows that to be ignored. -->
8
8
<PropertyGroup Condition =" '$(IgnoreTarExitCode)' == ''" >
Original file line number Diff line number Diff line change 83
83
LayoutWorkloadUserLocalMarker;
84
84
CrossgenLayout;
85
85
ReplaceBundledRuntimePackFilesWithSymbolicLinks"
86
- AfterTargets =" Build " />
86
+ AfterTargets =" AfterBuild " />
87
87
88
88
<!-- Copy the sdk layout into a temporary folder so that it's nested under "sdk\$(Version)\" which is
89
89
necessary for the msi/pkg to install correctly and put the content under that sub path. -->
Original file line number Diff line number Diff line change 546
546
RetargetTools;
547
547
RemoveResourcesFromDotnetDeps;
548
548
ChmodPublishDir"
549
- AfterTargets =" Build " />
549
+ AfterTargets =" AfterBuild " />
550
550
551
551
</Project >
Original file line number Diff line number Diff line change 378
378
</Target >
379
379
380
380
<Target Name =" GenerateMsis"
381
- AfterTargets =" Build "
381
+ AfterTargets =" AfterBuild "
382
382
DependsOnTargets =" $(GenerateMsisDependsOn)" />
383
383
384
384
</Project >
Original file line number Diff line number Diff line change 226
226
</Target >
227
227
228
228
<Target Name =" GeneratePkgs"
229
- AfterTargets =" Build "
229
+ AfterTargets =" AfterBuild "
230
230
DependsOnTargets =" GenerateSdkPkg;GenerateSdkProductArchive" />
231
231
232
232
</Project >
Original file line number Diff line number Diff line change 4
4
<TestHostFolder >$(ArtifactsBinDir)redist\$(Configuration)\dotnet\</TestHostFolder >
5
5
</PropertyGroup >
6
6
7
- <Target Name =" OverlaySdkOnLKG" AfterTargets =" Build " DependsOnTargets =" GenerateInstallerLayout" >
7
+ <Target Name =" OverlaySdkOnLKG" AfterTargets =" AfterBuild " DependsOnTargets =" GenerateInstallerLayout" >
8
8
<PropertyGroup >
9
9
<_DotNetHiveRoot >$(DOTNET_INSTALL_DIR)</_DotNetHiveRoot >
10
10
<_DotNetHiveRoot Condition =" '$(_DotNetHiveRoot)' == ''" >$(RepoRoot).dotnet/</_DotNetHiveRoot >
You can’t perform that action at this time.
0 commit comments