Compartir a través de


VCLinkerTool.EmbedManagedResourceFile (Propiedad)

Obtiene o establece el archivo de recursos .NET (o .NET Framework) incrustado especificado.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
Property EmbedManagedResourceFile As String
string EmbedManagedResourceFile { get; set; }
property String^ EmbedManagedResourceFile {
    String^ get ();
    void set (String^ value);
}
abstract EmbedManagedResourceFile : string with get, set
function get EmbedManagedResourceFile () : String 
function set EmbedManagedResourceFile (value : String)

Valor de propiedad

Tipo: String
Cadena que representa el archivo de recursos .NET (o .NET Framework) incrustado especificado.

Comentarios

EmbedManagedResourceFile expone la funcionalidad de la opción /ASSEMBLYRESOURCE (Incrustar un recurso administrado) del vinculador.

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

Ejemplos

En el ejemplo siguiente se modifica la propiedad EmbedManagedResourceFile en el entorno de desarrollo integrado (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
  Sub Test()
    Dim prj As VCProject
    Dim cfgs, tools As IVCCollection
    Dim cfg As VCConfiguration
    Dim tool As VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.EmbedManagedResourceFile = "c:\MyResource.rc"
    MsgBox("Embedded resource file: " & tool.EmbedManagedResourceFile)     
  End Sub
End Module

Seguridad de .NET Framework

Vea también

Referencia

VCLinkerTool Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)