c:\windows\assembly\\

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c:\windows\assembly\\相关的知识,希望对你有一定的参考价值。

c:/windows/assembly/Nativeimages_v2.0.50727-32/PresentationBuildTa#/7c78c24952fad7252c7ff7f739fd6198/PresentationBulidTasks.ni.dll是什么文件?为什么杀毒软件查到的时候会死机阿?就算在安全模式下也是这样。还有按这路径怎么也找不到文件,能告诉我这到底是什么吗?

参考技术A 该文件夹下为。net或者其他控制模块存放,看你这么长的文件名,应该是什么临时文件,建议楼主换个杀毒软件再试试,不行就只有做系统或者复制别人的C:\Windows\assembly文件夹来覆盖自己这个了追问

我了个擦,这么多年前的问题居然还有人回答...电脑都换了~

powershell 来自http://blog.goverco.com/2012/04/use-powershell-to-put-your-assemblies.html的Add-Assembly

<#
.SYNOPSIS 
  Installing Assemblies to Global Assembly Cache (GAC)
.DESCRIPTION 
	This script is an alternative to the GACUTIL available in 
	the .NET Framework SDK. It will put the specified assembly
	in the GAC.
.EXAMPLE
    .\Add-AssemblyToGlobalAssemblyCache.ps1 -AssemblyName C:\Temp\MyWorkflow.dll
    
    This command will install the file MyWorkflow.dll from the C:\Temp directory in the GAC.
.EXAMPLE
    Dir C:\MyWorkflowAssemblies | % {$_.Fullname} | .\Add-AssemblyToGlobalAssemblyCache.ps1
    
    You can also pass the assembly filenames through the pipeline making it easy
    to install several assemblies in one run. The command abobe  will install 
    all assemblies from the directory C:\MyWorkflowAssemblies, run this command -
.PARAMETER AssemblyName
	Full path of the assembly file
.PARAMETER PassThru
    If set, script will pass the filename given through the pipeline    
.NOTES 
	April 18, 2012 | Soren Granfeldt (soren@granfeldt.dk) 
		- initial version
.LINK 
    http://blog.goverco.com
#>

[CmdletBinding()]
PARAM
(
	[Parameter(Mandatory=$true, ValueFromPipeline=$True,ValueFromPipelineByPropertyName=$True)]
	[ValidateNotNullOrEmpty()]
	[string] $AssemblyName = "",

	[switch]$PassThru
)
BEGIN 
{
	$me = $MyInvocation.MyCommand -Replace '\.ps1$', ''
	Write-Debug "BEGIN: $Me"
	if ( $null -eq ([AppDomain]::CurrentDomain.GetAssemblies() |? { $_.FullName -eq "System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" }) ) {
		[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") | Out-Null
	}
	$PublishObject = New-Object System.EnterpriseServices.Internal.Publish
}

PROCESS {
	Write-Debug "PROCESS: $me"
          
	foreach ($Assembly in $AssemblyName)
	{
        if ( -not (Test-Path $Assembly -type Leaf) ) 
        {
            throw "The assembly '$Assembly' does not exist."
        }

        $LoadedAssembly = [System.Reflection.Assembly]::LoadFile($Assembly)

        if ($LoadedAssembly.GetName().GetPublicKey().Length -eq 0) 
        {
            throw "The assembly '$Assembly' must be strongly signed."
        }
          
        Write-Verbose "Installing: $Assembly"
        $PublishObject.GacInstall($Assembly)

        if ($PassThru) { $_ }
    }
}

END 
{
    Write-Debug "END: $me"
}

以上是关于c:\windows\assembly\\的主要内容,如果未能解决你的问题,请参考以下文章

加载C:\windows\system32\ffydi.dll 内存分配访问无效

c:\windows\assembly\\

“login”同时存在于“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Fil

加载C:\WINDOWS\system32\geogk.dll内存分配无效

npm 或者 yarn 安装报错 C:\WINDOWS\system32\cmd.exe

C:\WINDOWS\system32\dmserver.dll的作用,它现在无法启动!