You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell Set-GitHubContent breaking the encoding of the csproj file #331
I am using PS module PowerShellForGitHub to perform some work in my github repositories. One of actions is to make changes to the net standard project file. For that the function Set-GitHubContent is used. After I push up the changes the project file becomes unreadable by VisualStudio with the error
error : The project file could not be loaded. Name cannot begin with the '.' character, hexadecimal value 0x00. Line 1, position 2.
Clearly the encoding issue as the file is opened fine by notepad and looks good. I cant figure out how the issue is happening. I tried a very simple code and even that code messes up the project file.
changed the title [-]PowerShell Set-GitHubContent messes up the encoding of the csproj file[/-][+]PowerShell Set-GitHubContent breaking the encoding of the csproj file[/+]on Jun 30, 2021
Thanks for the report. This was already fixed with #328 back in May. Unfortunately, I haven't been able to release an updated version of the module to PowerShellGallery due to some internal issues that I'm having with getting the module signed due to some changes in the procedure within Microsoft (see here). For the time being, you'll find the problem resolved if you use the module sync'd in the state from this repo as opposed to from PowerShellGallery.
Activity
[-]PowerShell Set-GitHubContent messes up the encoding of the csproj file[/-][+]PowerShell Set-GitHubContent breaking the encoding of the csproj file[/+]HowardWolosky commentedon Jun 30, 2021
Thanks for the report. This was already fixed with #328 back in May. Unfortunately, I haven't been able to release an updated version of the module to PowerShellGallery due to some internal issues that I'm having with getting the module signed due to some changes in the procedure within Microsoft (see here). For the time being, you'll find the problem resolved if you use the module sync'd in the state from this repo as opposed to from PowerShellGallery.