The “GetDeploymentPathFromVsixManifest” task failed unexpectedly

前端 未结 5 614
广开言路
广开言路 2021-02-18 22:44

After installation of visual studio 2017 getting his error for VSIX projects ... any suggestion to resolve the issue?

Severity    Code          


        
相关标签:
5条回答
  • 2021-02-18 23:18

    I noticed that my build errors were related to an XML Serialization issue. That made me think it was related to some messed up XML in the manifest, so...

    • The Fix Open the source.extension.vsixmanifest file with a text editor. Make sure that there are no XML Errors. Use the Schema Reference to make sure everything is where it shoudl be.

    • The Issue My file had the <Tag /> XML element nested in the <Description /> XML Element which is not legal. I moved the <Tag /> Element to the outside after looking at the

    0 讨论(0)
  • 2021-02-18 23:28

    I got the same build error while trying to upgrade a VSIX package from VS 2015 to VS 2017. I was able to reproduce the same issue by creating a new empty VSIX project template and adding a new class via the Visual Studio Package template.

    The VSIX project does not have any references by default, however, Visual Studio 2017 will automatically add references to all required Nuget packages when adding the Package class.

    I was able to resolve the issue without unchecking the "Deploy VSIX content to experimental instance for debugging" option by downgrading the Nuget package for Microsoft.VSSDK.BuildTools from version 15.1.192 to version 15.0.26201.

    I am using Visual Studio 2017 Enterprise version 15.3.0.

    0 讨论(0)
  • 2021-02-18 23:31

    This error appeared for me randomly without doing any change in the code. It disappeared after removing the following folders:

    C:\Users\\AppData\Local\Microsoft\VisualStudio\15.0_765fd02aExp C:\Users\\AppData\Roaming\Microsoft\VisualStudio\15.0_765fd02aExp

    After it I am able to build again without error.

    To find the folders I recommend to use some file search application and use the string "15.0_Exp*".

    0 讨论(0)
  • 2021-02-18 23:39

    Hopefully someone else can get a better workaround. but for now this is what I got working:

    1. Uncheck the "Deploy VSIX content to experimental" in the VSIX tab of your project properties. (this will allow you to build the project)
    2. Follow this migration guide. in my case, all I had to do was adding my environment to the supported list. the rest seems more relevant if you are ready to publish.
    3. Install the generated extension manually from the target output directory. if it doesn't work, delete the content of the output directory and rebuild.

    This will let you resume working on the extension, but unfortunately you won't have any debugging support. and you will have to uninstall/install every time you want to test something.

    0 讨论(0)
  • 2021-02-18 23:39

    I got this error because I had the solution open in two different instances of Visual Studio :(

    0 讨论(0)
提交回复
热议问题