Como: Criar recursos incorporados
When you add resources to a Visual Studio project, they are created as linked resources. In some cases, you may want to embed the resources in the application resource (.resx) file. For more information, see Recursos Vinculados versus Incorporados.
Resources can be changed from linked to embedded resources on the Resources page of the Project Designer.
Observação |
---|
String resources are always embedded in the .resx file and cannot be changed to linked resources; file resources are always linked at compile time. |
To change a resource from linked to embedded
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Resources tab.
On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and select the type of resource that you want to edit.
Select the resource that you want to change.
In the Properties window, select the Persistence property and change it to Embedded in .resx.
To change a resource from embedded to linked
With a project selected in Solution Explorer, on the Project menu, click Properties.
Click the Resources tab.
On the Resource Designer toolbar, point to the resource view drop-down, click the arrow, and select the type of resource that you want to edit.
Select the resource that you want to change.
In the Properties window, select the Persistence property and change it to Linked at compile time.
Consulte também
Referência
Página de recursos, Designer de projeto
Resgen. exe (gerador do arquivo de recurso)
Conceitos
Recursos Vinculados versus Incorporados