Name of embedded resource

后端 未结 2 1895
无人及你
无人及你 2020-12-05 09:42

In c# default behaviour of embedded resource name is like this

         


        
相关标签:
2条回答
  • 2020-12-05 10:31

    The way to do this is quite simple, but you will have to edit the Visual Studio Project (csproj or vbproj) file in a text editor. See this msdn blog post.

    Here is the relevant xml snippet:

    <ItemGroup>
      <EmbeddedResource Include="bar.resx">
          <LogicalName>notfoo.bar.resources</LogicalName>
      </EmbeddedResource>
    </ItemGroup>
    
    0 讨论(0)
  • 2020-12-05 10:40

    If you're still having a bit of a hard time after trying @JustinDearing's answer, try this:

    1. set the verbosity of MSBuild to 'Detailed' in your V.S. options:

    2. Build your project

    3. Copy the output from the 'Build' log pane, paste into a text editor, search for 'manifest'

    0 讨论(0)
提交回复
热议问题