Skip to content

Commit 5c04a89

Browse files
authored
Merge pull request #4646 from brettfo/reference-alias-hack
ensure reference alias is set before csc is invoked
2 parents 284cb2f + d222ead commit 5c04a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectSystem.Base.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@
7272
<PackageReference Include="VSSDK.VSLangProj.8" Version="$(VSSDKVSLangProj8PackageVersion)" />
7373
</ItemGroup>
7474

75-
<Target Name="HACK_AddAliasToMicrosoftVisualStudioShell140" BeforeTargets="ResolveReferences">
75+
<Target Name="HACK_AddAliasToMicrosoftVisualStudioShell140" BeforeTargets="CoreCompile">
7676
<ItemGroup>
7777
<!--
7878
We require a reference to Microsoft.VisualStudio.Shell.14.0.dll, but that causes some issues with duplicate type
7979
names. The ~hack~ fix is to include the package reference and ensure the Aliases metadata gets set afterwards.
8080
-->
81-
<ReferencePath Update="%(Identity)" Aliases="Shell14" Condition="'%(ReferencePath.PackageName)' == 'Microsoft.VisualStudio.Shell.14.0'" />
81+
<ReferencePathWithRefAssemblies Update="%(Identity)" Aliases="Shell14" Condition="'%(ReferencePathWithRefAssemblies.NuGetPackageId)' == 'Microsoft.VisualStudio.Shell.14.0'" />
8282
</ItemGroup>
8383
</Target>
8484

0 commit comments

Comments
 (0)