Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ private bool ExecuteLegacyGenerateTemporaryTargetAssembly()
XmlDocument xmlProjectDoc = null;

xmlProjectDoc = new XmlDocument( );
xmlProjectDoc.Load(CurrentProject);

//Bugfix for GB chars, exception thrown when using Load(CurrentProject), when project name has GB characters in it.
//Using a filestream instead of using string path to avoid the need to properly compose Uri (which is another way of fixing - but more complicated).
using(FileStream fs = File.OpenRead(CurrentProject))
{
xmlProjectDoc.Load(fs);
}
//
// remove all the WinFX specific item lists
// ApplicationDefinition, Page, MarkupResource and Resource
Expand Down Expand Up @@ -247,8 +251,12 @@ private bool ExecuteGenerateTemporaryTargetAssemblyWithPackageReferenceSupport()
XmlDocument xmlProjectDoc = null;

xmlProjectDoc = new XmlDocument( );
xmlProjectDoc.Load(CurrentProject);

//Bugfix for GB chars, exception thrown when using Load(CurrentProject), when project name has GB characters in it.
//Using a filestream instead of using string path to avoid the need to properly compose Uri (which is another way of fixing - but more complicated).
using(FileStream fs = File.OpenRead(CurrentProject))
{
xmlProjectDoc.Load(fs);
}
// remove all the WinFX specific item lists
// ApplicationDefinition, Page, MarkupResource and Resource
RemoveItemsByName(xmlProjectDoc, APPDEFNAME);
Expand Down