Skip to content

Commit

Permalink
Block deployment to Dev17 (#54265)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Jun 23, 2021
1 parent 32bce68 commit 56ecda0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions eng/targets/VisualStudio.targets
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,14 @@
<PackageReference Include="Microsoft.DiaSymReader.Native" Version="$(MicrosoftDiaSymReaderNativeVersion)" ExcludeAssets="all"/>
</ItemGroup>

<Target Name="_CheckDeploymentTargetVisualStudioVersion"
Condition="'$(DeployExtension)' == 'true' and '$(CreateVsixContainer)' == 'true'"
BeforeTargets="DeployVsixExtensionFiles"
DependsOnTargets="GetVsixDeploymentPath">

<Error Text="Deployment to Dev17 is not supported in this branch. Use the corresponding *-vs-deps branch."
Condition="$([MSBuild]::ValueOrDefault('$(ExtensionsPath)', '').Contains('17.0'))"/>
</Target>

<Import Project="GeneratePkgDef.targets" Condition="'$(MSBuildRuntimeType)' != 'Core' and '$(GeneratePkgDefFile)' == 'true' and '$(DesignTimeBuild)' != 'true' and '$(BuildingForLiveUnitTesting)' != 'true'" />
</Project>

0 comments on commit 56ecda0

Please sign in to comment.