Portable Library. The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite" "@TeamTimer.Commonccrewrite.rsp"" exited with code -1073741571
-
Monday, October 29, 2012 2:29 AM
With empty portable library that targets .NET 4.5, .NET for Windows Store apps, Windows Phone 8 StackOverflowException occurs in ccrewrite. Using Code Contracts version 1.4.51019.0 and a few previous
Steps to reproduce:
- Install Windows Phone 8 SDK (Dev Prev or RC)
- Create Portable Library project
- Set target frameworks to .NET 4.5, .NET for Windows Store apps, Windows Phone 8
- Build
Result
Error 1 The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite" "@PortableClassLibrary3ccrewrite.rsp"" exited with code -1073741571. PortableClassLibrary3
Output
1>------ Build started: Project: PortableClassLibrary3, Configuration: Debug Any CPU ------ 1> 1> Process is terminated due to StackOverflowException. 1>C:\Program Files (x86)\Microsoft\Contracts\MsBuild\v4.0\Microsoft.CodeContracts.targets(252,5): error MSB3073: The command ""C:\Program Files (x86)\Microsoft\Contracts\Bin\ccrewrite" "@PortableClassLibrary3ccrewrite.rsp"" exited with code -1073741571. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Build Summary ------------- 00:12.873 - Failed - Debug Any CPU - PortableClassLibrary3.csproj Total build time: 00:12.945 ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
The key target that is causing an error is Windows Phone 8- Edited by Xperiandri Monday, October 29, 2012 2:31 AM
All Replies
-
Tuesday, October 30, 2012 1:00 PM
Look at this:
<PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{875F8E73-22B4-43E1-BD14-957E4FFF3D31}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>Microsoft.Practices.Prism</RootNamespace> <AssemblyName>Microsoft.Practices.Prism</AssemblyName> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkProfile>Profile158</TargetFrameworkProfile> <FileAlignment>512</FileAlignment> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion> <CodeContractsAssemblyMode>1</CodeContractsAssemblyMode> </PropertyGroup>It works with this settings
<PropertyGroup> <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{300F2BB2-2793-4382-AD1B-4BC13C138892}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>Microsoft.Practices.Prism.Lifecycle</RootNamespace> <AssemblyName>Microsoft.Practices.Prism.Lifecycle</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile78</TargetFrameworkProfile> <FileAlignment>512</FileAlignment> <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> <CodeContractsAssemblyMode>1</CodeContractsAssemblyMode> </PropertyGroup>But does not with this.
While Visuals Studio shows the same target frameworks (Win Store, .NET 4.5, WP8) in project settings.
- Edited by Xperiandri Tuesday, October 30, 2012 1:01 PM
-
Thursday, November 15, 2012 8:47 PM
He-e-e-ey!!!!!!!!!!!!!!
What is going on???????
So why it does not work when target Windows Phone 8?
-
Tuesday, January 22, 2013 9:51 AMI have exactly the same problem. Therefore completely unable to use contracts for portable profile78.
-
Friday, February 22, 2013 5:04 PM
Excellent! 1.4.60221.11 works
- Marked As Answer by Xperiandri Friday, February 22, 2013 5:05 PM
-
Friday, February 22, 2013 5:14 PMOwner
Glad we fixed it.
-MaF
-
Friday, February 22, 2013 5:15 PMThank you very-very much!
-
Tuesday, February 26, 2013 3:26 PM
At last!
Thank you very much!

