伪Nuget打包将文件创建为只读
我正在尝试使用伪Nuget帮助程序生成nuspec并打包它。问题是,当它生成nuspec时,它被设置为只读。从那里,当nuget.exe运行时,它在尝试执行打包过程时抛出“拒绝访问” 我需要做什么来规避这个问题伪Nuget打包将文件创建为只读,nuget,f#-fake,Nuget,F# Fake,我正在尝试使用伪Nuget帮助程序生成nuspec并打包它。问题是,当它生成nuspec时,它被设置为只读。从那里,当nuget.exe运行时,它在尝试执行打包过程时抛出“拒绝访问” 我需要做什么来规避这个问题 好的,这不是最好的解决方案,但以下是我所做的 在启动伪脚本的Powershell脚本中,我添加了更改nuspec属性的步骤,删除了只读标志 这似乎是我需要的 $rootDir = (Resolve-Path $pwd\) $nuspecFile = (Join-Path $rootDir
好的,这不是最好的解决方案,但以下是我所做的 在启动伪脚本的Powershell脚本中,我添加了更改nuspec属性的步骤,删除了只读标志 这似乎是我需要的
$rootDir = (Resolve-Path $pwd\)
$nuspecFile = (Join-Path $rootDir \nuspec\GeoSphere.nuspec)
Write-Host "Attempting to change the readonly status of $nuspecFile"
Set-ItemProperty $nuspecFile -name IsReadOnly -value $false