Skip to content

Commit

Permalink
Mitigate lack of multitarget support
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-sz committed Nov 24, 2021
1 parent be85aff commit 9dcad82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Bicep.MSBuild.E2eTests/examples/multiple/multiple.proj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PropertyGroup>
<!-- Ensure the package supports multi-targeting -->
<TargetFrameworks>net5;net472</TargetFrameworks>
<LanguageTargets>$(MSBuildThisFileDirectory)\multitarget-mitigation.targets</LanguageTargets> <!-- https://github.com/microsoft/MSBuildSdks/issues/155 -->
<BicepOutputPath>bin\$(Configuration)\templates</BicepOutputPath>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Mitigation for https://github.com/microsoft/MSBuildSdks/issues/155 -->
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.CrossTargeting.targets" Condition="$(IsCrossTargetingBuild) == 'true'" />
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.targets" Condition="$(IsCrossTargetingBuild) != 'true'" />
</Project>

0 comments on commit 9dcad82

Please sign in to comment.