Skip to content

Commit

Permalink
chore: 优化清单文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed May 7, 2023
1 parent cbfd482 commit 9fa0704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Magpie/XamlIslands.targets
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
var dllPathNode = winRTFactory.SelectSingleNode("./m:Path", nsmgr);
var dllPath = dllPathNode.InnerText;
var typesNames = winRTFactory.SelectNodes("./m:ActivatableClass", nsmgr).OfType<XmlNode>();
var xmlHeader = String.Format(@" <asmv3:file name='{0}'>", dllPath);
var xmlHeader = String.Format(@" <asmv3:file name='{0}' xmlns='urn:schemas-microsoft-com:winrt.v1'>", dllPath);
sb.Append(xmlHeader);
foreach (var typeNode in typesNames)
{
Expand All @@ -110,8 +110,7 @@
var xmlEntry = String.Format(@"
<activatableClass
name='{0}'
threadingModel='both'
xmlns='urn:schemas-microsoft-com:winrt.v1'/>", typeName);
threadingModel='both' />", typeName);
sb.Append(xmlEntry);
}
var xmlFooter = @"
Expand Down
4 changes: 2 additions & 2 deletions src/Magpie/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<activatableClass name="Magpie.App.App"
threadingModel="both" />
<activatableClass name="Magpie.App.MainPage"
threadingModel="both" />
threadingModel="both" />
<activatableClass name="Magpie.App.LoggerHelper"
threadingModel="both" />
threadingModel="both" />
</asmv3:file>

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
Expand Down

0 comments on commit 9fa0704

Please sign in to comment.