diff --git a/AssemblyUtils.cs b/AssemblyUtils.cs index cf91cab..1029bea 100644 --- a/AssemblyUtils.cs +++ b/AssemblyUtils.cs @@ -50,4 +50,9 @@ public static Version GetCLRVersion() { public static Version GetCLRVersion(Type type) { return new Version(Assembly.GetAssembly(type).ImageRuntimeVersion.TrimStart('v')); } + + public static bool IsRunningAt32Bit() { + //easiest most performant way to detect + return IntPtr.Size == 4; + } } diff --git a/PreSharp.cs b/PreSharp.cs index 5268d0f..e7b9489 100644 --- a/PreSharp.cs +++ b/PreSharp.cs @@ -36,4 +36,8 @@ public static void SetOutput(string outputFile, OutputType outputType) { } HasOutputs = true; } + + public static void Install() { + PreSharpEntryPoint.Install(); + } } \ No newline at end of file diff --git a/PreSharp.csproj b/PreSharp.csproj index c3e3802..1fd068c 100644 --- a/PreSharp.csproj +++ b/PreSharp.csproj @@ -1,5 +1,5 @@  - + Debug x86 @@ -12,7 +12,7 @@ PreSharp - v3.5 + v4.5.2 512 false publish\ @@ -34,10 +34,9 @@ - 3.5 - + - + true full false @@ -45,21 +44,27 @@ TRACE;DEBUG;DISABLE_PRESHARP prompt 4 - x86 + AnyCPU + false - + pdbonly true bin\Release\ TRACE;DISABLE_PRESHARP prompt 4 - x86 + AnyCPU + false - - - 3.5 + + packages\Microsoft.Build.Framework.14.3.0\lib\net45\Microsoft.Build.Framework.dll + True + + + packages\Microsoft.Build.Utilities.Core.14.3.0\lib\net45\Microsoft.Build.Utilities.Core.dll + True @@ -88,6 +93,10 @@ + + + +