小编F_Z*_*_14的帖子

为什么Composer使用包文件安装.git或.hg目录?

我正在尝试发布作曲家包.我保存composer.json在我的包目录中:

{
    "name": "vendor_name/my_bundle",
    "type": "symfony-bundle",
    "autoload": {
        "psr-0": {
            "VendorName\\MyBundle": ""
        }
    },
    "target-dir": "VendorName/MyBundle"
}
Run Code Online (Sandbox Code Playgroud)

但是当我安装它(composer update)时,包文件会添加.hg目录.

在这个包中可以看到类似的行为:https://packagist.org/packages/tom32i/file-bundle(包文件将添加.git目录:http://joxi.ru/uploads/prod/20130201/560/ 53a/136c5290b3c0f4c6f6318445f358d1d8cf30fe13.png)

php composer-php

10
推荐指数
2
解决办法
2632
查看次数

Xamarin DesignTime自定义控件在XCode中渲染,在DesignTime中编辑控件属性

我正在开发一个关于Xamarin.iOS和MvvmCross平台的应用程序.我使用xib文件而不是故事板来设计界面(在我的应用程序中基于ViewModels导航).如何使用Xcode的Interface Builder来渲染我的自定义控件和编辑属性IB

[DesignTimeVisible (true)]为类和[Export ("Counter"), Browsable (true)]属性添加属性不适用于XCode Interface Builder.

据我所知,在Objective-C类中,必须设置@IBDesignable&@IBInspectable,如果你想在Xcode中设计时支持自定义控件.

xcode xamarin.ios ios xamarin

9
推荐指数
1
解决办法
800
查看次数

使用Asp.NET标识进行LDAP身份验证

我尝试为我的ASP.NET MVC应用程序实现Active Directory身份验证.我使用System.DirectoryServices并在登录期间在UserManager中查找用户.如果用户未找到我正在尝试在Active Directory中查找用户,并且如果使用UserManager.CreateAsync()成功注册用户在asp.net mvc应用程序中.

    private ApplicationUserManager _userManager;
    private ApplicationRoleManager _roleManager;

    //
    // POST: /Account/Login
    [HttpPost]
    [AllowAnonymous]
    [ValidateAntiForgeryToken]
    public async Task<ActionResult> Login(LoginViewModel loginModel, string returnUrl)
    {
        if (ModelState.IsValid)
        {
            var user = await UserManager.FindAsync(loginModel.UserName, loginModel.Password);
            if (user != null)
            {
                await SignInAsync(user, loginModel.RememberMe);
                return RedirectToLocal(returnUrl);
            }

            string userFullName;
            if (AuthenticateActiveDirectoryUser("mydomain.local", loginModel.UserName, loginModel.Password, out userFullName))
            {
                var newUser = new ApplicationUser { UserName = loginModel.UserName, FullName = userFullName };
                var result = await UserManager.CreateAsync(newUser, loginModel.Password);                   

                if (result.Succeeded)
                {
                    await SignInAsync(newUser, loginModel.RememberMe); …
Run Code Online (Sandbox Code Playgroud)

asp.net asp.net-mvc ldap active-directory asp.net-identity

7
推荐指数
1
解决办法
2148
查看次数