Skip to content

Feed aggregator

ReSharper 8.2.2 with JetBrains Account Support is Here

JetBrains .NET Tools Blog - 8 hours 32 min ago

A new ReSharper maintenance release is now available for download. Please install this upgrade if you have experienced the following issues with ReSharper 8.2:

  • A numeric comparison error when getting or updating nuget packages (when MSBuild is used to obtain project references).
  • SSL-Certificate error while connecting to JetBrains Account.

Speaking of JetBrains Account, this is a new way of managing your licenses for JetBrains tools. As a single interaction point with JetBrains products and services, it provides a simple and convenient way to access and manage your purchases, view your order history, distribute licenses to users, and more. You can use your JetBrains Account to have single access to the following JetBrains services:

You can still use your license key to activate and work with our tools if that way is more comfortable for you.

Additional Tools

Please note that along with ReSharper 8.2.2 you can download and install compatible builds of dotTrace, dotCover and dotMemory with similar fixes for the SSL-Certificate error.

By the way, great news for dotMemory users: we’ve added two brand new automatic inspections of common WPF memory leaks types. If you are not using dotMemory yet, today’s a good day to start. Together with multiple enhancements, the minor update v4.0.10 introduces a new evaluation model: from now on you can use the trial version for 10 actual days of use, even if they are non-consecutive. Enjoy!

Categories: Companies

Why My App Got Rejected By Apple

C-Sharpcorner - Latest Articles - 16 hours 39 min ago
Here is a list of reasons why Apple may have rejected your iOS app.
Categories: Communities

New Article – Backbone.js at a Glance

Gil Fink on .Net - Tue, 09/02/2014 - 05:57

New Article – Backbone.js at a GlanceYesterday, DotNetCurry magazine published an article that I wrote. The article introduces Backbone.js, a front-end MVC library, that I used in various of successful projects. While I’m using other MVW libraries/frameworks as well (AngularJS and Knockout.js for example), I’m always happy to return to Backbone.js and use it in projects.

Here is were you can find the article.

Enjoy! and let me know what do you think about it.

Categories: Blogs

Playing with Roslyn

Ayende @ Rahien - Mon, 09/01/2014 - 10:00

We do a lot of compiler work in RavenDB. Indexes are one such core example, where we take the C# language and beat both it and our heads against the wall until it agrees to do what we want it to.

A lot of that is happening using the excellent NRefactory library as well as the not so excellent CodeDOM API. Basically, we take a source string, convert it into something that can run, then compile it on the fly and execute it.

I decided to check the implications of using this using a very trivial benchmark:

private static void CompileCodeDome(int i)
{
    var src = @"
class Greeter
{
static void Greet()
{
System.Console.WriteLine(""Hello, World"" + " + i + @");
}
}";
    CodeDomProvider codeDomProvider = new CSharpCodeProvider();
    var compilerParameters = new CompilerParameters
    {
        OutputAssembly= "Greeter.dll",
        GenerateExecutable = false,
        GenerateInMemory = true,
        IncludeDebugInformation = false,
        ReferencedAssemblies =
        {
            typeof (object).Assembly.Location,
            typeof (Enumerable).Assembly.Location
        }
    };
    CompilerResults compileAssemblyFromSource = codeDomProvider.CompileAssemblyFromSource(compilerParameters, src);
    Assembly compiledAssembly = compileAssemblyFromSource.CompiledAssembly;
}

