© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
GrahamKracker

❔ Alias in .targets `<Reference` tag

ok so
<Reference Include="Assembly1.dll" Private="false"/>
<Reference Include="Assembly2.dll" Private="false"/>
<Reference Include="Assembly1.dll" Private="false"/>
<Reference Include="Assembly2.dll" Private="false"/>
they both have matching types, causing ambiguous reference errors. i have absolutely no control over these assemblies. i would like to know if its possible to alias them using the targets file, then be able to distribute it and have users retain these aliases
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Clear the confusion `TagHelper`, `TagHelperComponent`, `TagHelperComponentTagHelper`
C#CC# / help
4y ago
❔ Microsoft.Common.CurrentVersion.targets | reference assemvlies for [...] were not found.
C#CC# / help
4y ago
Targets not running
C#CC# / help
2y ago
DataTemplate tag in Xaml
C#CC# / help
12mo ago