Portable Class Library Error When Building A Windows Phone 8 Windows Store App Library
- 14 Dec 2012
I had a customer issue that I thought I would share in the event you run into this issue (it may save you some heartburn).
Here is the error:
The "Vbc" task failed unexpectedly.System.Runtime.InteropServices.COMException (0x80004005): Unable to find required file ‘Microsoft.VisualBasic.dll’.
The repro of this is as follows:
With WP8 SDK and VS2012 Pro or above installed:
-
Create a new Visual Basic Portable Class Library
-
Choose .NET 4.5, Windows Phone 8, and Windows Store apps as the targets (or if you leave Windows Store apps unchecked)
-
Build project
The solution is quite simple and should be in the next release of Visual Studio 2012
-
Close Visual Studio
-
Open the vbproj file with a text editor like notepad
-
Find the first entry
and after the closing tag add: Embed
Example:
4. Rebuild the project
Let me know if this helped you!
Peace,
Jeff
<< Go Back