“GenerateResource” task CLR2 runtime error

后端 未结 8 998
梦毁少年i
梦毁少年i 2020-12-14 01:03

My app keeps getting this error (I\'m using VS 2013, VB.NET, and Windows 8.1, by the way):

Could not run the \"GenerateResource\" task because MSBuild

相关标签:
8条回答
  • 2020-12-14 01:43

    None of the answers in this worked for me. I had to run Visual Studio as admin. Hope this helps someone in the future!

    If you don't know how to run a program as admin on Windows, click this link.

    0 讨论(0)
  • 2020-12-14 01:44

    I tried opening an old VS2010 vb project inside VS2013 recently and just ran into this problem. I got around it this way:

    1. I went to the vb project's properties page
    2. I clicked the "Debug" tab
    3. In the "Enable Debugers" section, I saw that the "(x) Enable the Visual Studio hosting process" checkbox was already checked.
    4. I tried un-checking the "( ) Enable the Visual Studio hosting process" option
    5. I saved these changes (Ctrl+S)
    6. I then checked the "(x) Enable the Visual Studio hosting process" checkbox once more
    7. I saved these changes (Ctrl+S)

    My next re-build of the project was then successful.

    Luckily, I was able to observe how the .vbproj file changed in my version control, and saw that it added the following line into it (which was not there before, despite the checkbox already being set initially):

    <UseVSHostingProcess>true</UseVSHostingProcess>
    
    0 讨论(0)
提交回复
热议问题