PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Assembly­Name­Extensions Class / Assembly­Name­Extensions Methods / Assembly­Name­Extensions.​To­Assembly­Identity Method / Assembly­Name­Extensions.​To­Assembly­Identity Method (IAssembly­Name, String, Guid, Framework­Name)

AssemblyNameExtensions.ToAssemblyIdentity Method (IAssemblyName, String, Guid, FrameworkName)

Note: This API is now obsolete.

[Missing <summary> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.ToAssemblyIdentity(PostSharp.Reflection.IAssemblyName,System.String,System.Guid,System.Runtime.Versioning.FrameworkName)"]

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
[ObsoleteAttribute("The IsReferenceAssembly flag must be set. Use the other overload of this method instead.")]
public static IAssemblyIdentity ToAssemblyIdentity(
	this IAssemblyName assemblyName,
	string path,
	Guid guid,
	FrameworkName targetFramework
)

Parameters

assemblyName
Type: IAssemblyName

[Missing <param name="assemblyName"/> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.ToAssemblyIdentity(PostSharp.Reflection.IAssemblyName,System.String,System.Guid,System.Runtime.Versioning.FrameworkName)"]

path
Type: System.String

[Missing <param name="path"/> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.ToAssemblyIdentity(PostSharp.Reflection.IAssemblyName,System.String,System.Guid,System.Runtime.Versioning.FrameworkName)"]

guid
Type: System.Guid

[Missing <param name="guid"/> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.ToAssemblyIdentity(PostSharp.Reflection.IAssemblyName,System.String,System.Guid,System.Runtime.Versioning.FrameworkName)"]

targetFramework
Type: System.Runtime.Versioning.FrameworkName

[Missing <param name="targetFramework"/> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.ToAssemblyIdentity(PostSharp.Reflection.IAssemblyName,System.String,System.Guid,System.Runtime.Versioning.FrameworkName)"]

Return Value

Type: IAssemblyIdentity

[Missing <returns> documentation for "M:PostSharp.Sdk.CodeModel.AssemblyNameExtensions.ToAssemblyIdentity(PostSharp.Reflection.IAssemblyName,System.String,System.Guid,System.Runtime.Versioning.FrameworkName)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAssemblyName. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also