Bagikan melalui


Manifest.UpdateFileInfo Method (String)

Updates file information for each referenced assembly and file, using the specified version of the target framework.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Sub UpdateFileInfo ( _
    targetFrameworkVersion As String _
)
public void UpdateFileInfo(
    string targetFrameworkVersion
)
public:
void UpdateFileInfo(
    String^ targetFrameworkVersion
)
member UpdateFileInfo : 
        targetFrameworkVersion:string -> unit
public function UpdateFileInfo(
    targetFrameworkVersion : String
)

Parameters

  • targetFrameworkVersion
    Type: System.String

    The version of the target framework to use. Null if no target framework version. If no target framework version, uses sha256 algorithm.

Remarks

The file information includes a hash computation and a file size for each referenced file and assembly. Also, the assembly identity is obtained for any referenced assemblies with an unspecified assembly identity. Any resulting errors or warnings are reported in the OutputMessageCollection object.

.NET Framework Security

See Also

Reference

Manifest Class

UpdateFileInfo Overload

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace