From 0a85d7b6c8dac4fa58348569886e457692d5bf9d Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Mon, 10 Aug 2015 16:45:38 -0700 Subject: [PATCH] Remove unused resource string StackTrace_Stack was conditional between Unix and Windows, which is problematic when building on Unix, since the Mono provided ResGen does not understand our define directives. It turns out this string is unused (in both CoreCLR and Desktop) so to make things easier, we can just remove it. Commit migrated from https://github.com/dotnet/coreclr/commit/793558ed5b888b57553df4c8a3e740aa171e51d3 --- src/coreclr/src/mscorlib/src/mscorlib.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/coreclr/src/mscorlib/src/mscorlib.txt b/src/coreclr/src/mscorlib/src/mscorlib.txt index 1a036b8..6a519b2 100644 --- a/src/coreclr/src/mscorlib/src/mscorlib.txt +++ b/src/coreclr/src/mscorlib/src/mscorlib.txt @@ -68,12 +68,6 @@ PostconditionOnExceptionFailed = Postcondition failed after throwing an exceptio PostconditionOnExceptionFailed_Cnd = Postcondition failed after throwing an exception: {0} InvariantFailed = Invariant failed. InvariantFailed_Cnd = Invariant failed: {0} -#if PLATFORM_UNIX -StackTrace_Stack = Stack trace: \n{0} -#endif -#if !PLATFORM_UNIX -StackTrace_Stack = Stack trace: \r\n{0} -#endif // PLATFORM_UNIX MustUseCCRewrite = An assembly (probably "{1}") must be rewritten using the code contracts binary rewriter (CCRewrite) because it is calling Contract.{0} and the CONTRACTS_FULL symbol is defined. Remove any explicit definitions of the CONTRACTS_FULL symbol from your project and rebuild. CCRewrite can be downloaded from http://go.microsoft.com/fwlink/?LinkID=169180. \r\nAfter the rewriter is installed, it can be enabled in Visual Studio from the project's Properties page on the Code Contracts pane. Ensure that "Perform Runtime Contract Checking" is enabled, which will define CONTRACTS_FULL. ; Access Control -- 2.7.4