Skip to content

Commit 7288756

Browse files
committed
Improved build skip warning for disabled TFMs
1 parent e366657 commit 7288756

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

MultiTarget/MultiTargetToTargetFramework.props

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project InitialTargets="CheckEnabledMultiTargetsWithMissingTfms">
22
<Target Condition="'$(Configuration)' == 'Debug'" Name="CheckEnabledMultiTargetsWithMissingTfms">
3-
<Warning Condition="$(MultiTarget.Contains('uwp')) == 'true' AND '$(UwpTargetFramework)' == ''" Text="Attempted to build a project with a uwp MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
4-
<Warning Condition="$(MultiTarget.Contains('wasdk')) == 'true' AND '$(WinAppSdkTargetFramework)' == ''" Text="Attempted to build a project with a wasdk MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
5-
<Warning Condition="$(MultiTarget.Contains('wasm')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Attempted to build a project with a wasm MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
6-
<Warning Condition="$(MultiTarget.Contains('macos')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Attempted to build a project with a macos MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
7-
<Warning Condition="$(MultiTarget.Contains('ios')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Attempted to build an project with an ios MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
8-
<Warning Condition="$(MultiTarget.Contains('android')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Attempted to build a project with an android MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
9-
<Warning Condition="$(MultiTarget.Contains('netstandard')) == 'true' AND '$(DotnetStandardCommonTargetFramework)' == ''" Text="Attempted to build a project with a netstandard MultiTarget, but the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
3+
<Warning Condition="$(MultiTarget.Contains('uwp')) == 'true' AND '$(UwpTargetFramework)' == ''" Text="Skipped building a project with a uwp MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
4+
<Warning Condition="$(MultiTarget.Contains('wasdk')) == 'true' AND '$(WinAppSdkTargetFramework)' == ''" Text="Skipped building a project with a wasdk MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
5+
<Warning Condition="$(MultiTarget.Contains('wasm')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Skipped building a project with a wasm MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
6+
<Warning Condition="$(MultiTarget.Contains('macos')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Skipped building a project with a macos MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
7+
<Warning Condition="$(MultiTarget.Contains('ios')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Skipped building an project with an ios MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
8+
<Warning Condition="$(MultiTarget.Contains('android')) == 'true' AND '$(DotnetCommonTargetFramework)' == ''" Text="Skipped building a project with an android MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
9+
<Warning Condition="$(MultiTarget.Contains('netstandard')) == 'true' AND '$(DotnetStandardCommonTargetFramework)' == ''" Text="Skipped building a project with a netstandard MultiTarget, the corresponding TargetFramework is not enabled. To build this TFM, please use ./tooling/MultiTarget/UseTargetFrameworks.ps1 to enable this TFM, then regenerate your solution and try again." />
1010
</Target>
1111

1212
<PropertyGroup>

0 commit comments

Comments
 (0)