Skip to content

Commit

Permalink
Use MddBootstrapInitializeOptions_OnPackageIdentity_NOOP Policy as …
Browse files Browse the repository at this point in the history
  • Loading branch information
astuy committed Feb 7, 2024
1 parent 3ad0b67 commit 813d56f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
10 changes: 0 additions & 10 deletions Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Autodesk.AutoCAD.Runtime;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Hosting;
using Microsoft.Windows.ApplicationModel.DynamicDependency;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
Expand All @@ -20,15 +19,6 @@ public class Class1 : IExtensionApplication
{
public void Initialize()
{
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.CurrentDocument.Editor.WriteMessage("Initializing WinUITest...\n");
try
{
Bootstrap.Initialize(0x00010004);
}
catch (System.Exception exc)
{
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.CurrentDocument.Editor.WriteMessage(exc.ToString() + "\n");
}
}

[CommandMethod(nameof(ShowWinUI))]
Expand Down
3 changes: 1 addition & 2 deletions WinUITest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<!--<UseWPF>true</UseWPF>-->
<!--<WindowsAppSdkBootstrapInitialize>true</WindowsAppSdkBootstrapInitialize>-->
<!--<WindowsAppSDKBootstrapAutoInitializeOptions_OnError_DebugBreak>true</WindowsAppSDKBootstrapAutoInitializeOptions_OnError_DebugBreak>-->
<WindowsAppSDKBootstrapAutoInitializeOptions_OnPackageIdentity_NoOp>true</WindowsAppSDKBootstrapAutoInitializeOptions_OnPackageIdentity_NoOp>
<WindowsPackageType>None</WindowsPackageType>
</PropertyGroup>

Expand Down

0 comments on commit 813d56f

Please sign in to comment.