0

I have a VSIX project. While trying to add a new command, or trying to add an asset to source.extension.vsixmanifest, I get the following error:

--------------------------- Microsoft Visual Studio --------------------------- VSIX Manifest Editor

The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) --------------------------- OK

I tried to delete vs, bin, obj folders and clean C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\

but still have this error. Also I ran Visual Studio with / Log but didn't find anything interesting.

大陸北方網友
  • 3,696
  • 3
  • 12
  • 37
Romashkin
  • 41
  • 3

1 Answers1

1

Not sure whether your VS has something wrong. Please try the following steps:

1) disable any third party extensions under Extensions-->Manage Extensions--> Installed

2) try to run devenv /safemode under Developer Command Prompt for VS2019 to start a new pure VS to test whether the issue happens again.

3) delete all cache files under C:\Users\xxx\AppData\Local\Microsoft\VisualStudio\16.0_xxx(16.0 is VS2019 while 15.0 is VS2017)\ComponentModelCache

4) repair VS or update it to the latest version

Update 1

Reinstall VS and finally solve the issue.

Mr Qian
  • 21,064
  • 1
  • 31
  • 41
  • I don't know what exactly was wrong, but even the repair didn't help and in complete despair, I manually uninstalled and installed Visual Studio, after this problem has gone. – Romashkin Jan 15 '21 at 20:39
  • @Romashkin, thanks for sharing the workaround about the issue. And be glad that you have solved the issue. To help improve the issue, I have added your workaround into the answer and then you could [mark the answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work) to help other community members search and handle similar issues. And it is kind of you to do that:) – Mr Qian Jan 18 '21 at 02:28