Skip to content

Commit

Permalink
Bump to 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 committed Dec 23, 2022
1 parent 1af9bfa commit a3cac73
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<UseNet8 Condition="'$(UseNet8)' == ''">False</UseNet8>
<GenerateWPF Condition="'$(GenerateWPF)' == ''">False</GenerateWPF>
<DefineConstants Condition="'$(GenerateWPF)' == 'True'">$(DefineConstants);USE_WPF</DefineConstants>
<VersionPrefix>0.4.0</VersionPrefix>
<VersionPrefix>0.4.1</VersionPrefix>
<WinFormsRepoRoot></WinFormsRepoRoot>
<WpfRepoRoot></WpfRepoRoot>
</PropertyGroup>
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ And modify project file to enable NativeAOT

If you application will works with this ComWrappers implementation, then most likely it would work with NativeAOT.

If you are using WebView2 using `Microsoft.Web.WebView2.Core` package, then use

ComWrappers.RegisterForMarshalling(WinFormsComInterop.WebView2.WebView2ComWrapper.Instance);

Also
1. Add RD.xml file from https://github.com/kant2002/RdXmlLibrary/blob/main/Microsoft.AspNetCore.Components.Web.rd.xml to project
2. Add `<RdXmlFile Include="Microsoft.AspNetCore.Components.Web.rd.xml" />` to project file
3. Make sure that RootComponets are added to you app-specific rd.xml
```xml
<?xml version="1.0" encoding="utf-8" ?>
<Directives>
<Application>
<Assembly Name="YourAppAssembly" Dynamic="Required All">
<Type Name="YourAppAssembly.YourRootComponent" Dynamic="Required All" />
</Assembly>
</Application>
</Directives>
```

## Testing technology

Test that normal CoreCLR works
Expand Down
5 changes: 2 additions & 3 deletions WinFormsComInterop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Also
1. Add RD.xml file from https://github.com/kant2002/RdXmlLibrary/blob/main/Microsoft.AspNetCore.Components.Web.rd.xml to project
2. Add `<RdXmlFile Include="Microsoft.AspNetCore.Components.Web.rd.xml" />` to project file
3. Make sure that RootComponets are added to you app-specific rd.xml
```
```xml
<?xml version="1.0" encoding="utf-8" ?>
<Directives>
<Application>
Expand All @@ -39,5 +39,4 @@ Also
</Assembly>
</Application>
</Directives>
```
```

0 comments on commit a3cac73

Please sign in to comment.