Added XNA 4.0 for Windows Phone 7 project; updated Nuclex.Support to compile targeting Windows Phone 7
git-svn-id: file:///srv/devel/repo-conversion/nusu@203 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
1aad371ece
commit
374152cd63
15 changed files with 442 additions and 39 deletions
|
@ -24,7 +24,7 @@ using System.Reflection;
|
|||
|
||||
namespace Nuclex.Support.Plugins {
|
||||
|
||||
#if XBOX360
|
||||
#if XBOX360 || WINDOWS_PHONE
|
||||
|
||||
/// <summary>Signature for the AssemblyLoad event</summary>
|
||||
/// <param name="sender">Object that is reporting that an assembly was loaded</param>
|
||||
|
|
|
@ -121,7 +121,7 @@ namespace Nuclex.Support.Plugins {
|
|||
/// <summary>Reports an error to the debugging console</summary>
|
||||
/// <param name="error">Error message that will be reported</param>
|
||||
private static void reportError(string error) {
|
||||
#if !XBOX360
|
||||
#if !XBOX360 && !WINDOWS_PHONE
|
||||
Trace.WriteLine(error);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -70,11 +70,11 @@ namespace Nuclex.Support.Plugins {
|
|||
// File not found - Most likely a missing dependency of the assembly we
|
||||
// attempted to load since the assembly itself has been found by the GetFiles() method
|
||||
catch(DllNotFoundException) {
|
||||
Trace.WriteLine(
|
||||
reportError(
|
||||
"Assembly '" + path + "' or one of its dependencies is missing"
|
||||
);
|
||||
}
|
||||
#endif // !XBOX360
|
||||
#endif
|
||||
// Unauthorized acccess - Either the assembly is not trusted because it contains
|
||||
// code that imposes a security risk on the system or a user rights problem
|
||||
catch(UnauthorizedAccessException) {
|
||||
|
@ -178,7 +178,7 @@ namespace Nuclex.Support.Plugins {
|
|||
/// <summary>Reports an error to the debugging console</summary>
|
||||
/// <param name="error">Error message that will be reported</param>
|
||||
private static void reportError(string error) {
|
||||
#if !XBOX360
|
||||
#if !XBOX360 && !WINDOWS_PHONE
|
||||
Trace.WriteLine(error);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue