FineCodeCoverage
FineCodeCoverage copied to clipboard
Prevents NuGet Package Manager from opening
Installed product versions
- Visual Studio: 2022 Enterprise 17.0.0
- This extension: 1.1.154
Description
When there is a problem with the configuration of a test project and the extension is enabled I cannot open the NuGet Package Manager on the project or solution.
Steps to recreate
- In Visual Studio, create a new solution with a .NET 6 NUnit test project (select the "NUnit Test Project" template).
- Make the test project "broken" by removing the
Microsoft.NET.Test.Sdk
NuGet package. - Install / enable the "Fine Code Coverage" extension.
- Restart Visual Studio.
- Re-open the solution.
- Right-click the solution in the Solution Explorer and select "Manage NuGet Packages for Solution..."
Current behavior
The NuGet Package Manager doesn't open.
Expected behavior
The fact that the test project is not properly configured should not prevent the NuGet Package Manager from opening.
Please check you activity logs. See https://github.com/FortuneN/FineCodeCoverage/issues/108
@tonyhallett deleting the .vs folder did not resolve the problem.
Here are the log entries from ActivityLog that are written when I try to open the NuGet Package Manager:
<entry>
<record>790</record>
<time>2021/11/22 08:40:51.160</time>
<type>Error</type>
<source>NuGetPackage.ShowManageLibraryPackageForSolutionDialog</source>
<description>XamlParseException - Provide value on 'System.Windows.Markup.StaticExtension' threw an exception.</description>
</entry>
<entry>
<record>791</record>
<time>2021/11/22 08:41:20.206</time>
<type>Error</type>
<source>NuGetPackage.ShowManageLibraryPackageForSolutionDialog</source>
<description>Exception - The component 'NuGet.PackageManagement.UI.PackageManagerControl' does not have a resource identified by the URI '/NuGet.PackageManagement.UI;component/xamls/packagemanagercontrol.xaml'.</description>
</entry>
Have you tried the Steps To Create with another extension instead ?
I disabled "Fine Code Coverage" and performed the "Steps to Create" installing the "Smooth Caret" extension instead at step 3. At step 6 NuGet Package Manager opened without issues.
I followed your steps and do not have any issue. I am using the community edition though.
Microsoft Visual Studio Community 2022 (64-bit) Version 17.0.1
Can you update your version ?
I cannot see any reason why fine code coverage should impact nuget.
I updated Visual Studio to 17.0.1. The behavior is the same.
If the issue can't be reproduced, I'm happy to have it closed since it happens only when that particular package is not included in the project (which generally shouldn't happen).
Now all of a sudden it seems to be happening in my other solution, regardless of whether the necessary packages are included 🤔.
Have you tried deleting your nuget cache ?
I tried that. Still no luck 😕
@bhaeussermann did you successfully install ?
@tonyhallett It's still an issue. If the extension is enabled, NuGet Package Manager won't open. I have to disable the extension and restart VS in order to open NuGet Package Manager. It happens in all of my VS solutions as far as I can tell.
I do acknowledge that the issue is non-reproducible. Perhaps I should try reinstalling Visual Studio.
I just updated Visual Studio to 17.0.4 and it seems the issue is fixed now 🙂
Good news !
I updated Visual Studio to 17.0.5 and now the issue has reappeared 😕
Can you show me the options you have set
It's exactly the same as yours 🤔
I had to reinstall Visual Studio because of other issues (still 17.0.5). Now it seems the issue is gone 🙂.
I do hope you do not encounter it again. If you do can you check in regedit to see if visual studio has blocked the extension.
I encounter the same issue all the time. Having the same option settings, and on visual studio 17.0.6. Fine Code Coverage v.1.1.161. I have to disable Fine Code Coverage extension to get the Nuget Package Manager showing. I have the same set of options as shown above. Is there any other part we can check for this issue?
@jason-lee-rav Have you tried reinstalling Visual Studio? That's the thing that worked for me.
Didn't try re-install really. Need to try it after hours.
Happen to have change to VS studio upgrade to 17.1.0, and still having the same issue. I think my last bet would be re-install. I have try it tonight later, and will report back here.
Took some time and reinstall VS2022, and it worked. Thanks for your suggestion @bhaeussermann.
Also having the same problem here with VS 17.1.0. Disable FineCodeCoverage extension, restart VS and Manage NuGet packages works. Re-enable FCC and NuGet manager breaks. I am not a believer in reinstalling an entire software package (e.g. Visual Studio) in order to fix an issue created by an extension. Suggest you look further into why the extension causes this issue.
@cutty225
I am not a believer in reinstalling an entire software package (e.g. Visual Studio) in order to fix an issue created by an extension
Agreed not good.
Suggest you look further into why the extension causes this issue.
Doing so. Although this is not the easiest one to track down. Ideally someone will be able to provide a repo where this is occurring / began.
Perhaps you can try https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-diagnose-ui-delays-caused-by-extensions?view=vs-2022.
Finally managed to track down why NuGet package manager not showing, which led me here.
I had done a repair of VS2022 (17.1.0) which fixed the issue . and package manager showed. But a couple of hours later it stopped working again. uninstalling Fine code coverage fixed the issue and it shows again.
Is there any extra info I can provide? I couldn't find any logs, errors or anything
@CliveBennett
Is there any extra info I can provide?
If there is a particular solution that appeared to introduce the issue that you can provide then great. If you could try https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-diagnose-ui-delays-caused-by-extensions?view=vs-2022 then that might point to why there is an issue.
Although you cannot open the Nuget package manager window can you open the Package Manager Console ? Is the Package Manager Output Window Pane available ?
@CliveBennett
I assume that this is not an experimental instance of VS ?
Yes its a release version of VS2022. It was happening on the prior version, I tried upgrading to see it it resolved it as I thought was a VS issue, when it didn't I also tried a Repair, which did initially resolve, but issue then reappeared, probably after I ran Unit Tests or something.
I can still use Nuget from the Package Manager window which is still available, so can add-package manually. (No errors get reported in their though when trying to open via the Solution Explorer)
Ill have a go at the MS Docs to debug.
Ill have a go at the MS Docs to debug Appreciated.
Given that this has only been reported for vs2022 it may not be a problem in 2019.
If I could get it to occur on my machine I would have a go at building the nuget vsix.