dalibormesaric / PublishNotifier

Notify your team in Slack or Microsoft Teams when you Deploy a Web Project Using One-Click Publish from Visual Studio or you just publish to a folder.
https://marketplace.visualstudio.com/items?itemName=dalibormesaric.PublishNotifier
Other
5 stars 3 forks source link

Publish Notifier Not Displaying #1

Closed jordanpowell88 closed 3 years ago

jordanpowell88 commented 6 years ago

I installed the extension and created the incoming slack webhook but I am not able to get the publish notifier to display. The way I understand it based upon the documentation is that it should appear after the publish has completed but nothing is happening? Not sure what I'm doing incorrectly.

Im using VS 2017 Professional on Windows 10. Is their a way to edit this setting manually?

dalibormesaric commented 6 years ago

Hi Jordan! Do you see the extension under Tools > Extensions and Updates as installed? You need to restart VS after installing if it is not there.

jordanpowell88 commented 6 years ago

Yes and I've done a restart...any thoughts? 2018-01-05 12_49_52-vacant - microsoft visual studio

dalibormesaric commented 6 years ago

Hmm, I just tried installing again and publishing a new WebApplication template project in to a folder and it works as it is described. Can you try the same scenario?

image

Or maybe try browsing your windows using Alt-Tab when you see this in case the dialog box is not in focus:

image

jordanpowell88 commented 6 years ago

I uninstalled and re-installed it like you suggested and published again with no luck.

image

dalibormesaric commented 6 years ago

I tried installing it on few other computers, but it works every time... I'll keep testing, but in the mean time, can you try this: https://blogs.msdn.microsoft.com/visualstudio/2010/02/24/troubleshooting-extensions-with-the-activity-log/ and see it you get any errors

dylanvdmerwe commented 3 years ago

This should be reopened.

1) No popup after publishing a .NET 5 ASP API. 2) No instructions on how to configure the webhook URL in the json manually.

dalibormesaric commented 3 years ago

Hey @dylanvdmerwe ! I'm really sorry but I can't reproduce the issue, at least not with the amount of information that I have. Json file should be in the root of your solution, but I guess if the extension is not working then it is not created there.

I just tested again on two computers with a new .net 5 web api project, publishing both to a folder and to a web app in azure, and extension works as expected.

I have added instructions on how to run the extension in debug mode https://github.com/dalibormesaric/PublishNotifier/blob/master/SETUP.md in case you are willing to provide some help in chasing down this bug :)

dylanvdmerwe commented 3 years ago

Of course I will help track it down and assist.

Firstly, this is VS 2019 16.8.4.

You will need to guide me more on how to do this. I do not see the options anywhere in my project?

image

dalibormesaric commented 3 years ago

Great! Frist you will need to add Visual Studio extension development workload in your visual studio installer by clicking on Modify, then you need to clone PublishNotifier repository and follow the instructions I mentioned above. When you run the extension in debug mode, it will open an experimental instance of visual studio where you can open your web project and try publishing it. More information

dylanvdmerwe commented 3 years ago

@dalibormesaric sorry for the delay.

I am running the debug PublishNotifier with my solution open.

I then try to publish the project as per the normal process. The publish occurred successfully but no extension popup.

After publish the following exception was raised by PublishNotifier instance:

image

Path value is: C:\Projects\WunderlustAPI\WebService.SiteApi\PublishNotifier.json but it looks wrong. There's a folder missing.

image

I think you should rather identify where the .sln file is and write the PublishNotifier.json file there right so there is one config per solution? Or is there one config per project? My solutions are heavily split up into folders:

image

Inside WebServiceProjects dir, there is a WebService.SiteApi dir inside which the the project. In this specific solution there are a few publishable projects: image

Please let me know if I can assist further.

dalibormesaric commented 3 years ago

Wow, thank you so much for your report! I was able to recreate the issue, and it was due to having projects in one more level of directories. The way I constructed the project path was wrong, and it should be fixed now.

I published a new version to marketplace https://marketplace.visualstudio.com/items?itemName=dalibormesaric.PublishNotifier , so please give it a try and let me know if this is fixed now.

Thanks again @dylanvdmerwe ! Hopefully this fixes the original issue for @jordanpowell88 as well :)

I wrote some ideas on what could be added to the extension here https://github.com/dalibormesaric/PublishNotifier/blob/master/CHANGELOG.md and if you think some would bring value to you, please open an issue and I'll do it.

dylanvdmerwe commented 3 years ago

You are a star! Love your work and look forward to using the extension!