小编Ed *_*dau的帖子

Xcode 5 - 尝试验证存档时"未找到应用程序记录"

嗨伙计:只是一个人(不是公司)试图提交一个应用程序,用Xcode 5开发到App Store.

Developer.apple.com> IOS开发中心> iTunes Connect>管理您的应用程序>添加新应用程序>单击此处注册新软件包>单击AppID以查看我之前注册的内容.

如果我在Stackoverflow上有10个声誉,我会发布截图.(如果可以,我会的).
摘要是iTunes Connect说:

  • 前缀是C58H638D3X
  • ID是EdAndJ.tiltr9999
  • Identifier = C58H638D3X.EdAndJ.tiltr9999

所以我回到Xcode5并将Bundle ID更改为:我尝试了两个:

  • C58H638D3X.EdAndJ.tiltr9999,和
  • EdAndJ.tiltr9999

然后我手动删除了构建目录并重新构建并重新存档.没有错误或警告.存档显示正确的"标识符".但是当我验证时,我得到了"没有找到应用程序记录".

我在一篇文章中读到这可能是因为iTunes Connect没有处于"等待我的应用程序"的状态......但我不知道如何将它置于该状态(如果这是我的问题首先) .

这是我今天早些时候提出的一个问题的副本,但现在我知道的更多,我用更多信息重新提出了这个问题.感谢所有回答的人......让世界变得更美好:)

-ed

iphone itunesconnect ios xcode5

16
推荐指数
2
解决办法
3万
查看次数

我可以将自定义属性传递给NLOG并输出到文件吗?

编辑4:"从"似乎是NLog中的保留字.改变它"FromID"工作.这是一种将变量传递给NLog并保持代码清洁的绝佳方式!谢谢迈克!

编辑3.我真的很喜欢这个想法:

实现了一个帮助类,正如迈克在下面建议的那样:

public class NLogHelper
{
    //
    // Class Properties
    //
    private Logger m_logger;
    private Dictionary<string, object> m_properties;


    //
    // Constructor
    //
    public NLogHelper(Logger logger)
    {
        m_logger = logger;
        m_properties = new Dictionary<string, object>();
    }

    //
    // Setting Logger properties per instancce
    //
    public void Set(string key, object value)
    {
        m_properties.Add(key, value);
    }

    //
    // Loggers
    //
    public void Debug(string format, params object[] args)
    {
        m_logger.Debug()
            .Message(format, args)
            .Properties(m_properties)
            .Write();
    }
Run Code Online (Sandbox Code Playgroud)

在我的主要代码中,我有:

    private NLogHelper m_logger;
    public void Start() 
    { …
Run Code Online (Sandbox Code Playgroud)

c# nlog

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

NLog正在跳过日志消息..NET问题?多线程问题?

我有一个运行多线程C#.NET 4.5的应用程序.

在我的本地Windows 7笔记本电脑上运行,NLog会记录我的所有消息.我使用Visual Studio发布应用程序...将发布的应用程序复制到Windows Server 2008 ...并在服务器上运行应用程序:这会导致跳过日志消息.有人可以帮助我理解为什么以及如何解决这个问题或建议替代NLog?

我的配置文件如下:

我试过没有"async = true"

<targets async="true">


    <target  xsi:type="ColoredConsole"
            name="ColoredConsole"
            layout="${date} ${level} ${message} ${event-context:item=AlgID} " />

    <target name="xmlfile" xsi:type="File"
            fileName="C:\QRT\Logs\LogEmiter.Nlog.xlog" keepFileOpen="true"
            layout="${log4jxmlevent}" />

    <target xsi:type="File"
            name ="LogFile" fileName="C:\QRT\Logs\QRTLog-${shortdate}.log"
            layout ="${date:format=yyyy-MM-dd HH\:mm\:ss.fff}|${level}|${threadid}|${threadname}|${event-properties:item=FromID}|${message}${exception:format=tostring} "/>

    <target xsi:type="File"
            name ="TapeLogFile" fileName="C:\QRT\Logs\QRTMarketLog.txt"
            layout ="${date:format=yyyy-MM-dd HH\:mm\:ss.fff}|${level}|${message}"/>

  </targets>
     <rules>
        <!-- add your logging rules here -->

        <logger name ="TapeLogFile" minlevel="Trace" writeTo="TapeLogFile" />
        <logger name ="TapeLogFile" minlevel="Trace" writeTo="ColoredConsole" final="true"/>
        <logger name="*" minlevel="Trace" writeTo="ColoredConsole" />
        <logger name="*" minlevel="Trace" writeTo="xmlfile" />
        <logger name="*" …
Run Code Online (Sandbox Code Playgroud)

.net c# nlog

6
推荐指数
1
解决办法
1217
查看次数

为什么结构比类慢?

我正在创建一个C#console-app.我有一些关键路径,并认为创建结构比创建类更快,因为我不需要对结构进行垃圾回收.在我的测试中,我发现了相反的结果.

在下面的测试中,我创建了1000个结构和1000个类.

class Program
{
    static void Main(string[] args)
    {
        int iterations = 1000;
        Stopwatch sw = new Stopwatch();

        sw.Start();
        List<Struct22> structures = new List<Struct22>();
        for (int i = 0; i < iterations; ++i)
        {
            structures.Add(new Struct22());
        }
        sw.Stop();
        Console.WriteLine($"Struct creation consumed {sw.ElapsedTicks} ticks");

        Stopwatch sw2 = new Stopwatch();
        sw2.Start();
        List<Class33> classes = new List<Class33>();
        for (int i = 0; i < iterations; ++i)
        {
            classes.Add(new Class33());
        }
        sw2.Stop();
        Console.WriteLine($"Class creation consumed {sw2.ElapsedTicks} ticks");


        Console.ReadLine();
    }
}
Run Code Online (Sandbox Code Playgroud)

我的classe/struct很简单:

class Class33 …
Run Code Online (Sandbox Code Playgroud)

c# struct

5
推荐指数
1
解决办法
791
查看次数

Entity Framework是否支持多线程?

我正在编写一个针对Entity Framework 6.1.3的C#.NET4.5控制台应用程序.我使用的工作单元范例如下:

public class UnitOfWork : IUnitOfWork, IDisposable
{
    private readonly DataContext _context;
    private readonly List<object> _repositories = new List<object>();
    public UnitOfWork(DataContext context)
    {
        _context = context;
        _context.Configuration.LazyLoadingEnabled = false;
    }

    public IRepository<T> GetRepository<T>() where T : class
    {
        //try to get existing repository
        var repo = (IRepository<T>)_repositories.SingleOrDefault(r => r is IRepository<T>);
        if (repo == null)
        {
            //if not found, create it and add to list
            _repositories.Add(repo = new EntityRepository<T>(_context));
        }
        return repo;
    }

    public int Commit()
    {
        return …
Run Code Online (Sandbox Code Playgroud)

c# multithreading entity-framework

2
推荐指数
1
解决办法
4553
查看次数