timabell / ssrs-powershell-deploy

PowerShell scripts to deploy a SQL Server Reporting Services project (*.rptproj) to a Reporting Server
MIT License
75 stars 40 forks source link

Unable to deploy ResourceProjectItem with spaces in filename #22

Open xaviermiller opened 7 years ago

xaviermiller commented 7 years ago

Hi!,

I would like to deploy misc files like "RELEASE NOTES.txt" (space in the file name).

I disabled the check on the image mime type in Publish-SSRSProject.ps1, line 164, but I have errors on the $Path line, and $RawDefinition

How can I enable misc filenames with spaces?

xaviermiller commented 7 years ago

Fixed like so : rename $path into $ItemPath and

$ItemPath = $ProjectRoot | Join-Path -ChildPath $_.FullPath $RawDefinition = Get-Content -Encoding Byte (Get-Item -force -LiteralPath $ItemPath).FullName