Summary: NuGet will try to add an app.config with binding redirects to Windows Store apps if it thinks it is needed. However, Windows Store apps don't need app.config, and will actually fail to start with a very confusing error message if it is present.
This happened with our first release of the async targeting pack, and also apparently affects the MVVMHelpers package, which is built against Microsoft.Composition 1.0.15 when the latest version is 1.0.16. See this blog post: http://julmar.com/blog/mark/?p=229
Repro steps:
1. Create a new Windows Store app project
2. Create a new Portable Class Library in the same solution, targeting .NET 4.5, SL4, WP7.5, and Windows Store apps
3. Add a reference from the Windows Store app project to the Portable Class Library
4. Run the following command from the Package Manager Console: Install-Package Microsoft.Bcl.Async -ProjectName <PortableClassLibraryProjectName> -Version 1.0.11-beta -pre
5. Run the Windows Store app project
Expected: App runs successfully
Actual: The following error:
---------------------------
Microsoft Visual Studio
---------------------------
Unable to activate Windows Store app 'db427b9e-06d0-491f-b8e7-fa5450a5dabd_snjqad683v1dc!App'. The App1.exe process started, but the activation request failed with error 'The app didn't start'.
See help for advice on troubleshooting the issue.
---------------------------
OK Help
---------------------------
Workaround: Delete the app.config file in the Windows Store app project.
This happened with our first release of the async targeting pack, and also apparently affects the MVVMHelpers package, which is built against Microsoft.Composition 1.0.15 when the latest version is 1.0.16. See this blog post: http://julmar.com/blog/mark/?p=229
Repro steps:
1. Create a new Windows Store app project
2. Create a new Portable Class Library in the same solution, targeting .NET 4.5, SL4, WP7.5, and Windows Store apps
3. Add a reference from the Windows Store app project to the Portable Class Library
4. Run the following command from the Package Manager Console: Install-Package Microsoft.Bcl.Async -ProjectName <PortableClassLibraryProjectName> -Version 1.0.11-beta -pre
5. Run the Windows Store app project
Expected: App runs successfully
Actual: The following error:
---------------------------
Microsoft Visual Studio
---------------------------
Unable to activate Windows Store app 'db427b9e-06d0-491f-b8e7-fa5450a5dabd_snjqad683v1dc!App'. The App1.exe process started, but the activation request failed with error 'The app didn't start'.
See help for advice on troubleshooting the issue.
---------------------------
OK Help
---------------------------
Workaround: Delete the app.config file in the Windows Store app project.