-
-
Notifications
You must be signed in to change notification settings - Fork 291
Removed WindowsForms dependency for NativeAOT #802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
33a67c1
Created a separate Registration.StaticRegistration class for compile …
Sergey-Vlasov 81d7ed9
Removed Loader dependency on the NativeAOT class.
Sergey-Vlasov defcb1e
Removed the NativeAOT class.
Sergey-Vlasov 44dc0a0
Isolated WinForms code with #if USE_WINDOWS_FORMS.
Sergey-Vlasov 67b2d31
Added Win32 definitions.
Sergey-Vlasov d132dce
Enabled SynchronizationManager.
Sergey-Vlasov 04f26ea
Added access to hModuleXll to ExcelDna.Integration.
Sergey-Vlasov 952415f
Implemented SafeHandle wrapper for HINSTANCE.
Sergey-Vlasov 43bbcae
Re-enabled FormulaEditMode detection.
Sergey-Vlasov 77747b9
Implemented NativeWindow using Win32 API.
Sergey-Vlasov e5cb858
Merge pull request #797 from Excel-DNA/Win32
Sergey-Vlasov 9b19774
Implemented minimal LogDisplay using Win32 API.
Sergey-Vlasov f3dfd2b
Added read only for log display text.
Sergey-Vlasov 50dd51c
Added the ES_READONLY constant.
Sergey-Vlasov 8c23786
Removed WindowsForms dependency.
Sergey-Vlasov 82df310
Removed all LogDisplayForm files from AOT compilation.
Sergey-Vlasov ecff238
Added minimal native LogDisplay WriteLine support.
Sergey-Vlasov dd36c18
Merge pull request #800 from Excel-DNA/NativeLogView
Sergey-Vlasov 8a27aaf
Removed WindowsForms dependency from the package.
Sergey-Vlasov 2ae6714
Fixed command menu registration.
Sergey-Vlasov d57be91
Created ExcelDna.TestAOT project for manual tests.
Sergey-Vlasov 4dbbca7
Added support for log message formatting.
Sergey-Vlasov 42ea564
Created a common WndClassRegistration class.
Sergey-Vlasov 1433491
Implemented support for custom ribbon images using Win32 API.
Sergey-Vlasov 176bffa
Merge pull request #803 from Excel-DNA/RibbonPicture
Sergey-Vlasov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 0 additions & 2 deletions
2
Package/ExcelDna.AddIn.NativeAOT/build/ExcelDna.AddIn.NativeAOT.props
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<UseWindowsForms>true</UseWindowsForms> | ||
<SelfContained>true</SelfContained> | ||
</PropertyGroup> | ||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can we skip the Release here? It seems we end up calling Marshal.GetObjectForIUnknown which increments the reference count.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand,
https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal.getobjectforiunknown?view=net-9.0#remarks
In our case it will be decremented on line 510
Calling Marshal.Release(pUnk) manually will over decrement the reference count.