Skip to content

Instantly share code, notes, and snippets.

View chenyahui's full-sized avatar
🎯
Focusing

cyhone chenyahui

🎯
Focusing
View GitHub Profile
第一步,找到项目文件下的 .csprojc 文件,用文本编辑器打开它,并找到下面这行:
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
把下面的 XML 粘贴到文件中,然后保存并在 Visual Studio 中重载:
<Target Name="AfterResolveReferences">
<ItemGroup>
<EmbeddedResource Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.dll'">
<LogicalName>%(ReferenceCopyLocalPaths.DestinationSubDirectory)%(ReferenceCopyLocalPaths.Filename)%(ReferenceCopyLocalPaths.Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>
第一步,找到项目文件下的 .csprojc 文件,用文本编辑器打开它,并找到下面这行:
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
把下面的 XML 粘贴到文件中,然后保存并在 Visual Studio 中重载:
<Target Name="AfterResolveReferences">
<ItemGroup>
<EmbeddedResource Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.dll'">
<LogicalName>%(ReferenceCopyLocalPaths.DestinationSubDirectory)%(ReferenceCopyLocalPaths.Filename)%(ReferenceCopyLocalPaths.Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>