Note that there are some explanatory texts on larger screens.

plurals
  1. POMy project builds with MSBuild 4 but not with MSBuild 3.5 even though I'm targeting the same version of the .NET Framework (3.5)?
    primarykey
    data
    text
    <p>When I build my solution using MSBuild 4 it compiles successfully:</p> <p><strong>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe MySolution.sln</strong></p> <blockquote> <p>Build succeeded.</p> <pre><code>0 Warning(s) 0 Error(s) </code></pre> </blockquote> <p>But when I try to do the same using MSBuild 3.5 I get the following error, even though the source is the same and I am using the same libraries and the same version of the .NET Framework.</p> <p><strong>C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe MySolution.sln</strong></p> <blockquote> <p>error CS1501: No overload for method 'InitializeClientContextFromStringSid' takes '2' arguments </p> <p>error CS1501: No overload for method 'GetRoles' takes '0' arguments</p> </blockquote> <p>The error that I get is related to Authorization Manager (AzMan).</p> <p>The method 'InitializeClientContextFromStringSid' in the first error belongs to the public interface IAzApplication, a member of Microsoft.Interop.Security.AzRoles.</p> <p>The method 'GetRoles' in the second error belongs to the public interface IAzClientContext, also a member of Microsoft.Interop.Security.AzRoles.</p> <p>I am using the methods in the following way:</p> <p><code>var clientContext = _azApplication.InitializeClientContextFromStringSid(member, 0);</code></p> <p>where the variable member is a string containing the Windows Active Directory SID from an user and _azApplication is of type IAzApplication.</p> <p><code>clientContext.GetRoles()</code></p> <p>where clientContext is of type IAzClientContext.</p> <p><strong>Why does my solution builds with MSBuild 4 but not with MSBuild 3.5 even though I'm targeting the same version of the .NET Framework (3.5)?</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload