Answered by:
Error MSB8016 - VS2011 Beta + Static Library + Metro-style App

Question
-
I have downloaded and installed Win8 Consumer Preview along with VS2011 Beta Ultimate. I have one static library that I would like to compile in VS2011 and use in Metro-style application.
To enable the use in Metro-style app, I have enabled the Metro-style app support in static library project settings (Project Solution->Properties->Configuration Properties->General->Project Defaults->Metro Style-App Support->Yes.
However, when I compile the project with this setting changed, it fails the compilation. "error: MSB8016: This project does not support the current Configuration Type (StaticLibrary)."
The project was compilable before setting this options to "Yes".
Is there any restriction that I am not aware of?
Any guidance would be really helpful.
Thanks
- Moved by Rob Pan Thursday, March 8, 2012 6:33 AM (From:Visual C++ General)
Tuesday, March 6, 2012 8:50 PM
Answers
-
use /force:allowzwobj librarian option and enable WinRT. It will work ok
- Edited by mak_july Saturday, March 31, 2012 7:36 PM
- Proposed as answer by Steve HorneMicrosoft employee, Moderator Monday, April 2, 2012 8:04 PM
- Marked as answer by Yi Feng Li Wednesday, April 4, 2012 3:15 AM
Saturday, March 31, 2012 7:35 PM
All replies
-
Hi,
According to your description, I will move your thread to the correct forum for better support. Thanks for your understanding.
Best Regards,
RobRob Pan [MSFT]
MSDN Community Support | Feedback to us
Thursday, March 8, 2012 6:33 AM -
Can you please file a bug on this template issue please? Provide the steps to repro the problem please.
Visual Studio Bug template is here
David Lamb
Friday, March 9, 2012 2:36 AMModerator -
use /force:allowzwobj librarian option and enable WinRT. It will work ok
- Edited by mak_july Saturday, March 31, 2012 7:36 PM
- Proposed as answer by Steve HorneMicrosoft employee, Moderator Monday, April 2, 2012 8:04 PM
- Marked as answer by Yi Feng Li Wednesday, April 4, 2012 3:15 AM
Saturday, March 31, 2012 7:35 PM