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

more information about this project #1

Closed
ghost1372 opened this issue Oct 24, 2021 · 13 comments
Closed

more information about this project #1

ghost1372 opened this issue Oct 24, 2021 · 13 comments

Comments

@ghost1372
Copy link

ghost1372 commented Oct 24, 2021

Hi, Can you provide more information about this project?
Is this project incomplete?
The project does not compile properly and after a lot of effort I was able to compile it.
The C# project does nothing but save the json file, I expected the item to be added to the context menu.
also After running the packaged project, nothing happened and no items were added to the menu.😕
Exactly what should we do?!

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

Hi, Can you provide more information about this project? Is this project incomplete? The project does not compile properly and after a lot of effort I was able to compile it. The C# project does nothing but save the json file, I expected the item to be added to the context menu. also After running the packaged project, nothing happened and no items were added to the menu.😕 Exactly what should we do?!

This project is mainly used to learn the new menu APi. It is still in a very early stage, but I have used it for a few months and it is running well.

I have uploaded the compilation,please see build.md

@ghost1372
Copy link
Author

thank you
I get the following errors when compiling

image

After commenting that piece of code, it is successfully compiled. However, UWP and WAP Project is not compiled either

image

I tried to create a new certificate This solved the problem for the UWP project, but not the WAP. I had to create a new WAP project myself and copy its appxmanifest.
After all this, I do not see any items in File Explorer ContextMenu

@ghost1372
Copy link
Author

Do I have to publish and deploy the project to see the context menu? or I can see the changes in debug mode?

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

Do I have to publish and deploy the project to see the context menu? or I can see the changes in debug mode?
no,debug is support
Comment lines 41 and 45 directly ,Sz*.cpp

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

set ContextMenuCustomPackage project as startup project

@ghost1372
Copy link
Author

set ContextMenuCustomPackage project as startup project

cant be compiled, i need to create a new project
image

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

You can add a new project , then add dependencies , then select uwp project

modify new project package.appxmanifest

 <Extensions>
        <desktop4:Extension Category="windows.fileExplorerContextMenus">
          <desktop4:FileExplorerContextMenus>
            <desktop5:ItemType Type="Directory"  >
              <desktop5:Verb Id="Command1" Clsid="46F650E5-9959-48D6-AC13-A9637C5B3787" />
            </desktop5:ItemType>
            <desktop5:ItemType Type="*"  >
              <desktop5:Verb Id="Command2" Clsid="46F650E5-9959-48D6-AC13-A9637C5B3787" />
            </desktop5:ItemType>
          </desktop4:FileExplorerContextMenus>
        </desktop4:Extension>
        <com:Extension Category="windows.comServer">
          <com:ComServer>
            <com:SurrogateServer  DisplayName="Custome Context Menu">
              <com:Class Id="46F650E5-9959-48D6-AC13-A9637C5B3787" Path="ContextMenuCustomHost.dll" ThreadingModel="STA"/>
            </com:SurrogateServer>
          </com:ComServer>
        </com:Extension>
      </Extensions>

@ghost1372
Copy link
Author

I did what you said, but now I get the following error
image

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

it say the file is being used by another process
you can try close all vs process then reopen vs

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

I did what you said, but now I get the following error image

Things are getting worse....I updated some code...

  1. Check the start menu, and then uninstall all the applications of this project.(may be 2 apps)
  2. Re-clone the code
  3. modify the certificates of the uwp and package project, right-click package.appxmanifest and select the certificate
  4. follow build.md

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

I uploaded a compiled package, I tested it on my other computer, and it was running well

https://github.com/ikas-mc/ContextMenuForWindows11/releases/tag/1.0.8.0

@ghost1372
Copy link
Author

Thank you @ikas-mc
I get file is being used by another process error again. I do not know why I opened and closed Visual Studio but it did not change The problem seems to be from Visual Studio.
Anyway, thanks for everything, especially the compiled version

@ikas-mc
Copy link
Owner

ikas-mc commented Oct 25, 2021

@ghost1372
Use CI build successfully
https://github.com/ikas-mc/ContextMenuForWindows11/actions
😥 ci use vs2019

@ikas-mc ikas-mc closed this as completed Oct 28, 2021
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

No branches or pull requests

2 participants