Skip to content

Instantly share code, notes, and snippets.

@MiloszKrajewski
Last active March 10, 2020 00:18
Show Gist options
  • Select an option

  • Save MiloszKrajewski/6f40f08cb56742a5b0ada404e40484f5 to your computer and use it in GitHub Desktop.

Select an option

Save MiloszKrajewski/6f40f08cb56742a5b0ada404e40484f5 to your computer and use it in GitHub Desktop.
MsBuild tricks (does NOT work with signing)
<ItemGroup>
<Content Include="../OtherLib/Internal/**/*.*">
<Link>Shared/Internal/%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>$(AssemblyName).Test</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment