Skip to content
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

Rdipardo refactor/unmanaged exports #4

Merged
merged 5 commits into from
Feb 27, 2024

Conversation

molsonkiko
Copy link
Owner

Incorporates @rdipardo's PR #3, but includes a commit to fix the old behavior of always creating the plugin directory in the Notepad++ folder, and then copying the dll to the plugin folder.

This will only work if you have a ProgramFiles or ProgramFiles (x86) Notepad++ installation. Maybe there's a better way to do this, like a batch or PowerShell script that is triggered in the csproj?

When testing this PR, I recommend deleting the plugin folder in your Notepad++ installation before building, to verify that the plugin folder is created.

rdipardo and others added 3 commits February 25, 2024 08:36
Eliminates a lingering build dependency on an ancient version of
Microsoft.Build.Utilities (v2.0.0.0), which won't be available in
environments where .NET Framework 3.5 build tools have not been
installed [^1]

See https://www.nuget.org/packages/UnmanagedExports.Repack.Upgrade

Caveats
........

* initial builds must now run a 'Restore' task first [^2]

* this adds package references with the 'GeneratePathProperty' attribute,
  so at least VS 2019 (i.e. MSBuild 16), or NuGet 5.0, is required [^3]

[^1] https://community.notepad-plus-plus.org/post/93058
[^2] https://learn.microsoft.com/nuget/reference/msbuild-targets#restore-target
[^3] https://learn.microsoft.com/nuget/consume-packages/package-references-in-project-files#generatepathproperty
rdipardo's initial commit broke the old behavior
    of always creating a plugin dir in the correct place
    and then copying the dll to the directory.
Unfortunately, I still can't copy testfiles to the plugin directory
    because the RecursiveDir item is completely cursed
Copy link
Contributor

@rdipardo rdipardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

Release version 0.0.3
This has been tested successfully on Notepad++ versions
    7.3.3, 8.3.3, 8.5.5, 8.5.8, and 8.6.4
    (both 32-bit and 64-bit versions of each.
Now the user can specify a non-ProgramFiles directory
    to start from, using the command line. See Changelog.
@molsonkiko
Copy link
Owner Author

Thanks for your help, @rdipardo !

@molsonkiko molsonkiko merged commit c5e3895 into main Feb 27, 2024
4 checks passed
@molsonkiko molsonkiko deleted the rdipardo-refactor/unmanaged-exports branch February 27, 2024 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants