Thursday, February 18, 2016

Google is closing Picasa

On February 12, 2016 Google announced that it is closing Picasa from March 15, 2016. Picasa Web Albums will be closed from May 1, 2016.

Here Google says that:

> The API will still support other functions, including reading photos, reading albums, reading photos in albums, and uploading new photos. Although these operations will continue to be supported and the protocol will remain the same, the content included in the responses and the operation behavior may change. We'll update the documentation on this site with specifics on the changes in March.

Picasa Web Albums will be replaced by Google Photos, a photo and video sharing service of Google.

Since we are using Picasa Web Albums in our free product Wallpaper Updater, we announce we will still support Picasa as long as Google will support reading albums and photos from albums.

Next versions of Wallpaper Updater will also support Google Photos and Flickr. If you have any suggestions or questions about Wallpaper Updater functionality, please share them here.


Saturday, February 6, 2016

Debugging of NUnit tests in Visual Studio

If you using NUnit 2.6 version, you may have a problem with debugging your tests in Visual Studio in case your target framework is .NET Framework 4.0 or 4.5. Here is the simple way to solve this problem.

In NUnit 2.6.x\bin\ folder there is a file nunit.exe.config. It has the following structure:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <!--
   The GUI only runs under .NET 2.0 or higher. The
   useLegacyV2RuntimeActivationPolicy setting only
   applies under .NET 4.0 and permits use of mixed
   mode assemblies, which would otherwise not load
   correctly.
  -->
    <startup useLegacyV2RuntimeActivationPolicy="true"> 
    </startup>
    <runtime>
        <!-- Ensure that test exceptions don't crash NUnit -->
        <legacyUnhandledExceptionPolicy enabled="1"/>
        <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
        <loadFromRemoteSources enabled="true"/>
        <!-- Look for addins in the addins directory for now -->
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <probing privatePath="lib;addins"/>
        </assemblyBinding>
    </runtime>
</configuration>
To enable debugging of tests for .NET Framework 4.0 and 4.5 you need to modify this config file (admin privileges are required for that since it is in Program Files):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <!--
   The GUI only runs under .NET 2.0 or higher. The
   useLegacyV2RuntimeActivationPolicy setting only
   applies under .NET 4.0 and permits use of mixed
   mode assemblies, which would otherwise not load
   correctly.
  -->
    <startup useLegacyV2RuntimeActivationPolicy="true">       
        <supportedRuntime version="v4.0.30319" />
    </startup>
    <runtime>
        <!-- Ensure that test exceptions don't crash NUnit -->
        <legacyUnhandledExceptionPolicy enabled="1"/>
        <!-- Run partial trust V2 assemblies in full trust under .NET 4.0 -->
        <loadFromRemoteSources enabled="true"/>
        <!-- Look for addins in the addins directory for now -->
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <probing privatePath="lib;addins"/>
        </assemblyBinding>
    </runtime>
</configuration> 
That's all, after this modification you will be able to debug the tests in Visual Studio.