preface: the recent computer room cooperation to the coding stage, in this stage need to unify the version of VS, so I downloaded a 17 version of VS, but when the reference but reported an error, the following is the solution, to share with you.
>
>
>2
VS2017 add reference error: call to COM component returns error HRESULT E_FAIL
> (2) solution
1. Open Developer Command Prompt for VS 2017 as an administrator
Developer Command Prompt for VS 2017 has been searched for a long time, but it has been found in the lower left corner of the desktop. The Developer Command Prompt for VS 2017 can be found by following the following steps: “Developer Command Prompt for VS 2017”, select “More”, and then “Run as an Administrator”.
2. Locate your VS2017 installation directory
Once the first step is complete, the screen pops up.
Enter the following information:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies
CD C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies
Be sure to put [CD] before the position.
3. Execute the following code
Gacutil. -i Microsoft VisualStudio. Shell. Interop. 11.0 DLL
this is completed.
summary: for the same problem sometimes online solutions are very similar, but often can not find their own online solution location, so we must write in detail when writing a blog, after all, the blog is for others to see, convenient for others is to facilitate their own. Of course, if the solution situation is not the same as the problem you have to try.
Read More:
- Solution of vs program flashback problem
- “Error! Reference source not found.” “error! Reference source not found solution to problem for
- Problem solving – vs debugging window flash solution
- Solution to the problem of console flash in vs2017 runtime
- Solution to the problem of unable to open glaux. H in vs2013
- [pit filling] problem summary of upgrading VS2010 project to vs2017
- Solution to the problem that OpenGL can’t find glew32.dll in vs2019
- Solution to the problem of console output window’s CMD flashing back when vs2015 writes C + + program
- There are three ways to deal with the problem of vs (Visual Studio) 2017 flashback. I feel that none of them is the fundamental solution.
- Solution to the problem of vs2017 error report unable to open source file
- The solution of undefined reference to error
- Vs2015 failed to compile problem 1
- OpenGL environment configuration under VS2010 / vs2012 / vs2015
- Ima tag error HTML, microsoft.mshtml.dll add reference and type selection error solution
- The solution of configuring OpenGL in vs2017
- Android compilation error unresolved reference: kotlinx solution
- 2、 Solutions to the problem of flash back in vs2017
- Vs problem port in use
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Solution of VS2008 unable to open GL / glaux. H header file