Skip to content

Commit cd3e0f8

Browse files
committed
Fix build targets that were incorrectly updated
During the upgrade to target .NET 8, any references to prior targeted frameworks were removed. In this case, the hardcoded framework path was replaced with $(NetFxTFM) which is defined in the libman build, but not in the consumer's build (where this .targets file is evaluated). It should not have been replaced here. I've reset it back to hard-coded values, and updated the frameworks currently targeted by the project (net481 and net8.0).
1 parent e639b87 commit cd3e0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LibraryManager.Build/Microsoft.Web.LibraryManager.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

44
<PropertyGroup>
5-
<_LibraryTaskAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\netstandard2.0\Microsoft.Web.LibraryManager.Build.dll</_LibraryTaskAssembly>
6-
<_LibraryTaskAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\$(NetFxTFM)\Microsoft.Web.LibraryManager.Build.dll</_LibraryTaskAssembly>
5+
<_LibraryTaskAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\net8.0\Microsoft.Web.LibraryManager.Build.dll</_LibraryTaskAssembly>
6+
<_LibraryTaskAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(MSBuildThisFileDirectory)..\tools\net481\Microsoft.Web.LibraryManager.Build.dll</_LibraryTaskAssembly>
77
</PropertyGroup>
88

99
<PropertyGroup>

0 commit comments

Comments
 (0)