Open Igmat opened 8 years ago
@Igmat Thanks for reporting this issue. Until this issue is fixed, you can set the publishOutputpath by setting this property in the pubxml.
In pubxml, you can add this and this should redirect the output to the specified folder
<PublishOutputPathNoTrailingSlash>c:\PathtoOutputFolder</PublishOutputPathNoTrailingSlash>
I'm using Win 10, and VS 2015 Community and have problems with publishing my ASP Core RC2 app to Azure, because my Windows username contains cyrillic symbols. Steps to reproduce:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Publishing.targets(406,5): Ошибка : ЋиЁЎЄ : ЌҐ¤®ЇгбвЁ¬л© § Є ¤«п гЄ § ®© Є®¤Ёа®ўЄЁ., бва®Є 1, Ї®§ЁжЁп 76.
My small investigation:Error: Invalid sign for the specified encoding, line 1 position 76.
SourceManifest.xml
C:\Users\Игорь\AppData\Local\Temp\PublishTemp\MyAwesomeProject70
, but inSourceManifest.xml
it looks like:C:\Users\�����\AppData\Local\Temp\PublishTemp\MyAwesomeProject70
and xml encoding is set toutf-8
which causes this error.SourceManifest.xml
manually, but it is regenerated each time I'm using publish dialogue from VS.publish-module.psm1
and applied small fix: From$xmlDocument = [xml]'<?xml version="1.0" encoding="utf-8"?><sitemanifest></sitemanifest>'
To$xmlDocument = [xml]'<?xml version="1.0" encoding="windows-1251"?><sitemanifest></sitemanifest>'
In line with number: 370 (as for last commits it is 607). And this small fix works for me, but I understand that it likely will cause problems for others. I hope this info will help you to fix this annoying bug.