Skip to content

Commit 9fd548f

Browse files
author
John Luo
authored
Remove dependency on Internal.AspNetCore.BuildTasks (#33449)
* Remove dependency on Internal.AspNetCore.BuildTasks * Wip * Remove explicit reference * Update PrepareForTest.targets * Try again?
1 parent 1048a02 commit 9fd548f

File tree

8 files changed

+25
-8
lines changed

8 files changed

+25
-8
lines changed

eng/Version.Details.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@
297297
<Uri>https://github.com/dotnet/arcade</Uri>
298298
<Sha>85a65ea1fca1d0867f699fed44d191358270bf6a</Sha>
299299
</Dependency>
300+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="6.0.0-beta.21310.4">
301+
<Uri>https://github.com/dotnet/arcade</Uri>
302+
<Sha>a565e0c890d0a325775882542cff7e775db8f8e6</Sha>
303+
</Dependency>
300304
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21304.1">
301305
<Uri>https://github.com/dotnet/arcade</Uri>
302306
<Sha>85a65ea1fca1d0867f699fed44d191358270bf6a</Sha>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
<MicrosoftEntityFrameworkCoreDesignVersion>6.0.0-preview.6.21309.9</MicrosoftEntityFrameworkCoreDesignVersion>
138138
<!-- Packages from dotnet/arcade -->
139139
<MicrosoftDotNetBuildTasksInstallersVersion>6.0.0-beta.21304.1</MicrosoftDotNetBuildTasksInstallersVersion>
140+
<MicrosoftDotNetBuildTasksTemplatingVersion>6.0.0-beta.21310.4</MicrosoftDotNetBuildTasksTemplatingVersion>
140141
</PropertyGroup>
141142
<!--
142143
@@ -160,7 +161,6 @@
160161
<!-- DiagnosticAdapter package pinned temporarily until migrated/deprecated -->
161162
<MicrosoftExtensionsDiagnosticAdapterVersion>5.0.0-preview.4.20180.4</MicrosoftExtensionsDiagnosticAdapterVersion>
162163
<!-- Build tool dependencies -->
163-
<InternalAspNetCoreBuildTasksVersion>3.0.0-build-20190530.3</InternalAspNetCoreBuildTasksVersion>
164164
<MicrosoftVSSDKBuildToolsVersion>15.9.3032</MicrosoftVSSDKBuildToolsVersion>
165165
<!-- Stable dotnet/corefx packages no longer updated for .NET Core 3 -->
166166
<MicrosoftCSharpVersion>4.7.0</MicrosoftCSharpVersion>

eng/Workarounds.targets

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
<!-- Workaround https://github.com/dotnet/source-build/issues/1112. Source link is currently disabled in source build so define this dummy target which is required for pack. -->
3636
<Import Condition="'$(DotNetBuildFromSource)' == 'true'" Project="WorkaroundsImported.targets" />
3737

38-
<!-- Workaround for https://github.com/dotnet/arcade/issues/204, not needed in source build -->
39-
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
40-
<PackageReference Include="Internal.AspNetCore.BuildTasks" PrivateAssets="All" Version="$(InternalAspNetCoreBuildTasksVersion)" IsImplicitlyDefined="true" />
41-
</ItemGroup>
42-
4338
<!-- Workaround for netstandard2.1 projects until we can get a preview 8 SDK containing https://github.com/dotnet/sdk/pull/3463 fix. -->
4439
<ItemGroup>
4540
<KnownFrameworkReference Update="NETStandard.Library">

eng/tools/GenerateFiles/GenerateFiles.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<TargetFramework>net5.0</TargetFramework>
55
</PropertyGroup>
66

7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" PrivateAssets="All" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" IsImplicitlyDefined="true" />
9+
</ItemGroup>
10+
711
<!-- Update artifacts/bin/GenerateFiles/Directory.Build.* files. -->
812
<Target Name="GenerateDirectoryBuildFiles">
913
<PropertyGroup>

src/Components/WebAssembly/DevServer/src/Microsoft.AspNetCore.Components.WebAssembly.DevServer.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<ItemGroup>
2222
<Reference Include="Microsoft.AspNetCore" />
2323
<Reference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" />
24+
25+
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" PrivateAssets="All" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" IsImplicitlyDefined="true" AllowExplicitReference="true" />
2426
</ItemGroup>
2527

2628
<!-- We include this here to ensure that the shared framework is built before we leverage it when running

src/Installers/Debian/Directory.Build.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
</DebBuildDependsOn>
1212
</PropertyGroup>
1313

14+
<ItemGroup>
15+
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" AllowExplicitReference="true" PrivateAssets="All" IsImplicitlyDefined="true" />
16+
</ItemGroup>
17+
1418
<Target Name="PrepareForBuild">
1519
<MakeDir Directories="$(IntermediateOutputPath);$(OutputPath)" />
1620

src/Installers/Rpm/Directory.Build.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<RpmPackageInstallRoot Condition="'$(RpmPackageInstallRoot)' != '' AND !HasTrailingSlash('$(RpmPackageInstallRoot)')">$(RpmPackageInstallRoot)/</RpmPackageInstallRoot>
1010
</PropertyGroup>
1111

12+
<ItemGroup>
13+
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" AllowExplicitReference="true" PrivateAssets="All" IsImplicitlyDefined="true" />
14+
</ItemGroup>
15+
1216
<Target Name="GetTargetPath" Returns="$(TargetPath)" />
1317

1418
<Target Name="PrepareForBuild">

src/ProjectTemplates/GenerateContent.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
</GeneratedContentProperties>
1313
</PropertyGroup>
1414

15+
<ItemGroup>
16+
<PackageReference Include="Microsoft.DotNet.Build.Tasks.Templating" Version="$(MicrosoftDotNetBuildTasksTemplatingVersion)" AllowExplicitReference="true" PrivateAssets="All" IsImplicitlyDefined="true" />
17+
</ItemGroup>
18+
1519
<!--
1620
Generates content using MSBuild variables.
1721
-->
@@ -47,8 +51,8 @@
4751
Properties="$(GeneratedContentProperties);%(GeneratedContent.AdditionalProperties)"
4852
OutputPath="%(GeneratedContent.OutputPath)">
4953

50-
<Output TaskParameter="OutputPath" ItemName="FileWrites" />
51-
<Output TaskParameter="OutputPath" ItemName="Content" />
54+
<Output TaskParameter="ResolvedOutputPath" ItemName="FileWrites" />
55+
<Output TaskParameter="ResolvedOutputPath" ItemName="Content" />
5256
</GenerateFileFromTemplate>
5357
</Target>
5458
</Project>

0 commit comments

Comments
 (0)