private static void CompileRoslyn(int i)
{
    var syntaxTree = CSharpSyntaxTree.ParseText(@"
class Greeter
{
static void Greet()
{
System.Console.WriteLine(""Hello, World"" + " +i +@");
}
}");

    var compilation = CSharpCompilation.Create("Greeter.dll",
        syntaxTrees: new[] {syntaxTree},
        references: new MetadataReference[]
        {
            new MetadataFileReference(typeof (object).Assembly.Location),
            new MetadataFileReference(typeof (Enumerable).Assembly.Location),
        });

    Assembly assembly;
    using (var file = new MemoryStream())
    {
        var result = compilation.Emit(file);
    }
}
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

 

I run it several times, and I got (run # on the X axis, milliseconds on the Y axis):

image

The very first Roslyn invocation is very costly. The next are pretty much nothing. Granted, this is a trivial example, but the CodeDOM (which invokes csc) is both much more consistent but much more expensive in general.

Categories: Blogs

Windows Authentication in SharePoint 2013

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
This article describes the windows authentication in SharePoint 2013.
Categories: Communities

Find UserGroup and Filter Lookup Column According to Group Permission in SharePoint 2010

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
This article explains to find user group and filter lookup column according to group permission in SharePoint 2010 by Using spservices(JQuery)
Categories: Communities

Forms-Based Authentication in SharePoint 2013

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
This article describes the form based authentication in Share Point 2013.
Categories: Communities

Quick Guide to Walk through using Github Pages

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
In this article you will learn about Github and Github pages.
Categories: Communities

Anonymous Authentication in SharePoint 2013

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
This article describes anonymous authentication of SharePoint 2013 that allows users to access SharePoint content without credentials.
Categories: Communities

SAML-based Authentication in SharePoint 2013

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
In SAML claims mode, SharePoint 2013 accepts SAML tokens from a trusted external Security Token Provider (STS).
Categories: Communities

Simple Library to Create Excel Worksheets and Convert to PDF in C# And ASP.Net

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
This is a very simple library to create Excel worksheets and convert them to PDF in C# and ASP.NET.
Categories: Communities

Authentication Methods in SharePoint 2013

C-Sharpcorner - Latest Articles - Mon, 09/01/2014 - 08:00
In this article I will cover some definitions and will talk about Authentication methods in SharePoint (Claims-based authentication and Classic mode authentication).
Categories: Communities

CRUD Operations Using the Generic Repository Pattern and Unit of Work in MVC

C-Sharpcorner - Latest Articles - Sun, 08/31/2014 - 08:00
This article introduces the Generic Repository pattern and Unit of Work in ASP.Net MVC applications.
Categories: Communities

Layout Managers in Java : Part 3

C-Sharpcorner - Latest Articles - Sun, 08/31/2014 - 08:00
This article explains the Box and Group layout managers in Java.
Categories: Communities

Diving Into D3 JS

C-Sharpcorner - Latest Articles - Sun, 08/31/2014 - 08:00
This article describes D3 for Data-Driven Documents.
Categories: Communities

How To Protect Your Most Valuable Professional Asset

C-Sharpcorner - Latest Articles - Sun, 08/31/2014 - 08:00
This article describes your most valuable professional asset.
Categories: Communities

Status Bar (SystemTray) in Windows Phone 8.1

C-Sharpcorner - Latest Articles - Sun, 08/31/2014 - 08:00
This article explains the Status Bar in Windows Phone 8.1.
Categories: Communities

Inside RavenDB 3.0–Chapter 6 is done

Ayende @ Rahien - Sun, 08/31/2014 - 07:09

Chapter 6 isn’t something that I actually planned to write. I thought that I would be writing a high level guide into how to use and utilize RavenDB indexes.

What came out was a detailed discussion on the actual RavenDB indexing process, including a deep look into the kind of environment that we have to deal with, the type of design decisions that we had to make and the balancing act between competing demands. I don’t know if anyone would be interested in actually reading it, since it is quite low level, and it wasn’t a lot of fun to write.

It is really hard to summarize six years of operational experience into a few words. It is even harder to show you the final result and discussing that without the full history of “we tried this, and that, and that as well”. But I think it ended up okay.

You can get it in the following URL.

Categories: Blogs

What is Github

C-Sharpcorner - Latest Articles - Sat, 08/30/2014 - 08:00
Introduction to Github for novice users.
Categories: Communities

The Class ReverseGeocodeQuery in Windows Phone 8

C-Sharpcorner - Latest Articles - Sat, 08/30/2014 - 08:00
This article shows how to get latitude and longitude using other data on the site in which we find ourselves, all thanks to the class ReverseGeocedeQuery.
Categories: Communities